}
-static PyObject *Decoder_output_new(PyObject *self, PyObject *args)
+static PyObject *Decoder_add(PyObject *self, PyObject *args)
{
PyObject *ret;
struct srd_decoder_instance *di;
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
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}
};