database: db_load() returns GError

Do error reporting with GLib's GError library.
This commit is contained in:
Max Kellermann
2009-03-02 15:42:21 +01:00
parent eb5b3ce553
commit c0ffec2fd1
3 changed files with 48 additions and 17 deletions

View File

@@ -20,6 +20,8 @@
#ifndef MPD_DATABASE_H
#define MPD_DATABASE_H
#include <glib.h>
#include <sys/time.h>
#include <stdbool.h>
@@ -66,7 +68,7 @@ bool
db_save(void);
bool
db_load(void);
db_load(GError **error);
time_t
db_get_mtime(void);