X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoder.h;h=264920a723422c9bf51f5e1fb6947e9f5e03f759;hb=e92cd4e4cddac2639c1a5e278124b5bb22ace10f;hp=8a0f00a42a5a731bb83b48d3a2c0bd6a3ce05e13;hpb=67fe5e9c02e4e9cfe94d465a0a5e5b598129e4e3;p=pulseview.git diff --git a/pv/data/decoder.h b/pv/data/decoder.h index 8a0f00a..264920a 100644 --- a/pv/data/decoder.h +++ b/pv/data/decoder.h @@ -30,9 +30,13 @@ #include +#include + struct srd_decoder; struct srd_decoder_inst; struct srd_probe; +struct srd_proto_data; +struct srd_session; namespace pv { @@ -76,19 +80,23 @@ public: private: void begin_decode(); - void init_decoder(); + bool init_decoder(); void decode_proc(boost::shared_ptr data); static void annotation_callback(srd_proto_data *pdata, void *decoder); +signals: + void new_decode_data(); + private: const srd_decoder *const _decoder; std::map > _probes; GHashTable *_options; + srd_session *_session; srd_decoder_inst *_decoder_inst; mutable boost::mutex _annotations_mutex;