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/SongSave.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 'src/SongSave.hxx')
-rw-r--r-- | src/SongSave.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/SongSave.hxx b/src/SongSave.hxx index 9fd6ba86c..f18aa9660 100644 --- a/src/SongSave.hxx +++ b/src/SongSave.hxx @@ -20,8 +20,6 @@ #ifndef MPD_SONG_SAVE_HXX #define MPD_SONG_SAVE_HXX -#include "gerror.h" - #include <stdio.h> #define SONG_BEGIN "song_begin: " @@ -29,6 +27,7 @@ struct Song; struct Directory; class TextFile; +class Error; void song_save(FILE *fp, const Song *song); @@ -37,12 +36,11 @@ song_save(FILE *fp, const Song *song); * Loads a song from the input file. Reading stops after the * "song_end" line. * - * @param error_r location to store the error occurring, or NULL to - * ignore errors + * @param error location to store the error occurring * @return true on success, false on error */ Song * song_load(TextFile &file, Directory *parent, const char *uri, - GError **error_r); + Error &error); #endif |