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/PlaylistFile.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/PlaylistFile.hxx')
-rw-r--r-- | src/PlaylistFile.hxx | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/PlaylistFile.hxx b/src/PlaylistFile.hxx index 15dfd480d..5040d7406 100644 --- a/src/PlaylistFile.hxx +++ b/src/PlaylistFile.hxx @@ -20,14 +20,13 @@ #ifndef MPD_PLAYLIST_FILE_HXX #define MPD_PLAYLIST_FILE_HXX -#include "gerror.h" - #include <vector> #include <string> struct Song; struct PlaylistInfo; class PlaylistVector; +class Error; typedef std::vector<std::string> PlaylistFileContents; @@ -51,31 +50,31 @@ spl_valid_name(const char *name_utf8); * NULL if an error occurred. */ PlaylistVector -ListPlaylistFiles(GError **error_r); +ListPlaylistFiles(Error &error); PlaylistFileContents -LoadPlaylistFile(const char *utf8path, GError **error_r); +LoadPlaylistFile(const char *utf8path, Error &error); bool spl_move_index(const char *utf8path, unsigned src, unsigned dest, - GError **error_r); + Error &error); bool -spl_clear(const char *utf8path, GError **error_r); +spl_clear(const char *utf8path, Error &error); bool -spl_delete(const char *name_utf8, GError **error_r); +spl_delete(const char *name_utf8, Error &error); bool -spl_remove_index(const char *utf8path, unsigned pos, GError **error_r); +spl_remove_index(const char *utf8path, unsigned pos, Error &error); bool -spl_append_song(const char *utf8path, Song *song, GError **error_r); +spl_append_song(const char *utf8path, Song *song, Error &error); bool -spl_append_uri(const char *file, const char *utf8file, GError **error_r); +spl_append_uri(const char *file, const char *utf8file, Error &error); bool -spl_rename(const char *utf8from, const char *utf8to, GError **error_r); +spl_rename(const char *utf8from, const char *utf8to, Error &error); #endif |