summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-15 18:59:01 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-15 18:59:01 +0100
commitf54ddc6c74f172d500f0ee4c2ae2648599d3b4c3 (patch)
treecc859ebb6fd10173a81a0c7aa0ecd51f14513511 /playlist.c
parent5c2b089be764990d6947e142223b12647ca40fa9 (diff)
callbacks.c port to plugin api
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c19
1 files changed, 19 insertions, 0 deletions
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;
+}