summaryrefslogtreecommitdiff
path: root/module_sigrokdecode.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-06-16 16:32:24 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2017-06-16 16:36:39 +0200
commiteb88372396c2264948bc05586fb54dc318266973 (patch)
treea6ddaa73878fc0c5e0c891168d85e3ac7a384c09 /module_sigrokdecode.c
parentb197383cfb39b39ff04644855eef57f5d3c18bc1 (diff)
downloadlibsigrokdecode-eb88372396c2264948bc05586fb54dc318266973.tar.gz
libsigrokdecode-eb88372396c2264948bc05586fb54dc318266973.zip
Drop support for PD API version 2.
All decoders must be of PD API version 3 now.
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r--module_sigrokdecode.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c
index 17563c1..a0d9610 100644
--- a/module_sigrokdecode.c
+++ b/module_sigrokdecode.c
@@ -23,8 +23,6 @@
/** @cond PRIVATE */
-SRD_PRIV PyObject *srd_logic_type = NULL;
-
/*
* When initialized, a reference to this module inside the Python interpreter
* lives here.
@@ -43,7 +41,7 @@ static struct PyModuleDef sigrokdecode_module = {
/** @cond PRIVATE */
PyMODINIT_FUNC PyInit_sigrokdecode(void)
{
- PyObject *mod, *Decoder_type, *logic_type;
+ PyObject *mod, *Decoder_type;
mod = PyModule_Create(&sigrokdecode_module);
if (!mod)
@@ -55,12 +53,6 @@ PyMODINIT_FUNC PyInit_sigrokdecode(void)
if (PyModule_AddObject(mod, "Decoder", Decoder_type) < 0)
goto err_out;
- logic_type = srd_logic_type_new();
- if (!logic_type)
- goto err_out;
- if (PyModule_AddObject(mod, "srd_logic", logic_type) < 0)
- goto err_out;
-
/* Expose output types as symbols in the sigrokdecode module */
if (PyModule_AddIntConstant(mod, "OUTPUT_ANN", SRD_OUTPUT_ANN) < 0)
goto err_out;
@@ -74,7 +66,6 @@ PyMODINIT_FUNC PyInit_sigrokdecode(void)
if (PyModule_AddIntConstant(mod, "SRD_CONF_SAMPLERATE", SRD_CONF_SAMPLERATE) < 0)
goto err_out;
- srd_logic_type = logic_type;
mod_sigrokdecode = mod;
return mod;