summaryrefslogtreecommitdiff
path: root/controller.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-15 03:58:27 +0100
committerBert Vermeulen <bert@biot.com>2012-01-15 04:03:42 +0100
commit451680f192b97d652fb02186f5201efa0d668a2a (patch)
tree8a7330e084d2bb2027e2e288138f5e19645bd487 /controller.c
parentf8e458577f72a5b13fa83b6cd3675a7eefc83072 (diff)
downloadlibsigrokdecode-451680f192b97d652fb02186f5201efa0d668a2a.tar.gz
libsigrokdecode-451680f192b97d652fb02186f5201efa0d668a2a.zip
srd: clean up module loading/unloading, and the decoder struct
PDs are now checked for a proper Decoder object, with at least the required attributes. The author, long_desc and func attributes in the decoder object are gone.
Diffstat (limited to 'controller.c')
-rw-r--r--controller.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller.c b/controller.c
index 07bf6f2..963345c 100644
--- a/controller.c
+++ b/controller.c
@@ -168,7 +168,7 @@ struct srd_decoder_instance *srd_instance_new(const char *id,
}
/* Create an instance of the 'Decoder' class. */
- di->py_instance = PyObject_Call(dec->py_decobj, py_args, NULL);
+ di->py_instance = PyObject_Call(dec->py_dec, py_args, NULL);
if (!di->py_instance) {
if (PyErr_Occurred())
PyErr_Print();
@@ -230,6 +230,7 @@ int srd_instance_set_probe(struct srd_decoder_instance *di,
return SRD_OK;
}
+/* TODO: this should go into the PD stack */
struct srd_decoder_instance *srd_instance_find(char *instance_id)
{
GSList *l;