projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved decoder config into the popup
[pulseview.git]
/
pv
/
prop
/
binding
/
decoderoptions.h
diff --git
a/pv/prop/binding/decoderoptions.h
b/pv/prop/binding/decoderoptions.h
index ac32d42cabf29c9260da357d5e22b6a7d4a620f2..11b0be724afd9d738da6de3105640a72f401a8b5 100644
(file)
--- a/
pv/prop/binding/decoderoptions.h
+++ b/
pv/prop/binding/decoderoptions.h
@@
-21,21
+21,31
@@
#ifndef PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
#define PULSEVIEW_PV_PROP_BINDING_DECODEROPTIONS_H
#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 {
#include "binding.h"
namespace pv {
+
+namespace data {
+class Decoder;
+}
+
namespace prop {
namespace binding {
class DecoderOptions : public Binding
{
public:
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);
-pr
otected
:
-
struct srd_decoder *const
_decoder;
+pr
ivate
:
+
boost::shared_ptr<pv::data::Decoder>
_decoder;
};
} // binding
};
} // binding