]> sigrok.org Git - pulseview.git/blobdiff - pv/device/device.h
Fix double-free issue in File::create
[pulseview.git] / pv / device / device.h
index fe91a6cbcdb797b5f6da501ca802ad14239c8d64..0a908a7962d451034d732cddd88e3abbb6809c93 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef PULSEVIEW_PV_DEVICE_DEVICE_H
 #define PULSEVIEW_PV_DEVICE_DEVICE_H
 
+#include <map>
+#include <string>
+
 #include "devinst.h"
 
 namespace pv {
@@ -31,7 +34,18 @@ class Device : public DevInst
 public:
        Device(sr_dev_inst *dev_inst);
 
+       sr_dev_inst* dev_inst() const;
+
+       void use(SigSession *owner) throw(QString);
+
+       void release();
+
        std::string format_device_title() const;
+
+       std::map<std::string, std::string> get_device_info() const;
+
+private:
+       sr_dev_inst *const _sdi;
 };
 
 } // device