[logger] Expose log severity

This commit is contained in:
chme 2018-01-13 10:47:14 +01:00
parent e7f8b7010b
commit c747456880
2 changed files with 10 additions and 0 deletions

View File

@ -260,6 +260,12 @@ logger_reinit(void)
}
int
logger_severity(void)
{
return threshold;
}
/* The functions below are used at init time with a single thread running */
void
logger_domains(void)

View File

@ -48,6 +48,7 @@
#define E_SPAM 5
void
DPRINTF(int severity, int domain, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
@ -65,6 +66,9 @@ logger_alsa(const char *file, int line, const char *function, int err, const cha
void
logger_reinit(void);
int
logger_severity(void);
void
logger_domains(void);