diff options
author | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:10 +0100 |
commit | 0eb05b827fc239854773b43baff82581d65f9c5b (patch) | |
tree | c4f5d1aba7b4aad89826707310b6b75573453408 /src/db/ProxyDatabasePlugin.cxx | |
parent | 0c245bc2712f5d38507b8d421cdc0a7e002a3398 (diff) | |
download | mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.gz mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.xz mpd-0eb05b827fc239854773b43baff82581d65f9c5b.zip |
Directory: turn functions to methods
Diffstat (limited to '')
-rw-r--r-- | src/db/ProxyDatabasePlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx index 95aefc14f..938440046 100644 --- a/src/db/ProxyDatabasePlugin.cxx +++ b/src/db/ProxyDatabasePlugin.cxx @@ -168,7 +168,7 @@ ProxyDatabase::Open(GError **error_r) return false; } - root = directory_new_root(); + root = directory::NewRoot(); return true; } @@ -178,7 +178,7 @@ ProxyDatabase::Close() { assert(connection != nullptr); - directory_free(root); + root->Free(); mpd_connection_free(connection); } @@ -241,9 +241,9 @@ Visit(struct mpd_connection *connection, if (visit_directory) { struct directory *d = - directory_new(path, &detached_root); + directory::NewGeneric(path, &detached_root); bool success = visit_directory(*d, error_r); - directory_free(d); + d->Free(); if (!success) return false; } |