From 2994587f98f205bb8847554bd28483532b277f2c Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 1 Sep 2013 18:20:36 +0200 Subject: Use frontend-registered callback with correct parameters --- type_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'type_decoder.c') 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: -- cgit v1.2.3-70-g09d2