]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/binding/decoderoptions.h
Moved print_gvariant into DeviceOptions
[pulseview.git] / pv / prop / binding / decoderoptions.h
index 11b0be724afd9d738da6de3105640a72f401a8b5..c08f1017fb2a822106f21a603f7be76768d66050 100644 (file)
 #ifndef PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
 #define PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
 
-#include <glib.h>
-
 #include "binding.h"
 
 namespace pv {
 
 namespace data {
+class DecoderStack;
+namespace decode {
 class Decoder;
 }
+}
 
 namespace prop {
 namespace binding {
@@ -37,7 +38,8 @@ namespace binding {
 class DecoderOptions : public Binding
 {
 public:
-       DecoderOptions(boost::shared_ptr<pv::data::Decoder> decoder);
+       DecoderOptions(boost::shared_ptr<pv::data::DecoderStack> decoder_stack,
+               boost::shared_ptr<pv::data::decode::Decoder> decoder);
 
 private:
        GVariant* getter(const char *id);
@@ -45,7 +47,8 @@ private:
        void setter(const char *id, GVariant *value);
 
 private:
-       boost::shared_ptr<pv::data::Decoder> _decoder;
+       boost::shared_ptr<pv::data::DecoderStack> _decoder_stack;
+       boost::shared_ptr<pv::data::decode::Decoder> _decoder;
 };
 
 } // binding