pnmixer
Volume mixer for the system tray
support-log.h
Go to the documentation of this file.
1 /* support-log.h
2  * PNmixer is written by Nick Lanham, a fork of OBmixer
3  * which was programmed by Lee Ferrett, derived
4  * from the program "AbsVolume" by Paul Sherman
5  * This program is free software; you can redistribute
6  * it and/or modify it under the terms of the GNU General
7  * Public License v3. source code is available at
8  * <http://github.com/nicklan/pnmixer>
9  */
10 
20 #ifndef _SUPPORT_LOG_H_
21 #define _SUPPORT_LOG_H_
22 
23 #include <glib.h>
24 
25 extern gboolean want_debug;
26 
27 enum log_level {
31 };
32 
33 void log_msg_v(enum log_level level, const char *file, const char *format, va_list args);
34 void log_msg(enum log_level level, const char *file, const char *format, ...);
35 
36 #define ERROR(...) log_msg(LOG_ERROR, __FILE__, __VA_ARGS__)
37 #define WARN(...) log_msg(LOG_WARN, __FILE__, __VA_ARGS__)
38 #define DEBUG(...) log_msg(LOG_DEBUG, __FILE__, __VA_ARGS__)
39 
40 #endif // _SUPPORT_LOG_H_
gboolean want_debug
Definition: support-log.c:38
void log_msg(enum log_level level, const char *file, const char *format,...)
Definition: support-log.c:84
log_level
Definition: support-log.h:27
void log_msg_v(enum log_level level, const char *file, const char *format, va_list args)
Definition: support-log.c:49