aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/directory.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/directory.h b/src/directory.h
index a95e0d7db..5609e4ea4 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -61,7 +61,10 @@ static inline int directory_is_empty(struct directory *directory)
return directory->children.nr == 0 && directory->songs.nr == 0;
}
-int printDirectoryInfo(int fd, const char *dirname);
+static inline const char * directory_get_path(struct directory *dir)
+{
+ return dir->path ? dir->path : "";
+}
void directory_prune_empty(struct directory *directory);
@@ -86,6 +89,4 @@ int directory_walk(struct directory *directory,
int (*forEachSong) (struct mpd_song *, void *),
int (*forEachDir) (struct directory *, void *), void *data);
-#define directory_get_path(dir) ((dir && dir->path) ? dir->path : "")
-
#endif