X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecoder.h;h=72ccd2ec58622a9119f6e3f15ddbd2d1fa45e831;hp=b8608d2cc4290ed712722ba1e677e6383e96fb03;hb=4e5a4405482a296ebb6014e627298ad156c78d55;hpb=fe89c96185dba8ccf02b6b3d0994c2e149198c73 diff --git a/pv/data/decoder.h b/pv/data/decoder.h index b8608d2c..72ccd2ec 100644 --- a/pv/data/decoder.h +++ b/pv/data/decoder.h @@ -66,14 +66,20 @@ private: static const int64_t DecodeChunkLength; public: - Decoder(const srd_decoder *const decoder, - std::map > probes, - GHashTable *options); + Decoder(const srd_decoder *const decoder); virtual ~Decoder(); - const srd_decoder* get_decoder() const; + const srd_decoder* decoder() const; + + const std::map >& + probes() const; + void set_probes(std::map > probes); + + const GHashTable* options() const; + + void set_option(const char *id, GVariant *value); const std::vector< boost::shared_ptr > annotations() const; @@ -85,8 +91,6 @@ public: private: void begin_decode(); - void init_decoder(); - void decode_proc(boost::shared_ptr data); static void annotation_callback(srd_proto_data *pdata,