]> sigrok.org Git - libsigrokflow.git/commitdiff
Add LegacyDecoder::unitsize().
authorUwe Hermann <redacted>
Thu, 17 Jan 2019 23:54:00 +0000 (00:54 +0100)
committerUwe Hermann <redacted>
Thu, 17 Jan 2019 23:54:00 +0000 (00:54 +0100)
include/libsigrokflow/legacy_decoder.hpp
src/legacy_decoder.cpp

index f8af5c90fab86f57c6fb1d6bfb8420f034a482d9..74fb3d7a0009cce5d0106ed1774641aa5b20b7cd 100644 (file)
@@ -46,6 +46,9 @@ public:
        /* Retrieve libsigrokdecode session. */
        struct srd_session *libsigrokdecode_session();
 
+       /* Retrieve the unitsize. */
+       uint64_t unitsize();
+
        /* Override start. */
        bool start_vfunc() override;
 
index 9a0c94d8c6eb68af533683d56af02f7e171874db..87841520e775896a0388b58c3b5fc06aabfe7284 100644 (file)
@@ -75,6 +75,11 @@ struct srd_session *LegacyDecoder::libsigrokdecode_session()
        return session_;
 }
 
+uint64_t LegacyDecoder::unitsize()
+{
+       return unitsize_;
+}
+
 Gst::FlowReturn LegacyDecoder::render_vfunc(const Glib::RefPtr<Gst::Buffer> &buffer)
 {
        Gst::MapInfo info;