aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabasePrint.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/DatabasePrint.cxx
parent0c245bc2712f5d38507b8d421cdc0a7e002a3398 (diff)
downloadmpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.gz
mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.xz
mpd-0eb05b827fc239854773b43baff82581d65f9c5b.zip
Directory: turn functions to methods
Diffstat (limited to '')
-rw-r--r--src/DatabasePrint.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx
index 193b126cb..2bdb2e4fe 100644
--- a/src/DatabasePrint.cxx
+++ b/src/DatabasePrint.cxx
@@ -41,9 +41,8 @@ extern "C" {
static bool
PrintDirectory(struct client *client, const directory &directory)
{
- if (!directory_is_root(&directory))
- client_printf(client, "directory: %s\n",
- directory_get_path(&directory));
+ if (!directory.IsRoot())
+ client_printf(client, "directory: %s\n", directory.GetPath());
return true;
}
@@ -53,11 +52,11 @@ print_playlist_in_directory(struct client *client,
const directory &directory,
const char *name_utf8)
{
- if (directory_is_root(&directory))
+ if (directory.IsRoot())
client_printf(client, "playlist: %s\n", name_utf8);
else
client_printf(client, "playlist: %s/%s\n",
- directory_get_path(&directory), name_utf8);
+ directory.GetPath(), name_utf8);
}
static bool