summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/playlist.h b/playlist.h
index f3698d93..a46b82f7 100644
--- a/playlist.h
+++ b/playlist.h
@@ -14,7 +14,8 @@ typedef struct playItem_s {
extern playItem_t *playlist_head; // head of linked list
extern playItem_t *playlist_tail; // tail of linked list
-extern playItem_t *playlist_current;
+extern playItem_t *playlist_current_ptr; // pointer to a real current playlist item
+extern playItem_t playlist_current; // copy of playlist item being played (stays in memory even if removed from playlist)
int
ps_add_file (const char *fname);
@@ -43,4 +44,7 @@ ps_get_idx_of (playItem_t *it);
int
ps_add_cue (const char *cuename);
+void
+ps_set_current (playItem_t *it);
+
#endif // __PLAYLIST_H