summaryrefslogtreecommitdiff
path: root/include/xine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/xine.h')
-rw-r--r--include/xine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xine.h b/include/xine.h
index ba022c389..f3c79a7b4 100644
--- a/include/xine.h
+++ b/include/xine.h
@@ -802,6 +802,11 @@ void xine_vlog(xine_t *self, int buf,
/* get log messages of specified section */
char *const *xine_get_log (xine_t *self, int buf) XINE_PROTECTED;
+/* log callback will be called whenever something is logged */
+typedef void (*xine_log_cb_t) (void *user_data, int section);
+void xine_register_log_cb (xine_t *self, xine_log_cb_t cb,
+ void *user_data) XINE_PROTECTED;
+
/*
* error handling / engine status
*/