projects
/
libsigrokdecode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9fcb3
)
srd: change struct srd_pd_output to have a path to the DI, not the decoder.
author
Bert Vermeulen
<bert@biot.com>
Tue, 24 Jan 2012 01:02:03 +0000
(
02:02
+0100)
committer
Bert Vermeulen
<bert@biot.com>
Tue, 24 Jan 2012 01:02:03 +0000
(
02:02
+0100)
controller.c
patch
|
blob
|
history
sigrokdecode.h
patch
|
blob
|
history
diff --git
a/controller.c
b/controller.c
index f3c1446f9ac40a952180fad8415369965fb33b57..c913fd259355d905546a26c8d6437f88a09a215d 100644
(file)
--- 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->d
ecoder = di->decoder
;
+ pdo->d
i = 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 dfddb1383aaddfcac9ee4e452aa192de9ab62ec4..0f332b2cc7b965110e2789bdcea782d46d2e1329 100644
(file)
--- 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;
};