X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Finputfile.hpp;h=e6b57033a02720b31aac2e52dadda5d8262a563e;hp=588ccdf243e39c87ca52583678249b17cb42167e;hb=cda515676ce6c2fa81e1cecacba3ea26ec2ee50e;hpb=dd3fd4df34d129c83f7f5d80ff1e8b998beca63d diff --git a/pv/devices/inputfile.hpp b/pv/devices/inputfile.hpp index 588ccdf2..e6b57033 100644 --- a/pv/devices/inputfile.hpp +++ b/pv/devices/inputfile.hpp @@ -41,7 +41,9 @@ public: std::shared_ptr format, const std::map &options); - void create(); + void open(); + + void close(); void start(); @@ -51,8 +53,11 @@ public: private: const std::shared_ptr context_; - const std::shared_ptr input_; + const std::shared_ptr format_; + const std::map options_; + std::shared_ptr input_; + std::ifstream *f; std::atomic interrupt_; };