diff options
Diffstat (limited to 'polyp/log.h')
-rw-r--r-- | polyp/log.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/polyp/log.h b/polyp/log.h new file mode 100644 index 00000000..1f2c74ef --- /dev/null +++ b/polyp/log.h @@ -0,0 +1,17 @@ +#ifndef foologhfoo +#define foologhfoo + +#include "gcc-printf.h" + +enum pa_log_target { + PA_LOG_SYSLOG, + PA_LOG_STDERR, + PA_LOG_USER, +}; + +void pa_log_set_ident(const char *p); +void pa_log_set_target(enum pa_log_target t, void (*func)(const char*s)); + +void pa_log(const char *format, ...) PA_GCC_PRINTF_ATTR(1,2); + +#endif |