diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 11:07:58 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-08 11:07:58 +0200 |
commit | 68977af6e078b7114195d098a89952b2c89274cd (patch) | |
tree | 0e9d0a59ce59e842c01a8f19162d2b7fa7424d6f /src/directory.h | |
parent | bb8a9533b1a2df4ea34be2c6f053f22fe49a60d0 (diff) | |
download | mpd-68977af6e078b7114195d098a89952b2c89274cd.tar.gz mpd-68977af6e078b7114195d098a89952b2c89274cd.tar.xz mpd-68977af6e078b7114195d098a89952b2c89274cd.zip |
directory: eliminate CamelCase
CamelCase is ugly, rename the functions.
Diffstat (limited to 'src/directory.h')
-rw-r--r-- | src/directory.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/directory.h b/src/directory.h index 90f84f9b6..b378a93f1 100644 --- a/src/directory.h +++ b/src/directory.h @@ -59,10 +59,10 @@ isRootDirectory(const char *name) } struct directory * -newDirectory(const char *dirname, struct directory * parent); +directory_new(const char *dirname, struct directory *parent); void -freeDirectory(struct directory * directory); +directory_free(struct directory *directory); static inline bool directory_is_empty(struct directory *directory) @@ -71,28 +71,29 @@ directory_is_empty(struct directory *directory) } void -deleteEmptyDirectoriesInDirectory(struct directory *directory); +directory_prune_empty(struct directory *directory); struct directory * -getSubDirectory(struct directory *directory, const char *name); +directory_get_directory(struct directory *directory, const char *name); int directory_print(struct client *client, const struct directory *directory); int -writeDirectoryInfo(FILE *fp, struct directory *directory); +directory_save(FILE *fp, struct directory *directory); void -readDirectoryInfo(FILE *fp, struct directory *directory); +directory_load(FILE *fp, struct directory *directory); void -sortDirectory(struct directory * directory); +directory_sort(struct directory *directory); + int -traverseAllInSubDirectory(struct directory * directory, - int (*forEachSong) (struct song *, void *), - int (*forEachDir) (struct directory *, void *), - void *data); +directory_walk(struct directory *directory, + int (*forEachSong)(struct song *, void *), + int (*forEachDir)(struct directory *, void *), + void *data); -#define getDirectoryPath(dir) ((dir && dir->path) ? dir->path : "") +#define directory_get_path(dir) ((dir && dir->path) ? dir->path : "") #endif |