summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/log.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-29 19:33:06 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-29 19:33:06 +0200
commitbdcb3a493cc5bdba254d365b7e567876a72c789b (patch)
tree16d0c238903d606cb64df9325e955f302a426337 /src/pulsecore/log.h
parent54da71ef5de500016c549e20a26131365668b74c (diff)
optionally add timestampts to every line logged
Diffstat (limited to 'src/pulsecore/log.h')
-rw-r--r--src/pulsecore/log.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulsecore/log.h b/src/pulsecore/log.h
index 2047696e..633227f3 100644
--- a/src/pulsecore/log.h
+++ b/src/pulsecore/log.h
@@ -49,8 +49,10 @@ typedef enum pa_log_level {
/* Set an identification for the current daemon. Used when logging to syslog. */
void pa_log_set_ident(const char *p);
+typedef void (*pa_log_func_t)(pa_log_level_t t, const char*s);
+
/* Set another log target. If t is PA_LOG_USER you may specify a function that is called every log string */
-void pa_log_set_target(pa_log_target_t t, void (*func)(pa_log_level_t t, const char*s));
+void pa_log_set_target(pa_log_target_t t, pa_log_func_t func);
/* Minimal log level */
void pa_log_set_maximal_level(pa_log_level_t l);