X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.h;h=58dd887145c62cc6bb98dfa18d43c316112b649b;hp=8b9d29b2bf89e487c31bf12e030b98678d618e2c;hb=db62bbfda512aeddca5b9d7b5960e9cf24b8859c;hpb=7491a29f33471b38e161b3254f4d8e708b05f929 diff --git a/pv/data/decoderstack.h b/pv/data/decoderstack.h index 8b9d29b2..58dd8871 100644 --- a/pv/data/decoderstack.h +++ b/pv/data/decoderstack.h @@ -74,13 +74,17 @@ public: const std::list< boost::shared_ptr >& stack() const; void push(boost::shared_ptr decoder); + void remove(int index); - const std::vector< boost::shared_ptr > - annotations() const; + int64_t samples_decoded() const; + + const std::vector annotations() const; QString error_message(); - void clear_snapshots(); + void clear(); + + uint64_t get_max_sample_count() const; void begin_decode(); @@ -106,8 +110,8 @@ private: std::list< boost::shared_ptr > _stack; mutable boost::mutex _mutex; - std::vector< boost::shared_ptr > - _annotations; + int64_t _samples_decoded; + std::vector _annotations; QString _error_message; boost::thread _decode_thread;