/* The list of protocol decoders. */
GSList *pd_list = NULL;
-GSList *di_list = NULL;
/**
int alen, r, i;
char **ann;
- fprintf(stdout, "%s: %s\n", __func__, name);
-
/* "Import" the Python module. */
if (!(py_mod = PyImport_ImportModule(name))) { /* NEWREF */
PyErr_Print(); /* Returns void. */
if (PyErr_Occurred())
PyErr_Print(); /* Returns void. */
Py_XDECREF(py_mod);
- fprintf(stderr, "Decoder class not found in PD module %s\n", name);
+ srd_err("Decoder class not found in PD module %s", name);
return SRD_ERR_PYTHON; /* TODO: More specific error? */
}
if ((r = h_str(py_res, "author", &(d->author))) < 0)
return r;
- if ((r = h_str(py_res, "email", &(d->email))) < 0)
- return r;
-
if ((r = h_str(py_res, "license", &(d->license))) < 0)
return r;
{
g_free(dec->id);
g_free(dec->name);
+ g_free(dec->longname);
g_free(dec->desc);
+ g_free(dec->longdesc);
+ g_free(dec->author);
+ g_free(dec->license);
g_free(dec->func);
/* TODO: Free everything in inputformats and outputformats. */