aboutsummaryrefslogtreecommitdiff
path: root/src/Song.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/Song.cxx
parent440ac51cf0250904813dfc9398ca8c9e6467328f (diff)
Directory: rename struct directory to Directory
Diffstat (limited to 'src/Song.cxx')
-rw-r--r--src/Song.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Song.cxx b/src/Song.cxx
index 9da21645..c845384a 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 &&