#include "sigrokdecode-internal.h"
#include "config.h"
+
+/* When initialized, a reference to this module inside the python interpreter
+ * lives here.
+ */
+PyObject *mod_sigrokdecode = NULL;
+
/* lives in type_logic.c */
extern PyTypeObject srd_logic_type;
PyLong_FromLong(SRD_OUTPUT_BINARY)) == -1)
return NULL;
+ mod_sigrokdecode = mod;
+
return mod;
}