Commit eac2da63 authored by Max Kellermann's avatar Max Kellermann

added G_LOG_DOMAIN macros to several libraries

Define the GLib logging domain in the following libraries: conf, daemon, event_pipe, log.
parent 11e680d6
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "config"
#define MAX_STRING_SIZE MPD_PATH_MAX+80 #define MAX_STRING_SIZE MPD_PATH_MAX+80
#define CONF_COMMENT '#' #define CONF_COMMENT '#'
......
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
#include <grp.h> #include <grp.h>
#endif #endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "daemon"
#ifndef WIN32 #ifndef WIN32
/** the Unix user name which MPD runs as */ /** the Unix user name which MPD runs as */
......
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
#include <fcntl.h> #include <fcntl.h>
#endif #endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "event_pipe"
static int event_pipe[2]; static int event_pipe[2];
static guint event_pipe_source_id; static guint event_pipe_source_id;
static GMutex *event_pipe_mutex; static GMutex *event_pipe_mutex;
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
#include <syslog.h> #include <syslog.h>
#endif #endif
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "log"
#define LOG_LEVEL_SECURE G_LOG_LEVEL_INFO #define LOG_LEVEL_SECURE G_LOG_LEVEL_INFO
#define LOG_DATE_BUF_SIZE 16 #define LOG_DATE_BUF_SIZE 16
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment