aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-01 18:41:33 +0200
committerMax Kellermann <max@duempel.org>2009-04-01 18:41:33 +0200
commit36ec2edacfbf17b5308312ad5617117685004174 (patch)
tree6d6be9a0e5eef2caee320537aab2a516c63a8435 /src/directory.c
parent932f70da8631f12269f8b717eb2ed7b487f7a90e (diff)
downloadmpd-36ec2edacfbf17b5308312ad5617117685004174.tar.gz
mpd-36ec2edacfbf17b5308312ad5617117685004174.tar.xz
mpd-36ec2edacfbf17b5308312ad5617117685004174.zip
directory: renamed directory_get_directory()
Renamed directory_get_directory() to directory_lookup_directory(). Added API documentation.
Diffstat (limited to '')
-rw-r--r--src/directory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/directory.c b/src/directory.c
index 039bdcbe1..ef2cd1c2c 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -82,19 +82,19 @@ directory_prune_empty(struct directory *directory)
}
struct directory *
-directory_get_directory(struct directory *directory, const char *name)
+directory_lookup_directory(struct directory *directory, const char *uri)
{
struct directory *cur = directory;
struct directory *found = NULL;
char *duplicated;
char *locate;
- assert(name != NULL);
+ assert(uri != NULL);
- if (isRootDirectory(name))
+ if (isRootDirectory(uri))
return directory;
- duplicated = g_strdup(name);
+ duplicated = g_strdup(uri);
locate = strchr(duplicated, '/');
while (1) {
if (locate)