aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-29 13:11:40 +0200
committerMax Kellermann <max@duempel.org>2008-09-29 13:11:40 +0200
commit3b8bc33a0454caf0521b4eb836ac0bbba293ece5 (patch)
tree901ae6f4ea8d0889216a75c4607289ccd4556c9c /src/directory.h
parent029f607e159c17e4a66b30bf083d6c1ae02c669b (diff)
downloadmpd-3b8bc33a0454caf0521b4eb836ac0bbba293ece5.tar.gz
mpd-3b8bc33a0454caf0521b4eb836ac0bbba293ece5.tar.xz
mpd-3b8bc33a0454caf0521b4eb836ac0bbba293ece5.zip
directory: replace DirectoryList with dirvec
Small memory reduction compared to songvec since most users have much fewer dirs than songs, but still nice to have.
Diffstat (limited to '')
-rw-r--r--src/directory.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/directory.h b/src/directory.h
index 320a93a7f..e7917c8cd 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -23,11 +23,14 @@
#include "songvec.h"
#include "list.h"
-typedef List DirectoryList;
+struct dirvec {
+ struct _Directory **base;
+ size_t nr;
+};
typedef struct _Directory {
char *path;
- DirectoryList *subDirectories;
+ struct dirvec children;
struct songvec songs;
struct _Directory *parent;
ino_t inode;