X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoder.h;h=09002ac911153ed06901af6ab1ba3e0927b1f4c7;hb=b6b267bba9d55d23fe5c3537e4785238d4377ad7;hp=93d8fa6a89fb8dae531e48d9f01e0f7c5d4526d7;hpb=b213ef0991a13af0c74ffe5c54382c5c455c5496;p=pulseview.git diff --git a/pv/data/decoder.h b/pv/data/decoder.h index 93d8fa6a..09002ac9 100644 --- a/pv/data/decoder.h +++ b/pv/data/decoder.h @@ -29,19 +29,22 @@ #include #include +#include #include struct srd_decoder; -struct srd_decoder_inst; struct srd_probe; struct srd_proto_data; -struct srd_session; + +namespace DecoderTest { +class TwoDecoder; +} namespace pv { namespace view { -class Signal; +class LogicSignal; namespace decode { class Annotation; @@ -65,7 +68,7 @@ private: public: Decoder(const srd_decoder *const decoder, std::map > probes, + boost::shared_ptr > probes, GHashTable *options); virtual ~Decoder(); @@ -75,6 +78,8 @@ public: const std::vector< boost::shared_ptr > annotations() const; + QString error_message(); + void clear_snapshots(); private: @@ -92,18 +97,18 @@ signals: private: const srd_decoder *const _decoder; - std::map > + std::map > _probes; GHashTable *_options; - srd_session *_session; - srd_decoder_inst *_decoder_inst; - - mutable boost::mutex _annotations_mutex; + mutable boost::mutex _mutex; std::vector< boost::shared_ptr > _annotations; + QString _error_message; boost::thread _decode_thread; + + friend class DecoderTest::TwoDecoder; }; } // namespace data