summaryrefslogtreecommitdiff
path: root/module_sigrokdecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r--module_sigrokdecode.c7
1 files changed, 3 insertions, 4 deletions
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}
};