directory: directory_load() returns GError

Do error reporting with GLib's GError library in this library, too.
This commit is contained in:
Max Kellermann
2009-03-02 15:42:42 +01:00
parent c0ffec2fd1
commit a1561252d0
3 changed files with 53 additions and 19 deletions

View File

@@ -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