From 451680f192b97d652fb02186f5201efa0d668a2a Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 15 Jan 2012 03:58:27 +0100 Subject: 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. --- controller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'controller.c') 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; -- cgit v1.2.3-70-g09d2