diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-17 22:23:46 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-17 22:23:46 +0200 |
commit | f7b69992c780be685f014808118a94aef3d87fed (patch) | |
tree | 9943c9ad1475f0042c3a5ef9497177f34879fc49 /playlist.h | |
parent | f29d6657ba7d4d08967fb369bae2e1b3c033bb53 (diff) |
added flags to each track in playlist, which bumped dbpl version to 1.2;
list of file tags is no longer written as metadata string, but as flags;
fixed couple of memory leaks;
blocked metadata editing in subtracks;
blocked metadata editing if playlist file format is less than 1.2;
Diffstat (limited to 'playlist.h')
-rw-r--r-- | playlist.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -39,6 +39,7 @@ typedef struct playItem_s { float replaygain_track_peak; // private area, must not be visible to plugins float _duration; // in seconds + uint32_t _flags; int _refc; struct playItem_s *next[PL_MAX_ITERATORS]; // next item in linked list struct playItem_s *prev[PL_MAX_ITERATORS]; // prev item in linked list @@ -233,6 +234,12 @@ pl_set_item_duration (playItem_t *it, float duration); float pl_get_item_duration (playItem_t *it); +uint32_t +pl_get_item_flags (playItem_t *it); + +void +pl_set_item_flags (playItem_t *it, uint32_t flags); + // returns number of characters printed, not including trailing 0 // [a]rtist, [t]itle, al[b]um, [l]ength, track[n]umber int |