From f9a3947a7a8d884de6c55693b216f89b1d27d979 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 9 Jan 2012 00:12:19 +0100 Subject: srd: change output_new() API call to add() --- module_sigrokdecode.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'module_sigrokdecode.c') diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c index e92c9e7..69bd17e 100644 --- a/module_sigrokdecode.c +++ b/module_sigrokdecode.c @@ -148,7 +148,7 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args) } -static PyObject *Decoder_output_new(PyObject *self, PyObject *args) +static PyObject *Decoder_add(PyObject *self, PyObject *args) { PyObject *ret; struct srd_decoder_instance *di; @@ -163,7 +163,7 @@ static PyObject *Decoder_output_new(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "is", &output_type, &protocol_id)) return NULL; - pdo_id = pd_output_new(di, output_type, protocol_id); + pdo_id = pd_add(di, output_type, protocol_id); if (pdo_id < 0) Py_RETURN_NONE; else @@ -176,8 +176,7 @@ static PyMethodDef no_methods[] = { {NULL, NULL, 0, NULL} }; static PyMethodDef Decoder_methods[] = { {"put", Decoder_put, METH_VARARGS, "Accepts a dictionary with the following keys: time, duration, data"}, - {"output_new", Decoder_output_new, METH_VARARGS, - "Create a new output stream"}, + {"add", Decoder_add, METH_VARARGS, "Create a new output stream"}, {NULL, NULL, 0, NULL} }; -- cgit v1.2.3-70-g09d2