X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevicemanager.h;h=2ce523dc6251d424921bba5a696a2fbcdcd100bd;hp=3ed74e078f2baa3234b9807eb6d62e4e2af6f7ac;hb=85843b14c48affe67820ec8c9e357cd26e0ed943;hpb=921b90c0b3ae0cf44247da3d87bd7dc0612e9681 diff --git a/pv/devicemanager.h b/pv/devicemanager.h index 3ed74e0..2ce523d 100644 --- a/pv/devicemanager.h +++ b/pv/devicemanager.h @@ -37,7 +37,7 @@ namespace pv { class SigSession; namespace device { -class DevInst; +class Device; } class DeviceManager @@ -47,15 +47,15 @@ public: ~DeviceManager(); - const std::list< boost::shared_ptr >& + const std::list< boost::shared_ptr >& devices() const; - void use_device(boost::shared_ptr dev_inst, + void use_device(boost::shared_ptr dev_inst, SigSession *owner); - void release_device(boost::shared_ptr dev_inst); + void release_device(boost::shared_ptr dev_inst); - std::list< boost::shared_ptr > driver_scan( + std::list< boost::shared_ptr > driver_scan( struct sr_dev_driver *const driver, GSList *const drvopts = NULL); @@ -68,13 +68,13 @@ private: void release_driver(struct sr_dev_driver *const driver); - static bool compare_devices(boost::shared_ptr a, - boost::shared_ptr b); + static bool compare_devices(boost::shared_ptr a, + boost::shared_ptr b); private: struct sr_context *const _sr_ctx; - std::list< boost::shared_ptr > _devices; - std::map< boost::shared_ptr, pv::SigSession*> + std::list< boost::shared_ptr > _devices; + std::map< boost::shared_ptr, pv::SigSession*> _used_devices; };