X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fdecoder.hpp;fp=pv%2Fdata%2Fdecode%2Fdecoder.hpp;h=2a7ef11ea14365fe8947e41154d493a3d46d9425;hp=b7ef608033b8d84a4a60217f455e30c26e107b2f;hb=e77de61fbc19633c77cc196332ae79c26d9ca35d;hpb=163f3499429d7a16fd9d5c536f96fd8c822ccf44 diff --git a/pv/data/decode/decoder.hpp b/pv/data/decode/decoder.hpp index b7ef6080..2a7ef11e 100644 --- a/pv/data/decode/decoder.hpp +++ b/pv/data/decode/decoder.hpp @@ -61,6 +61,13 @@ struct DecodeChannel const srd_channel *pdch_; }; +struct DecodeBinaryClassInfo +{ + uint8_t bin_class_id; + char* name; + char* description; +}; + class Decoder { @@ -71,6 +78,8 @@ public: const srd_decoder* decoder() const; + const char* name() const; + bool shown() const; void show(bool show = true); @@ -88,7 +97,8 @@ public: srd_decoder_inst* create_decoder_inst(srd_session *session); void invalidate_decoder_inst(); - + uint8_t get_binary_class_count() const; + const DecodeBinaryClassInfo* get_binary_class(uint8_t id) const; private: const srd_decoder *const decoder_; @@ -96,6 +106,7 @@ private: bool shown_; vector channels_; + vector bin_classes_; map options_; srd_decoder_inst *decoder_inst_; };