]> sigrok.org Git - libsigrokdecode.git/blobdiff - module_sigrokdecode.c
Drop support for PD API version 2.
[libsigrokdecode.git] / module_sigrokdecode.c
index 17563c1d85d4571e362b5b71a3c5868a36d8c488..a0d9610f97f2f415d8956bc2f51fd6fe578a2939 100644 (file)
@@ -23,8 +23,6 @@
 
 /** @cond PRIVATE */
 
 
 /** @cond PRIVATE */
 
-SRD_PRIV PyObject *srd_logic_type = NULL;
-
 /*
  * When initialized, a reference to this module inside the Python interpreter
  * lives here.
 /*
  * 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)
 {
 /** @cond PRIVATE */
 PyMODINIT_FUNC PyInit_sigrokdecode(void)
 {
-       PyObject *mod, *Decoder_type, *logic_type;
+       PyObject *mod, *Decoder_type;
 
        mod = PyModule_Create(&sigrokdecode_module);
        if (!mod)
 
        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;
 
        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;
        /* 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;
 
        if (PyModule_AddIntConstant(mod, "SRD_CONF_SAMPLERATE", SRD_CONF_SAMPLERATE) < 0)
                goto err_out;
 
-       srd_logic_type = logic_type;
        mod_sigrokdecode = mod;
 
        return mod;
        mod_sigrokdecode = mod;
 
        return mod;