diff options
author | Max Kellermann <max@duempel.org> | 2013-08-10 18:02:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-04 18:14:22 +0200 |
commit | 29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch) | |
tree | 79766830b55ebca38ddbce84d8d548227eedb69e /src/system/FatalError.hxx | |
parent | c9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff) | |
download | mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.gz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.xz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.zip |
util/Error: new error passing library
Replaces GLib's GError.
Diffstat (limited to '')
-rw-r--r-- | src/system/FatalError.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/system/FatalError.hxx b/src/system/FatalError.hxx index 3918e5fc1..be67aabbd 100644 --- a/src/system/FatalError.hxx +++ b/src/system/FatalError.hxx @@ -20,9 +20,12 @@ #ifndef MPD_FATAL_ERROR_HXX #define MPD_FATAL_ERROR_HXX +#include "check.h" #include "gerror.h" #include "gcc.h" +class Error; + /** * Log the specified message and abort the process. */ @@ -36,6 +39,10 @@ FormatFatalError(const char *fmt, ...); gcc_noreturn void +FatalError(const Error &error); + +gcc_noreturn +void FatalError(GError *error); gcc_noreturn |