aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateDatabase.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 23:06:20 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 01:10:47 +0100
commit3e8047e5831b4cc7dabae596746066698ad7c8cd (patch)
tree51cf8e3cc3b5b373f11ffbd6d7c0b34b3c0acb6c /src/UpdateDatabase.cxx
parent440ac51cf0250904813dfc9398ca8c9e6467328f (diff)
downloadmpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.tar.gz
mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.tar.xz
mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.zip
Directory: rename struct directory to Directory
Diffstat (limited to '')
-rw-r--r--src/UpdateDatabase.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/UpdateDatabase.cxx b/src/UpdateDatabase.cxx
index cf95236f4..50697511c 100644
--- a/src/UpdateDatabase.cxx
+++ b/src/UpdateDatabase.cxx
@@ -29,7 +29,7 @@
#include <assert.h>
void
-delete_song(struct directory *dir, struct song *del)
+delete_song(Directory *dir, struct song *del)
{
assert(del->parent == dir);
@@ -54,9 +54,9 @@ delete_song(struct directory *dir, struct song *del)
* Caller must lock the #db_mutex.
*/
static void
-clear_directory(struct directory *directory)
+clear_directory(Directory *directory)
{
- struct directory *child, *n;
+ Directory *child, *n;
directory_for_each_child_safe(child, n, directory)
delete_directory(child);
@@ -68,7 +68,7 @@ clear_directory(struct directory *directory)
}
void
-delete_directory(struct directory *directory)
+delete_directory(Directory *directory)
{
assert(directory->parent != NULL);
@@ -78,12 +78,12 @@ delete_directory(struct directory *directory)
}
bool
-delete_name_in(struct directory *parent, const char *name)
+delete_name_in(Directory *parent, const char *name)
{
bool modified = false;
db_lock();
- directory *directory = parent->FindChild(name);
+ Directory *directory = parent->FindChild(name);
if (directory != NULL) {
delete_directory(directory);