#ifndef PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
#define PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
-#include <libsigrokdecode/libsigrokdecode.h>
+#include <glib.h>
#include "binding.h"
namespace pv {
+
+namespace data {
+class Decoder;
+}
+
namespace prop {
namespace binding {
class DecoderOptions : public Binding
{
public:
- DecoderOptions(struct srd_decoder *decoder);
+ DecoderOptions(boost::shared_ptr<pv::data::Decoder> decoder);
+
+private:
+ GVariant* getter(const char *id);
+
+ void setter(const char *id, GVariant *value);
-protected:
- struct srd_decoder *const _decoder;
+private:
+ boost::shared_ptr<pv::data::Decoder> _decoder;
};
} // binding