diff options
author | Max Kellermann <max@duempel.org> | 2014-02-28 08:21:34 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-28 08:21:34 +0100 |
commit | 20cdab5546dd7272ae1e01f07b70c5d1c14bf056 (patch) | |
tree | a28b9c630d40df492cb6a792bac5444f249f08ab /src | |
parent | 6765234b60e35ae3a17773dab2a60c3ae64eb8a0 (diff) | |
download | mpd-20cdab5546dd7272ae1e01f07b70c5d1c14bf056.tar.gz mpd-20cdab5546dd7272ae1e01f07b70c5d1c14bf056.tar.xz mpd-20cdab5546dd7272ae1e01f07b70c5d1c14bf056.zip |
DatabasePrint: move code to PrintDirectoryURI()
Diffstat (limited to '')
-rw-r--r-- | src/db/DatabasePrint.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx index ccdfbe026..0ffcad35e 100644 --- a/src/db/DatabasePrint.cxx +++ b/src/db/DatabasePrint.cxx @@ -32,11 +32,17 @@ #include <functional> +static void +PrintDirectoryURI(Client &client, const LightDirectory &directory) +{ + client_printf(client, "directory: %s\n", directory.GetPath()); +} + static bool PrintDirectoryBrief(Client &client, const LightDirectory &directory) { if (!directory.IsRoot()) - client_printf(client, "directory: %s\n", directory.GetPath()); + PrintDirectoryURI(client, directory); return true; } @@ -45,7 +51,7 @@ static bool PrintDirectoryFull(Client &client, const LightDirectory &directory) { if (!directory.IsRoot()) { - client_printf(client, "directory: %s\n", directory.GetPath()); + PrintDirectoryURI(client, directory); if (directory.mtime > 0) time_print(client, "Last-Modified", directory.mtime); |