X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoder.c;h=6290add071b64865cb36c9a392d15e7da6440d1f;hp=02edee22b69aa674dc4039ea1a493dc898b962d2;hb=1c9ac10f4b2c6e83184fe29bd32e090fcac211e7;hpb=6c36501de9d0b91a203d4943b16d0a63e1c98d9e diff --git a/decoder.c b/decoder.c index 02edee2..6290add 100644 --- a/decoder.c +++ b/decoder.c @@ -149,7 +149,7 @@ SRD_API int srd_decoder_load(const char *module_name) /* Import the Python module. */ if (!(d->py_mod = PyImport_ImportModule(module_name))) { - catch_exception("Import of '%s' failed.", module_name); + srd_exception_catch("Import of '%s' failed.", module_name); goto err_out; } @@ -289,7 +289,7 @@ err_out: * @return A newly allocated buffer containing the protocol decoder's * documentation. The caller is responsible for free'ing the buffer. */ -SRD_API char *srd_decoder_doc(const struct srd_decoder *dec) +SRD_API char *srd_decoder_doc_get(const struct srd_decoder *dec) { PyObject *py_str; char *doc; @@ -298,7 +298,7 @@ SRD_API char *srd_decoder_doc(const struct srd_decoder *dec) return NULL; if (!(py_str = PyObject_GetAttrString(dec->py_mod, "__doc__"))) { - catch_exception(""); + srd_exception_catch(""); return NULL; }