diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-20 22:25:42 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-21 15:06:21 +0100 |
commit | f38ec2855ce41154bc1035dd7f1ab9a21f411f0d (patch) | |
tree | b2682b8521a8201cd59614ec996c0806d485e760 /sigrokdecode.h | |
parent | 11ea8ae1b2279566125978766735a26252dff412 (diff) | |
download | libsigrokdecode-f38ec2855ce41154bc1035dd7f1ab9a21f411f0d.tar.gz libsigrokdecode-f38ec2855ce41154bc1035dd7f1ab9a21f411f0d.zip |
srd: support for mapping probes
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index 2649d86..70652a4 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -99,6 +99,12 @@ struct srd_decoder { /** TODO */ GSList *outputformats; + /** Probes */ + GSList *probes; + + /** Optional probes */ + GSList *extra_probes; + /* List of NULL-terminated char[], containing descriptions of the * supported annotation output. */ @@ -111,14 +117,23 @@ struct srd_decoder { PyObject *py_dec; }; +struct srd_probe { + char *id; + char *name; + char *desc; + int order; +}; + struct srd_decoder_instance { struct srd_decoder *decoder; PyObject *py_instance; char *instance_id; GSList *pd_output; - int num_probes; - int unitsize; - uint64_t samplerate; + int dec_num_probes; + int *dec_probemap; + int data_num_probes; + int data_unitsize; + uint64_t data_samplerate; GSList *next_di; }; @@ -193,6 +208,7 @@ char *srd_decoder_doc(struct srd_decoder *dec); /*--- util.c ----------------------------------------------------------------*/ int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr); +int py_dictitem_as_str(PyObject *py_obj, const char *key, char **outstr); int py_str_as_str(PyObject *py_str, char **outstr); int py_strlist_to_char(PyObject *py_strlist, char ***outstr); |