diff options
author | Max Kellermann <max@duempel.org> | 2012-01-24 19:07:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-01-24 20:03:18 +0100 |
commit | 420a4c163d4147b6354244cba69fbdd78e17ced2 (patch) | |
tree | 2e247c381ffd087a6a7a981e432f827b147dcac7 /src/db/simple_db_plugin.c | |
parent | 1bab735580f83932407b90c722bd021a49c389e8 (diff) | |
download | mpd-420a4c163d4147b6354244cba69fbdd78e17ced2.tar.gz mpd-420a4c163d4147b6354244cba69fbdd78e17ced2.tar.xz mpd-420a4c163d4147b6354244cba69fbdd78e17ced2.zip |
directory: simplify constructors and clarify API documentation
Pass only the "name" to a directory, instead of the full (relative)
path.
Diffstat (limited to 'src/db/simple_db_plugin.c')
-rw-r--r-- | src/db/simple_db_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/simple_db_plugin.c b/src/db/simple_db_plugin.c index e7cf41fa2..7b13d0a26 100644 --- a/src/db/simple_db_plugin.c +++ b/src/db/simple_db_plugin.c @@ -199,7 +199,7 @@ simple_db_open(struct db *_db, G_GNUC_UNUSED GError **error_r) { struct simple_db *db = (struct simple_db *)_db; - db->root = directory_new("", NULL); + db->root = directory_new_root(); db->mtime = 0; GError *error = NULL; @@ -212,7 +212,7 @@ simple_db_open(struct db *_db, G_GNUC_UNUSED GError **error_r) if (!simple_db_check(db, error_r)) return false; - db->root = directory_new("", NULL); + db->root = directory_new_root(); } return true; |