Changeset 42 for trunk/freebob/src/avdevicepool.h
- Timestamp:
- 12/05/04 14:36:17 (19 years ago)
- Files:
-
- trunk/freebob/src/avdevicepool.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/freebob/src/avdevicepool.h
r16 r42 23 23 #include "freebob.h" 24 24 #include <vector> 25 #include <libraw1394/raw1394.h> // octlet_t 25 26 26 27 class AvDevice; … … 28 29 class AvDevicePool { 29 30 public: 31 static AvDevicePool* instance(); 32 33 FBReturnCodes registerAvDevice( AvDevice* pAvDevice ); 34 FBReturnCodes unregisterAvDevice( AvDevice* pAvDevice ); 35 36 AvDevice* getAvDevice( octlet_t oGuid ); 37 38 /** 39 * Remove devices in pool which where (physically) removed 40 * from the bus. 41 * 42 * All devices which have a lower generation count smaller 43 * than iGeneration are removed from the pool 44 * 45 * @param iGeneration Current generation count. 46 * @return see FBReturnCodes. 47 */ 48 FBReturnCodes removeObsoleteDevices( unsigned int iGeneration ); 49 private: 30 50 AvDevicePool(); 31 51 ~AvDevicePool(); 32 52 33 FBReturnCodes registerAvDevice(AvDevice* pAvDevice); 34 FBReturnCodes unregisterAvDevice(AvDevice* pAvDevice); 35 private: 36 typedef std::vector<AvDevice*> AvDeviceVector; 53 static AvDevicePool* m_pInstance; 54 55 typedef std::vector< AvDevice* > AvDeviceVector; 37 56 AvDeviceVector m_avDevices; 38 57 };