Add a log handler for libasound

This commit is contained in:
Julien BLACHE 2010-05-02 10:50:52 +02:00
parent ff7e6aa533
commit 1849601d56
2 changed files with 17 additions and 0 deletions

View File

@ -181,6 +181,18 @@ logger_libevent(int severity, const char *msg)
DPRINTF(severity, L_EVENT, "%s\n", msg);
}
#ifdef LAUDIO_USE_ALSA
void
logger_alsa(const char *file, int line, const char *function, int err, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vlogger(E_LOG, L_LAUDIO, fmt, ap);
va_end(ap);
}
#endif /* LAUDIO_USE_ALSA */
void
logger_reinit(void)
{

View File

@ -48,6 +48,11 @@ logger_ffmpeg(void *ptr, int level, const char *fmt, va_list ap);
void
logger_libevent(int severity, const char *msg);
#ifdef LAUDIO_USE_ALSA
void
logger_alsa(const char *file, int line, const char *function, int err, const char *fmt, ...);
#endif
void
logger_reinit(void);