Changeset 1531 for trunk/libffado/src/libieee1394/IsoHandler.h
- Timestamp:
- 03/29/09 13:59:09 (15 years ago)
- Files:
-
- trunk/libffado/src/libieee1394/IsoHandler.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libieee1394/IsoHandler.h
r1498 r1531 98 98 99 99 bool init(); 100 bool prepare();101 102 100 void setVerboseLevel(int l); 103 101 102 // the enable/disable functions should only be used from within the loop that iterates() 103 // but not from within the iterate callback. use the requestEnable / requestDisable functions 104 // for that 104 105 bool enable() {return enable(-1);}; 105 106 bool enable(int cycle); 106 107 bool disable(); 107 108 108 void flush(); 109 // functions to request enable or disable at the next opportunity 110 bool requestEnable(int cycle = -1); 111 bool requestDisable(); 112 113 /** 114 * updates the internal state if required 115 */ 116 void updateState(); 117 109 118 enum EHandlerType getType() {return m_type;}; 110 119 const char *getTypeString() {return eHTToString(m_type); }; … … 114 123 115 124 bool isEnabled() 116 {return m_State == E_Running;};125 {return m_State == eHS_Running;}; 117 126 118 127 // no setter functions, because those would require a re-init … … 198 207 // the state machine 199 208 enum EHandlerStates { 200 E_Created, 201 E_Initialized, 202 E_Prepared, 203 E_Running, 204 E_Error, 209 eHS_Stopped, 210 eHS_Running, 211 eHS_Error, 205 212 }; 206 213 enum EHandlerStates m_State; 214 enum EHandlerStates m_NextState; 215 int m_switch_on_cycle; 207 216 208 217 public: