diff options
author | Max Kellermann <max@duempel.org> | 2009-09-24 21:40:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-09-24 21:40:05 +0200 |
commit | 1b227e01458e5db2b1ae80ae8501837f3206c1ac (patch) | |
tree | c2d550ad02d7721f2ee7bfd63fbad2bbd81170ca /src/cmdline.h | |
parent | 308b3f2337f100b5d27fa2af50bf929caff4a7d4 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/cmdline.h | 6 |
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 |