diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 10:49:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-08 10:49:05 +0200 |
commit | 25f67da58c671885c86ecfd991f28ec82b6ce1e2 (patch) | |
tree | 7da9638ff323573d2aa53e70337866f8935114a0 /src/dirvec.h | |
parent | 3c1142cbcbd428ac5784ef098ac5e7a393647aa6 (diff) | |
download | mpd-25f67da58c671885c86ecfd991f28ec82b6ce1e2.tar.gz mpd-25f67da58c671885c86ecfd991f28ec82b6ce1e2.tar.xz mpd-25f67da58c671885c86ecfd991f28ec82b6ce1e2.zip |
directory: converted typedef Directory to struct directory
The struct can be forward-declared by other headers, which relaxes the
header dependencies.
Diffstat (limited to '')
-rw-r--r-- | src/dirvec.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dirvec.h b/src/dirvec.h index 94abd681f..31719fcc8 100644 --- a/src/dirvec.h +++ b/src/dirvec.h @@ -1,15 +1,15 @@ #ifndef DIRVEC_H #define DIRVEC_H -#include "directory.h" +struct dirvec; void dirvec_sort(struct dirvec *dv); -Directory *dirvec_find(struct dirvec *dv, const char *path); +struct directory *dirvec_find(struct dirvec *dv, const char *path); -int dirvec_delete(struct dirvec *dv, Directory *del); +int dirvec_delete(struct dirvec *dv, struct directory *del); -void dirvec_add(struct dirvec *dv, Directory *add); +void dirvec_add(struct dirvec *dv, struct directory *add); void dirvec_destroy(struct dirvec *dv); |