diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-08-15 23:09:11 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-08-30 22:14:27 +0200 |
commit | c7b211b18466c69df976a6d71f1c8ba30145f14c (patch) | |
tree | dfd8359beaff7a4bdb9a6c7bcd1a45414df3a4a9 /libsigrokdecode.h | |
parent | d4d8ac2a005a091f23bf89cff2ff6fbfc8fcd739 (diff) | |
download | libsigrokdecode-c7b211b18466c69df976a6d71f1c8ba30145f14c.tar.gz libsigrokdecode-c7b211b18466c69df976a6d71f1c8ba30145f14c.zip |
log: add a public srd_log_callback_get() API routine
Allow applications to query the currently registered log callback. So
they can either restore the previously registered routine, or register
another routine _and_ log to the previously registered routine as well.
Diffstat (limited to 'libsigrokdecode.h')
-rw-r--r-- | libsigrokdecode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsigrokdecode.h b/libsigrokdecode.h index deba470..55620a7 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -367,6 +367,7 @@ typedef int (*srd_log_callback)(void *cb_data, int loglevel, const char *format, va_list args); SRD_API int srd_log_loglevel_set(int loglevel); SRD_API int srd_log_loglevel_get(void); +SRD_API int srd_log_callback_get(srd_log_callback *cb, void **cb_data); SRD_API int srd_log_callback_set(srd_log_callback cb, void *cb_data); SRD_API int srd_log_callback_set_default(void); |