diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-24 02:02:03 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-24 02:02:03 +0100 |
commit | b3b2cae8e36ca939f1a8535e95431ceefa8a1cb8 (patch) | |
tree | cac2b856f85943ad7f5b1acabbaf04b679a3aa58 | |
parent | 9d9fcb375d7702082146bf917a5d19cc83480eae (diff) | |
download | libsigrokdecode-b3b2cae8e36ca939f1a8535e95431ceefa8a1cb8.tar.gz libsigrokdecode-b3b2cae8e36ca939f1a8535e95431ceefa8a1cb8.zip |
srd: change struct srd_pd_output to have a path to the DI, not the decoder.
-rw-r--r-- | controller.c | 2 | ||||
-rw-r--r-- | sigrokdecode.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/controller.c b/controller.c index f3c1446..c913fd2 100644 --- a/controller.c +++ b/controller.c @@ -663,7 +663,7 @@ int pd_add(struct srd_decoder_instance *di, int output_type, /* pdo_id is just a simple index, nothing is deleted from this list anyway. */ pdo->pdo_id = g_slist_length(di->pd_output); pdo->output_type = output_type; - pdo->decoder = di->decoder; + pdo->di = di; pdo->proto_id = g_strdup(proto_id); di->pd_output = g_slist_append(di->pd_output, pdo); diff --git a/sigrokdecode.h b/sigrokdecode.h index dfddb13..0f332b2 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -140,7 +140,7 @@ struct srd_decoder_instance { struct srd_pd_output { int pdo_id; int output_type; - struct srd_decoder *decoder; + struct srd_decoder_instance *di; char *proto_id; }; |