added G_LOG_DOMAIN macros to several libraries

Define the GLib logging domain in the following libraries: conf,
daemon, event_pipe, log.
This commit is contained in:
Max Kellermann 2009-02-19 09:24:59 +01:00
parent 11e680d640
commit eac2da635d
4 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,9 @@
#include <stdlib.h>
#include <errno.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "config"
#define MAX_STRING_SIZE MPD_PATH_MAX+80
#define CONF_COMMENT '#'

View File

@ -35,6 +35,9 @@
#include <grp.h>
#endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "daemon"
#ifndef WIN32
/** the Unix user name which MPD runs as */

View File

@ -34,6 +34,9 @@
#include <fcntl.h>
#endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "event_pipe"
static int event_pipe[2];
static guint event_pipe_source_id;
static GMutex *event_pipe_mutex;

View File

@ -38,6 +38,9 @@
#include <syslog.h>
#endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "log"
#define LOG_LEVEL_SECURE G_LOG_LEVEL_INFO
#define LOG_DATE_BUF_SIZE 16