]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/decoder.hpp
DecodeTrace: Add "%c" to the format string
[pulseview.git] / pv / data / decode / decoder.hpp
index c0a30a7e2f50a9e89c574dba739c0d8f7e1a0ece..eb9a44bf6c1a8841cba632bc1bf3b5aa8d517c91 100644 (file)
@@ -90,8 +90,8 @@ public:
 
        const char* name() const;
 
-       bool shown() const;
-       void show(bool show = true);
+       bool visible() const;
+       void set_visible(bool visible);
 
        const vector<DecodeChannel*>& channels() const;
        void set_channels(vector<DecodeChannel*> channels);
@@ -113,6 +113,7 @@ public:
        vector<const AnnotationClass*> ann_classes() const;
        vector<AnnotationClass*> ann_classes();
        AnnotationClass* get_ann_class_by_id(size_t id);
+       const AnnotationClass* get_ann_class_by_id(size_t id) const;
 
        uint32_t get_binary_class_count() const;
        const DecodeBinaryClassInfo* get_binary_class(uint32_t id) const;
@@ -120,7 +121,7 @@ public:
 private:
        const srd_decoder* const srd_decoder_;
 
-       bool shown_;
+       bool visible_;
 
        vector<DecodeChannel*> channels_;
        vector<Row> rows_;