projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pv::data::DecoderStack: Set _row for each annotation.
[pulseview.git]
/
pv
/
prop
/
binding
/
decoderoptions.h
diff --git
a/pv/prop/binding/decoderoptions.h
b/pv/prop/binding/decoderoptions.h
index ac32d42cabf29c9260da357d5e22b6a7d4a620f2..62f4fe184cb766e51b7affdfeab35ede0ad851fa 100644
(file)
--- a/
pv/prop/binding/decoderoptions.h
+++ b/
pv/prop/binding/decoderoptions.h
@@
-21,21
+21,36
@@
#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 DecoderStack;
+namespace decode {
+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::DecoderStack> decoder_stack,
+ boost::shared_ptr<pv::data::decode::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::DecoderStack> _decoder_stack;
+ boost::shared_ptr<pv::data::decode::Decoder> _decoder;
};
} // binding
};
} // binding