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
{
28
LOG_ERROR
,
29
LOG_WARN
,
30
LOG_DEBUG
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_
LOG_WARN
Definition:
support-log.h:29
want_debug
gboolean want_debug
Definition:
support-log.c:38
LOG_ERROR
Definition:
support-log.h:28
log_msg
void log_msg(enum log_level level, const char *file, const char *format,...)
Definition:
support-log.c:84
log_level
log_level
Definition:
support-log.h:27
log_msg_v
void log_msg_v(enum log_level level, const char *file, const char *format, va_list args)
Definition:
support-log.c:49
LOG_DEBUG
Definition:
support-log.h:30
Generated on Wed Feb 14 2018 21:08:47 for pnmixer by
1.8.13