]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/hardwaredevice.hpp
Fix #605 by closing current device when another is selected
[pulseview.git] / pv / devices / hardwaredevice.hpp
index 9f052d7e85efa5a5a35b494b201dd310354631af..bc8e47a589c9640e2828d1c16b80293c49e80ce5 100644 (file)
@@ -53,10 +53,13 @@ public:
         */
        std::string display_name(const DeviceManager &device_manager) const;
 
-       void create();
+       void open();
+
+       void close();
 
 private:
        const std::shared_ptr<sigrok::Context> context_;
+       bool device_open_;
 };
 
 } // namespace devices