From f54ddc6c74f172d500f0ee4c2ae2648599d3b4c3 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 15 Nov 2009 18:59:01 +0100 Subject: callbacks.c port to plugin api --- playlist.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'playlist.c') diff --git a/playlist.c b/playlist.c index 748f1d6b..4adff541 100644 --- a/playlist.c +++ b/playlist.c @@ -1669,3 +1669,22 @@ pl_set_selected (playItem_t *it, int sel) { it->selected = sel; } +int +pl_is_selected (playItem_t *it) { + return it->selected; +} + +playItem_t * +pl_get_first (int iter) { + return playlist_head[iter]; +} + +playItem_t * +pl_get_next (DB_playItem_t *it, int iter) { + return it ? it->next[iter] : NULL; +} + +playItem_t * +pl_get_prev (DB_playItem_t *it, int iter) { + return it ? it->prev[iter] : NULL; +} -- cgit v1.2.3