projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved DeviceManager::use_device and release_device into DevInst
[pulseview.git]
/
pv
/
device
/
devinst.h
diff --git
a/pv/device/devinst.h
b/pv/device/devinst.h
index 6e81f49c686fcc8ab1424ed2836ae6e859e5e348..9098027eb84e0674da978a65c38e67df3485c36f 100644
(file)
--- a/
pv/device/devinst.h
+++ b/
pv/device/devinst.h
@@
-36,6
+36,9
@@
struct sr_probe;
struct sr_probe_group;
namespace pv {
struct sr_probe_group;
namespace pv {
+
+class SigSession;
+
namespace device {
class DevInst : public QObject
namespace device {
class DevInst : public QObject
@@
-48,6
+51,12
@@
protected:
public:
sr_dev_inst* dev_inst() const;
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);
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;
protected:
sr_dev_inst *const _sdi;
+ SigSession *_owner;
};
} // device
};
} // device