aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-19 09:24:59 +0100
committerMax Kellermann <max@duempel.org>2009-02-19 09:24:59 +0100
commiteac2da635dbe93159d67a202c4c68d0b77c0c72a (patch)
treed625c699284f070687ab3cac8a7f2e1fc56af36d /src
parent11e680d6405161ca0c06adddf3e99433dc8922e8 (diff)
downloadmpd-eac2da635dbe93159d67a202c4c68d0b77c0c72a.tar.gz
mpd-eac2da635dbe93159d67a202c4c68d0b77c0c72a.tar.xz
mpd-eac2da635dbe93159d67a202c4c68d0b77c0c72a.zip
added G_LOG_DOMAIN macros to several libraries
Define the GLib logging domain in the following libraries: conf, daemon, event_pipe, log.
Diffstat (limited to 'src')
-rw-r--r--src/conf.c3
-rw-r--r--src/daemon.c3
-rw-r--r--src/event_pipe.c3
-rw-r--r--src/log.c3
4 files changed, 12 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index ea3f449dc..2f022411e 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -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 '#'
diff --git a/src/daemon.c b/src/daemon.c
index d920ff6c5..309463cd5 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -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 */
diff --git a/src/event_pipe.c b/src/event_pipe.c
index 2bfdf2044..43a1c4c18 100644
--- a/src/event_pipe.c
+++ b/src/event_pipe.c
@@ -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;
diff --git a/src/log.c b/src/log.c
index 575ba4301..5ef3d02b9 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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