aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-13 16:32:39 +0200
committerMax Kellermann <max@duempel.org>2008-10-13 16:32:39 +0200
commit3b6ff84393985aa9d148d2c00c49630ed2590d7d (patch)
tree3ec924094df3710505c0312171370367aca946ee /src/directory.h
parentbc85e92a722d945d193c9f3881e4ee9f96c8f2b6 (diff)
downloadmpd-3b6ff84393985aa9d148d2c00c49630ed2590d7d.tar.gz
mpd-3b6ff84393985aa9d148d2c00c49630ed2590d7d.tar.xz
mpd-3b6ff84393985aa9d148d2c00c49630ed2590d7d.zip
directory: added directory_get_name()
directory_get_name() returns the base name of the directory.
Diffstat (limited to '')
-rw-r--r--src/directory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/directory.h b/src/directory.h
index a7a632ebc..8cb5ed5f8 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -68,6 +68,12 @@ directory_get_path(const struct directory *directory)
return directory->path;
}
+/**
+ * Returns the base name of the directory.
+ */
+const char *
+directory_get_name(const struct directory *directory);
+
static inline struct directory *
directory_get_child(const struct directory *directory, const char *name)
{