aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 21:40:28 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 21:53:42 +0200
commitb680753db88ea75cab6776aaf99c1635c9e48f68 (patch)
tree00709ecfbe53f2bf3b4d464f9f8132e2f16b0ed6 /src/log.h
parent35af940166da22a253cf8bbff48d6e7d63389d0b (diff)
downloadmpd-b680753db88ea75cab6776aaf99c1635c9e48f68.tar.gz
mpd-b680753db88ea75cab6776aaf99c1635c9e48f68.tar.xz
mpd-b680753db88ea75cab6776aaf99c1635c9e48f68.zip
log: return GError on initialization failure
Diffstat (limited to '')
-rw-r--r--src/log.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index 9a06d46bf..75e386b25 100644
--- a/src/log.h
+++ b/src/log.h
@@ -23,6 +23,13 @@
#include <glib.h>
#include <stdbool.h>
+G_GNUC_CONST
+static inline GQuark
+log_quark(void)
+{
+ return g_quark_from_static_string("log");
+}
+
/**
* Configure a logging destination for daemon startup, before the
* configuration file is read. This allows the daemon to use the
@@ -34,7 +41,8 @@
void
log_early_init(bool verbose);
-void log_init(bool verbose, bool use_stdout);
+bool
+log_init(bool verbose, bool use_stdout, GError **error_r);
void setup_log_output(bool use_stdout);