]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/decoder.hpp
DecodeSignal: Re-set decoder metadata after stack termination
[pulseview.git] / pv / data / decode / decoder.hpp
index 1ef3a28a9316ad030d9ab193515c6c257e595bd5..55742c6070e5a020c00042b2c8894e744b13986e 100644 (file)
@@ -65,9 +65,12 @@ public:
 
        void set_option(const char *id, GVariant *value);
 
+       void apply_all_options();
+
        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_;
@@ -76,6 +79,7 @@ private:
 
        vector<data::DecodeChannel*> channels_;
        map<string, GVariant*> options_;
+       srd_decoder_inst *decoder_inst_;
 };
 
 } // namespace decode