summaryrefslogtreecommitdiff
path: root/sigrokdecode.h
diff options
context:
space:
mode:
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r--sigrokdecode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h
index eaf1e60..815fd74 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -218,8 +218,12 @@ int py_str_as_str(PyObject *py_str, char **outstr);
int py_strlist_to_char(PyObject *py_strlist, char ***outstr);
/*--- log.c -----------------------------------------------------------------*/
+typedef int (*srd_log_handler_t)(void *data, int loglevel, const char *format,
+ va_list args);
int srd_set_loglevel(int loglevel);
int srd_get_loglevel(void);
+int srd_log_set_handler(srd_log_handler_t handler, void *data);
+int srd_log_set_default_handler(void);
#ifdef __cplusplus
}