aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
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.h
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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/directory.h b/src/directory.h
index 592d5cbb0..cd5c53dfb 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -98,8 +98,15 @@ directory_new_child(struct directory *directory, const char *name)
void
directory_prune_empty(struct directory *directory);
+/**
+ * Looks up a directory by its relative URI.
+ *
+ * @param directory the parent (or grandparent, ...) directory
+ * @param uri the relative URI
+ * @return the directory, or NULL if none was found
+ */
struct directory *
-directory_get_directory(struct directory *directory, const char *name);
+directory_lookup_directory(struct directory *directory, const char *uri);
void
directory_sort(struct directory *directory);