summaryrefslogtreecommitdiffstats
path: root/polyp/log.h
blob: 1f2c74ef95fbc710e7a35b91642472847d2da074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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