X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevice%2Fdevinst.h;h=9098027eb84e0674da978a65c38e67df3485c36f;hp=6e81f49c686fcc8ab1424ed2836ae6e859e5e348;hb=996b7c9da9b5cb56413e829217e1e7d7d7d520da;hpb=85843b14c48affe67820ec8c9e357cd26e0ed943 diff --git a/pv/device/devinst.h b/pv/device/devinst.h index 6e81f49c..9098027e 100644 --- a/pv/device/devinst.h +++ b/pv/device/devinst.h @@ -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