summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-07-08 18:43:31 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-07-08 18:43:31 +0200
commitce1ae490f2c6b2d967aa4b47c69846ed2365d9d9 (patch)
treec77ee7c7c556d7d890afac898e9902f653272207 /playlist.h
parent1197343dd5a9ed3964cdb610a294ed18d541bb09 (diff)
moved all playlist_current handling into playlist module
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