aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-21 08:58:15 +0200
committerMax Kellermann <max@duempel.org>2010-07-21 09:26:50 +0200
commite598922133d11cc59994f35f62fe0f454ceb4173 (patch)
treed2bcfedb8870ceb4d18a5199ce2b06593c8926a0 /src/directory.h
parente21ad70f3fa183447436c5434585288d58559a46 (diff)
downloadmpd-e598922133d11cc59994f35f62fe0f454ceb4173.tar.gz
mpd-e598922133d11cc59994f35f62fe0f454ceb4173.tar.xz
mpd-e598922133d11cc59994f35f62fe0f454ceb4173.zip
update: store playlist files in database
Don't open the music directory for each "lsinfo" call. Get the list of playlist files from the memory database.
Diffstat (limited to '')
-rw-r--r--src/directory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/directory.h b/src/directory.h
index 4a137b3a5..4f7470a22 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -23,6 +23,7 @@
#include "check.h"
#include "dirvec.h"
#include "songvec.h"
+#include "playlist_vector.h"
#include <stdbool.h>
#include <sys/types.h>
@@ -35,6 +36,9 @@
struct directory {
struct dirvec children;
struct songvec songs;
+
+ struct playlist_vector playlists;
+
struct directory *parent;
time_t mtime;
ino_t inode;