#include <QObject>
+#include <glib.h>
+
struct srd_decoder;
struct srd_decoder_inst;
struct srd_probe;
+struct srd_proto_data;
+struct srd_session;
namespace pv {
public:
Decoder(const srd_decoder *const decoder,
std::map<const srd_probe*,
- boost::shared_ptr<pv::view::Signal> > probes);
+ boost::shared_ptr<pv::view::Signal> > probes,
+ GHashTable *options);
virtual ~Decoder();
private:
void begin_decode();
- void init_decoder();
+ bool init_decoder();
void decode_proc(boost::shared_ptr<data::Logic> data);
static void annotation_callback(srd_proto_data *pdata,
void *decoder);
+signals:
+ void new_decode_data();
+
private:
const srd_decoder *const _decoder;
std::map<const srd_probe*, boost::shared_ptr<view::Signal> >
_probes;
+ GHashTable *_options;
+ srd_session *_session;
srd_decoder_inst *_decoder_inst;
mutable boost::mutex _annotations_mutex;