summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-08 13:56:28 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-08 13:56:28 +0200
commita55df275a9d859169499c8e031429f2207197deb (patch)
tree1c280421d7cfedc60c5e816522a104432d3a1cd8 /playlist.h
parent7bfe216b85c93e2050c139ff48dc099db78a0a0b (diff)
added shuffle support (default by now)
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/playlist.h b/playlist.h
index 6e3f7541..29d800c0 100644
--- a/playlist.h
+++ b/playlist.h
@@ -17,12 +17,14 @@ typedef struct playItem_s {
const char *filetype; // e.g. MP3 or OGG
struct playItem_s *next; // next item in linked list
struct playItem_s *prev; // prev item in linked list
+ struct playItem_s *shufflenext; // next item in shuffle list
struct metaInfo_s *meta; // linked list storing metainfo
unsigned selected : 1;
} playItem_t;
extern playItem_t *playlist_head; // head of linked list
extern playItem_t *playlist_tail; // tail of linked list
+extern playItem_t *playlist_shuffle_head; // head of shuffled playlist
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)
@@ -75,6 +77,9 @@ ps_set_current (playItem_t *it);
int
ps_nextsong (void);
+int
+ps_prevsong (void);
+
// starts current playlist item from position 0
// only if the item is still in playlist
void
@@ -92,4 +97,7 @@ ps_find_meta (playItem_t *it, const char *key);
void
ps_delete_selected (void);
+void
+ps_shuffle (void);
+
#endif // __PLAYLIST_H