diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-23 02:20:51 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-23 04:53:32 +0100 |
commit | ec871a279893cfe0ab378eddc0a9f9bcccc44925 (patch) | |
tree | 46255d4312c2c059d28f6927ec5d07e744163228 /sigrokdecode.h | |
parent | 4fadb1282f5e9aa41abcb67e7d90cdc4a9b2628d (diff) | |
download | libsigrokdecode-ec871a279893cfe0ab378eddc0a9f9bcccc44925.tar.gz libsigrokdecode-ec871a279893cfe0ab378eddc0a9f9bcccc44925.zip |
srd: add python exception catcher, which routes to srd_err() and srd_dbg()
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r-- | sigrokdecode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h index 70652a4..dfddb13 100644 --- a/sigrokdecode.h +++ b/sigrokdecode.h @@ -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); |