]> sigrok.org Git - pulseview.git/blobdiff - pv/device/devinst.h
Moved DeviceManager::use_device and release_device into DevInst
[pulseview.git] / pv / device / devinst.h
index 6e81f49c686fcc8ab1424ed2836ae6e859e5e348..9098027eb84e0674da978a65c38e67df3485c36f 100644 (file)
@@ -36,6 +36,9 @@ struct sr_probe;
 struct sr_probe_group;
 
 namespace pv {
+
+class SigSession;
+
 namespace device {
 
 class DevInst : public QObject
@@ -48,6 +51,12 @@ protected:
 public:
        sr_dev_inst* dev_inst() const;
 
+       void use(SigSession *owner);
+
+       void release();
+
+       SigSession* owner() const;
+
        virtual std::string format_device_title() const = 0;
 
        GVariant* get_config(const sr_probe_group *group, int key);
@@ -71,6 +80,7 @@ signals:
 
 protected:
        sr_dev_inst *const _sdi;
+       SigSession *_owner;
 };
 
 } // device