diff options
author | Max Kellermann <max@duempel.org> | 2009-07-05 08:29:52 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-05 08:29:52 +0200 |
commit | 111c4dac633418f20559289dbe9a7e3efe2ac4bd (patch) | |
tree | 03892c0c9ea389a1d57565b8c4e13b9d537ceb8e /src/song_save.h | |
parent | 69ff9d757f66ee7afaf7a9220aec253da1e9350f (diff) | |
download | mpd-111c4dac633418f20559289dbe9a7e3efe2ac4bd.tar.gz mpd-111c4dac633418f20559289dbe9a7e3efe2ac4bd.tar.xz mpd-111c4dac633418f20559289dbe9a7e3efe2ac4bd.zip |
song_save: use GError for error handling
Diffstat (limited to '')
-rw-r--r-- | src/song_save.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/song_save.h b/src/song_save.h index b5db3e050..36e03584e 100644 --- a/src/song_save.h +++ b/src/song_save.h @@ -20,6 +20,9 @@ #ifndef MPD_SONG_SAVE_H #define MPD_SONG_SAVE_H +#include <glib.h> + +#include <stdbool.h> #include <stdio.h> struct songvec; @@ -27,7 +30,16 @@ struct directory; void songvec_save(FILE *fp, struct songvec *sv); -void -songvec_load(FILE *fp, struct songvec *sv, struct directory *parent); +/** + * Loads songs from the input file and add the to the specified + * directory. + * + * @param error_r location to store the error occuring, or NULL to + * ignore errors + * @return true on success, false on error + */ +bool +songvec_load(FILE *file, struct songvec *sv, struct directory *parent, + GError **error_r); #endif |