Apply option changes immediately, not on decode stack rebuild
[pulseview.git] / pv / data / decode / decoder.hpp
index 4ec193b1df24dc73d61936e8e5d71bfb278b6316..02f3f04bfb11385d17bab9abb0a888396ff50bde 100644 (file)
@@ -28,8 +28,6 @@
 #include <glib.h>
 
 using std::map;
-using std::set;
-using std::shared_ptr;
 using std::string;
 using std::vector;
 
@@ -69,7 +67,8 @@ public:
 
        bool have_required_channels() const;
 
-       srd_decoder_inst* create_decoder_inst(srd_session *session) const;
+       srd_decoder_inst* create_decoder_inst(srd_session *session);
+       void invalidate_decoder_inst();
 
 private:
        const srd_decoder *const decoder_;
@@ -78,6 +77,7 @@ private:
 
        vector<data::DecodeChannel*> channels_;
        map<string, GVariant*> options_;
+       srd_decoder_inst *decoder_inst_;
 };
 
 } // namespace decode