diff options
author | Bert Vermeulen <bert@biot.com> | 2013-09-01 18:20:36 +0200 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2013-09-01 18:20:36 +0200 |
commit | 2994587f98f205bb8847554bd28483532b277f2c (patch) | |
tree | 958783ed186aaa2ab05572b1ff4a9075187285f1 /type_decoder.c | |
parent | 845f0d4031780220451037e87885e1ff79670976 (diff) | |
download | libsigrokdecode-2994587f98f205bb8847554bd28483532b277f2c.tar.gz libsigrokdecode-2994587f98f205bb8847554bd28483532b277f2c.zip |
Use frontend-registered callback with correct parameters
Diffstat (limited to 'type_decoder.c')
-rw-r--r-- | type_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/type_decoder.c b/type_decoder.c index 16675bc..3f4bae9 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -95,7 +95,7 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args) struct srd_proto_data *pdata; uint64_t start_sample, end_sample; int output_id; - void (*cb)(); + struct srd_pd_callback *cb; if (!(di = srd_inst_find_by_obj(NULL, self))) { /* Shouldn't happen. */ @@ -142,7 +142,7 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args) /* An error was already logged. */ break; } - cb(pdata); + cb->cb(pdata, cb->cb_data); } break; case SRD_OUTPUT_PROTO: |