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:

committed by
Max Kellermann

parent
029f607e15
commit
3b8bc33a04
@@ -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;
|
||||
|
Reference in New Issue
Block a user