diff options
author | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 01:10:47 +0100 |
commit | 3e8047e5831b4cc7dabae596746066698ad7c8cd (patch) | |
tree | 51cf8e3cc3b5b373f11ffbd6d7c0b34b3c0acb6c /src/Song.cxx | |
parent | 440ac51cf0250904813dfc9398ca8c9e6467328f (diff) | |
download | mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.tar.gz mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.tar.xz mpd-3e8047e5831b4cc7dabae596746066698ad7c8cd.zip |
Directory: rename struct directory to Directory
Diffstat (limited to 'src/Song.cxx')
-rw-r--r-- | src/Song.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Song.cxx b/src/Song.cxx index 9da21645c..c845384ae 100644 --- a/src/Song.cxx +++ b/src/Song.cxx @@ -29,10 +29,10 @@ extern "C" { #include <assert.h> -struct directory detached_root; +Directory detached_root; static struct song * -song_alloc(const char *uri, struct directory *parent) +song_alloc(const char *uri, Directory *parent) { size_t uri_length; @@ -59,7 +59,7 @@ song_remote_new(const char *uri) } struct song * -song_file_new(const char *path, struct directory *parent) +song_file_new(const char *path, Directory *parent) { assert((parent == nullptr) == (*path == '/')); @@ -117,14 +117,14 @@ song_free(struct song *song) gcc_pure static inline bool -directory_equals(const struct directory &a, const struct directory &b) +directory_equals(const Directory &a, const Directory &b) { return strcmp(a.path, b.path) == 0; } gcc_pure static inline bool -directory_is_same(const struct directory *a, const struct directory *b) +directory_is_same(const Directory *a, const Directory *b) { return a == b || (a != nullptr && b != nullptr && |