aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-09-24 21:40:05 +0200
committerMax Kellermann <max@duempel.org>2009-09-24 21:40:05 +0200
commit1b227e01458e5db2b1ae80ae8501837f3206c1ac (patch)
treec2d550ad02d7721f2ee7bfd63fbad2bbd81170ca /src/cmdline.h
parent308b3f2337f100b5d27fa2af50bf929caff4a7d4 (diff)
downloadmpd-1b227e01458e5db2b1ae80ae8501837f3206c1ac.tar.gz
mpd-1b227e01458e5db2b1ae80ae8501837f3206c1ac.tar.xz
mpd-1b227e01458e5db2b1ae80ae8501837f3206c1ac.zip
cmdline: handle fatal errors with GError
Don't call g_error(), which will abort the process and dump core.
Diffstat (limited to 'src/cmdline.h')
-rw-r--r--src/cmdline.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmdline.h b/src/cmdline.h
index eb626dbc2..945868b8c 100644
--- a/src/cmdline.h
+++ b/src/cmdline.h
@@ -22,6 +22,8 @@
#include <glib.h>
+#include <stdbool.h>
+
struct options {
gboolean kill;
gboolean daemon;
@@ -29,6 +31,8 @@ struct options {
gboolean verbose;
};
-void parse_cmdline(int argc, char **argv, struct options *options);
+bool
+parse_cmdline(int argc, char **argv, struct options *options,
+ GError **error_r);
#endif