srd: add python exception catcher, which routes to srd_err() and srd_dbg()
[libsigrokdecode.git] / sigrokdecode.h
index 70652a4f8cdcbf444c6316e5508a99d6b48a9112..dfddb1383aaddfcac9ee4e452aa192de9ab62ec4 100644 (file)
@@ -206,6 +206,9 @@ int srd_load_all_decoders(void);
 int srd_unload_all_decoders(void);
 char *srd_decoder_doc(struct srd_decoder *dec);
 
+/*--- exception.c -----------------------------------------------------------*/
+void catch_exception(const char *format, ...);
+
 /*--- util.c ----------------------------------------------------------------*/
 int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr);
 int py_dictitem_as_str(PyObject *py_obj, const char *key, char **outstr);