aboutsummaryrefslogtreecommitdiff
path: root/src/db/ProxyDatabasePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 23:06:10 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 23:06:10 +0100
commit0eb05b827fc239854773b43baff82581d65f9c5b (patch)
treec4f5d1aba7b4aad89826707310b6b75573453408 /src/db/ProxyDatabasePlugin.cxx
parent0c245bc2712f5d38507b8d421cdc0a7e002a3398 (diff)
Directory: turn functions to methods
Diffstat (limited to 'src/db/ProxyDatabasePlugin.cxx')
-rw-r--r--src/db/ProxyDatabasePlugin.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index 95aefc14..93844004 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;
}