X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=module_sigrokdecode.c;h=46b3ced7695db861d61acc126f473b9ec48c69cd;hp=655c1f5a18a019f97427f2555dcb9cada55f541f;hb=0b9224604aa166775a6693efba215a33ce594b70;hpb=1f2e00d140ac41a3a61888f67fc6f96c4369bea3 diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c index 655c1f5..46b3ced 100644 --- a/module_sigrokdecode.c +++ b/module_sigrokdecode.c @@ -71,12 +71,15 @@ PyMODINIT_FUNC PyInit_sigrokdecode(void) /* expose output types as symbols in the sigrokdecode module */ if (PyModule_AddIntConstant(mod, "OUTPUT_ANN", SRD_OUTPUT_ANN) == -1) return NULL; - if (PyModule_AddIntConstant(mod, "OUTPUT_PROTO", - SRD_OUTPUT_PROTO) == -1) + if (PyModule_AddIntConstant(mod, "OUTPUT_PYTHON", + SRD_OUTPUT_PYTHON) == -1) return NULL; if (PyModule_AddIntConstant(mod, "OUTPUT_BINARY", SRD_OUTPUT_BINARY) == -1) return NULL; + if (PyModule_AddIntConstant(mod, "SRD_CONF_SAMPLERATE", + SRD_CONF_SAMPLERATE) == -1) + return NULL; mod_sigrokdecode = mod;