summaryrefslogtreecommitdiff
path: root/sigrokdecode.h
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-25 01:49:35 +0100
committerBert Vermeulen <bert@biot.com>2012-01-25 01:49:35 +0100
commit2072ae0c89fec6b06cc579a6c584e67e2a59f7ec (patch)
tree655f04253823e3d180dee6f7615dc03f30fac6ce /sigrokdecode.h
parent58572aed02d81e2cc75749c2c4b516538b5ca9b9 (diff)
downloadlibsigrokdecode-2072ae0c89fec6b06cc579a6c584e67e2a59f7ec.tar.gz
libsigrokdecode-2072ae0c89fec6b06cc579a6c584e67e2a59f7ec.zip
srd: properly recurse into PD instances when looking for one.
This fixes the confusion between parallel and linear stacks.
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r--sigrokdecode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h
index dca2f98..eaf1e60 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -186,7 +186,9 @@ struct srd_decoder_instance *srd_instance_new(const char *id,
GHashTable *options);
int srd_instance_stack(struct srd_decoder_instance *di_from,
struct srd_decoder_instance *di_to);
-struct srd_decoder_instance *srd_instance_find(char *instance_id);
+struct srd_decoder_instance *srd_instance_find_by_id(char *instance_id);
+struct srd_decoder_instance *srd_instance_find_by_obj(GSList *stack,
+ PyObject *obj);
int srd_instance_start(struct srd_decoder_instance *di, PyObject *args);
int srd_instance_decode(uint64_t start_samplenum,
struct srd_decoder_instance *dec, uint8_t *inbuf, uint64_t inbuflen);