From 707719656e6fc7c6e45f616f7e16cac424693013 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 15 Feb 2010 22:48:20 +0100 Subject: playlist grouping WIP --- playlist.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'playlist.h') 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); -- cgit v1.2.3