diff options
author | Max Kellermann <max@duempel.org> | 2012-01-24 21:33:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-01-24 22:26:43 +0100 |
commit | 84ba14fa294f43b5dc75f899533d0596031aabd6 (patch) | |
tree | 151a64e2e827f6f07791dd5642b88bab5d421dc8 /src/song.h | |
parent | 3c75963352734dc33a0d6c833e9d5e1493d0e0d9 (diff) | |
download | mpd-84ba14fa294f43b5dc75f899533d0596031aabd6.tar.gz mpd-84ba14fa294f43b5dc75f899533d0596031aabd6.tar.xz mpd-84ba14fa294f43b5dc75f899533d0596031aabd6.zip |
directory: replace songvec with doubly linked list
Diffstat (limited to '')
-rw-r--r-- | src/song.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/song.h b/src/song.h index 9553c76c4..95cc2eb86 100644 --- a/src/song.h +++ b/src/song.h @@ -20,6 +20,8 @@ #ifndef MPD_SONG_H #define MPD_SONG_H +#include "util/list.h" + #include <stddef.h> #include <stdbool.h> #include <sys/time.h> @@ -28,6 +30,16 @@ #define SONG_TIME "Time: " struct song { + /** + * Pointers to the siblings of this directory within the + * parent directory. It is unused (undefined) if this song is + * not in the database. + * + * This attribute is protected with the global #db_mutex. + * Read access in the update thread does not need protection. + */ + struct list_head siblings; + struct tag *tag; struct directory *parent; time_t mtime; |