diff options
author | 2009-11-15 18:59:01 +0100 | |
---|---|---|
committer | 2009-11-15 18:59:01 +0100 | |
commit | f54ddc6c74f172d500f0ee4c2ae2648599d3b4c3 (patch) | |
tree | cc859ebb6fd10173a81a0c7aa0ecd51f14513511 /playlist.c | |
parent | 5c2b089be764990d6947e142223b12647ca40fa9 (diff) |
callbacks.c port to plugin api
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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; +} |