From: Uwe Hermann Date: Thu, 17 Jan 2019 23:54:00 +0000 (+0100) Subject: Add LegacyDecoder::unitsize(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=66ddf1f1d796c5bcef3b33822a550d9e99ecf0e0;p=libsigrokflow.git Add LegacyDecoder::unitsize(). --- diff --git a/include/libsigrokflow/legacy_decoder.hpp b/include/libsigrokflow/legacy_decoder.hpp index f8af5c9..74fb3d7 100644 --- a/include/libsigrokflow/legacy_decoder.hpp +++ b/include/libsigrokflow/legacy_decoder.hpp @@ -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; diff --git a/src/legacy_decoder.cpp b/src/legacy_decoder.cpp index 9a0c94d..8784152 100644 --- a/src/legacy_decoder.cpp +++ b/src/legacy_decoder.cpp @@ -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 &buffer) { Gst::MapInfo info;