X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdevicemanager.h;h=acef8a42d93ba2b1f1d1f5475717ab3a97557079;hb=76868203e56032aa21d7909b5fd72c50b5505615;hp=891ba3d2c1ac28a254917a7da49def32828779d2;hpb=19adbc2c342b190161ec1223377a3619974b91f7;p=pulseview.git diff --git a/pv/devicemanager.h b/pv/devicemanager.h index 891ba3d2..acef8a42 100644 --- a/pv/devicemanager.h +++ b/pv/devicemanager.h @@ -24,7 +24,6 @@ #include #include -#include #include #include @@ -34,9 +33,12 @@ struct sr_dev_driver; namespace pv { -class DevInst; class SigSession; +namespace device { +class Device; +} + class DeviceManager { public: @@ -44,14 +46,10 @@ public: ~DeviceManager(); - const std::list< boost::shared_ptr >& devices() const; - - void use_device(boost::shared_ptr dev_inst, - SigSession *owner); - - void release_device(boost::shared_ptr dev_inst); + const std::list< boost::shared_ptr >& + devices() const; - std::list< boost::shared_ptr > driver_scan( + std::list< boost::shared_ptr > driver_scan( struct sr_dev_driver *const driver, GSList *const drvopts = NULL); @@ -64,14 +62,12 @@ 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*> - _used_devices; + std::list< boost::shared_ptr > _devices; }; } // namespace pv