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/UpdateContainer.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/UpdateContainer.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/UpdateContainer.cxx b/src/UpdateContainer.cxx index d0e35299c..1d6508457 100644 --- a/src/UpdateContainer.cxx +++ b/src/UpdateContainer.cxx @@ -46,7 +46,7 @@ static struct directory * make_directory_if_modified(struct directory *parent, const char *name, const struct stat *st) { - struct directory *directory = directory_get_child(parent, name); + directory *directory = parent->FindChild(name); // directory exists already if (directory != NULL) { @@ -60,7 +60,7 @@ make_directory_if_modified(struct directory *parent, const char *name, modified = true; } - directory = directory_make_child(parent, name); + directory = parent->MakeChild(name); directory->mtime = st->st_mtime; return directory; } @@ -104,13 +104,12 @@ update_container_file(struct directory *directory, g_free(child_path_fs); db_lock(); - directory_add_song(contdir, song); + contdir->AddSong(song); db_unlock(); modified = true; - g_message("added %s/%s", - directory_get_path(directory), vtrack); + g_message("added %s/%s", directory->GetPath(), vtrack); g_free(vtrack); } |