aboutsummaryrefslogtreecommitdiffstats
path: root/src/listen.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-09-24 21:40:04 +0200
committerMax Kellermann <max@duempel.org>2009-09-24 21:40:04 +0200
commit308b3f2337f100b5d27fa2af50bf929caff4a7d4 (patch)
treed85afd52f91b2e54870aac4ef2b55135a604713d /src/listen.h
parent1e561079676a4774afa8b9c405d98001915322f3 (diff)
downloadmpd-308b3f2337f100b5d27fa2af50bf929caff4a7d4.tar.gz
mpd-308b3f2337f100b5d27fa2af50bf929caff4a7d4.tar.xz
mpd-308b3f2337f100b5d27fa2af50bf929caff4a7d4.zip
listen: handle fatal errors with GError
Don't call g_error(), which will abort the process and dump core.
Diffstat (limited to 'src/listen.h')
-rw-r--r--src/listen.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/listen.h b/src/listen.h
index 63253fc53..9f55edb88 100644
--- a/src/listen.h
+++ b/src/listen.h
@@ -20,9 +20,14 @@
#ifndef MPD_LISTEN_H
#define MPD_LISTEN_H
+#include <glib.h>
+
+#include <stdbool.h>
+
extern int listen_port;
-void listen_global_init(void);
+bool
+listen_global_init(GError **error_r);
void listen_global_finish(void);