X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=type_decoder.c;h=3f4bae9d774742f791f3ec6d27b81041408ac59d;hp=16675bcb9f0a136560d15c1cb70ddba91a5e3daf;hb=2994587f98f205bb8847554bd28483532b277f2c;hpb=845f0d4031780220451037e87885e1ff79670976 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: