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.
This commit is contained in:
Eric Wong
2008-09-29 13:11:40 +02:00
committed by Max Kellermann
parent 029f607e15
commit 3b8bc33a04
4 changed files with 174 additions and 196 deletions

View File

@@ -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;