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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user