]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/inputfile.hpp
InputFile: Don't try to create device twice
[pulseview.git] / pv / devices / inputfile.hpp
index 588ccdf243e39c87ca52583678249b17cb42167e..02d4417c99e8af4bb95260e082e543b354bdccdb 100644 (file)
@@ -41,7 +41,9 @@ public:
                std::shared_ptr<sigrok::InputFormat> format,
                const std::map<std::string, Glib::VariantBase> &options);
 
-       void create();
+       void open();
+
+       void close();
 
        void start();
 
@@ -51,7 +53,9 @@ public:
 
 private:
        const std::shared_ptr<sigrok::Context> context_;
-       const std::shared_ptr<sigrok::Input> input_;
+       const std::shared_ptr<sigrok::InputFormat> format_;
+       const std::map<std::string, Glib::VariantBase> options_;
+       std::shared_ptr<sigrok::Input> input_;
 
        std::atomic<bool> interrupt_;
 };