diff options
author | Max Kellermann <max@duempel.org> | 2011-09-05 23:03:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-10 07:58:43 +0200 |
commit | 7819aa6b2060b600b9ec2471f250038eeebae523 (patch) | |
tree | a1523f90ee693f5adba207c208bea81b8466e3b9 /src/database.h | |
parent | 7cc6b63aac5a355bc2dd216d41ce4dc0e0fc3066 (diff) | |
download | mpd-7819aa6b2060b600b9ec2471f250038eeebae523.tar.gz mpd-7819aa6b2060b600b9ec2471f250038eeebae523.tar.xz mpd-7819aa6b2060b600b9ec2471f250038eeebae523.zip |
db_plugin: introducing a plugin API for the song database
First draft, not really pluggable currently - hard-coded to use the
"simple" plugin, and calls several of its internal functions.
The API is very simple currently, all searches are still performed
over the root "directory" object. Future changes to the API will move
those search implementations into the plugin, to allow more efficient
implementations, or implementations that don't have the whole tree in
memory all the time.
Diffstat (limited to '')
-rw-r--r-- | src/database.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/database.h b/src/database.h index 66423f46f..3e834ab84 100644 --- a/src/database.h +++ b/src/database.h @@ -25,6 +25,7 @@ #include <sys/time.h> #include <stdbool.h> +struct config_param; struct directory; /** @@ -32,19 +33,13 @@ struct directory; * * @param path the absolute path of the database file */ -void -db_init(const char *path); +bool +db_init(const struct config_param *path, GError **error_r); void db_finish(void); /** - * Clear the database. - */ -void -db_clear(void); - -/** * Returns the root directory object. Returns NULL if there is no * configured music directory. */ |