summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-15 22:48:20 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-18 18:39:18 +0100
commit707719656e6fc7c6e45f616f7e16cac424693013 (patch)
treed6fc4ea16139a193ff2f2bfd30563f3ba3ebb2db /playlist.h
parent8c48b540e031f2f7784f8317a0e87584505d16bd (diff)
playlist grouping WIP
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/playlist.h b/playlist.h
index df695662..c3a99107 100644
--- a/playlist.h
+++ b/playlist.h
@@ -53,6 +53,7 @@ typedef struct playItem_s {
unsigned selected : 1;
unsigned played : 1; // mark as played in shuffle mode
unsigned in_playlist : 1; // 1 if item is in playlist
+ unsigned is_group_title : 1; // 1 if this is a group title
} playItem_t;
typedef struct playlist_s {
@@ -245,6 +246,12 @@ pl_set_selected (playItem_t *it, int sel);
int
pl_is_selected (playItem_t *it);
+int
+pl_is_group_title (playItem_t *it);
+
+void
+pl_group_by (const char *fmt);
+
playItem_t *
pl_get_first (int iter);