diff options
author | Max Kellermann <max@duempel.org> | 2009-03-02 15:42:42 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-02 15:42:42 +0100 |
commit | a1561252d0621fbd74dd6eb9be0de28a5b512c1f (patch) | |
tree | 809fd78999e0721a1dbcef1cb7a890a71da0f0e5 /src/directory_save.h | |
parent | c0ffec2fd1add50dae44c9e73a3c47d7d3998d15 (diff) | |
download | mpd-a1561252d0621fbd74dd6eb9be0de28a5b512c1f.tar.gz mpd-a1561252d0621fbd74dd6eb9be0de28a5b512c1f.tar.xz mpd-a1561252d0621fbd74dd6eb9be0de28a5b512c1f.zip |
directory: directory_load() returns GError
Do error reporting with GLib's GError library in this library, too.
Diffstat (limited to 'src/directory_save.h')
-rw-r--r-- | src/directory_save.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/directory_save.h b/src/directory_save.h index 54143915c..480d0ab9f 100644 --- a/src/directory_save.h +++ b/src/directory_save.h @@ -19,6 +19,9 @@ #ifndef MPD_DIRECTORY_SAVE_H #define MPD_DIRECTORY_SAVE_H +#include <glib.h> + +#include <stdbool.h> #include <stdio.h> struct directory; @@ -26,7 +29,7 @@ struct directory; int directory_save(FILE *fp, struct directory *directory); -void -directory_load(FILE *fp, struct directory *directory); +bool +directory_load(FILE *fp, struct directory *directory, GError **error); #endif |