summaryrefslogtreecommitdiffstats
path: root/apps/playlist.h
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2003-12-10 00:11:25 +0000
committerHardeep Sidhu <dyp@pobox.com>2003-12-10 00:11:25 +0000
commit00acdfa6ef624e1d13b461210ddd71dd589d192e (patch)
treef31b42d33d417bef4dc040e412a9f8fea61a0ac9 /apps/playlist.h
parentc882d45ebba3861b973339564d927412cb04c5b2 (diff)
downloadrockbox-00acdfa6ef624e1d13b461210ddd71dd589d192e.tar.gz
rockbox-00acdfa6ef624e1d13b461210ddd71dd589d192e.tar.bz2
rockbox-00acdfa6ef624e1d13b461210ddd71dd589d192e.zip
Added viewer for currently playing playlist. Accessed from Menu->Playlist Options->View Current Playlist.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4124 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.h')
-rw-r--r--apps/playlist.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 45ecba505c..82d67bf0bb 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -47,6 +47,17 @@ struct playlist_info
struct mutex control_mutex; /* mutex for control file access */
};
+#define PLAYLIST_ATTR_QUEUED 0x01
+#define PLAYLIST_ATTR_INSERTED 0x02
+
+struct playlist_track_info
+{
+ char filename[MAX_PATH]; /* path name of mp3 file */
+ int attr; /* playlist attributes for track */
+ int index; /* index of track in playlist */
+ int display_index; /* index of track for display */
+};
+
void playlist_init(void);
int playlist_create(char *dir, char *file);
int playlist_resume(void);
@@ -56,6 +67,7 @@ int playlist_insert_directory(char *dirname, int position, bool queue,
bool recurse);
int playlist_insert_playlist(char *filename, int position, bool queue);
int playlist_delete(int index);
+int playlist_move(int index, int new_index);
int playlist_shuffle(int random_seed, int start_index);
int playlist_randomise(unsigned int seed, bool start_current);
int playlist_sort(bool start_current);
@@ -65,8 +77,10 @@ char *playlist_peek(int steps);
int playlist_next(int steps);
int playlist_get_resume_info(short *resume_index);
int playlist_get_display_index(void);
+int playlist_get_first_index(void);
int playlist_amount(void);
char *playlist_name(char *buf, int buf_size);
+int playlist_get_track_info(int index, struct playlist_track_info* info);
int playlist_save(char *filename);
enum {
@@ -76,4 +90,8 @@ enum {
PLAYLIST_INSERT_FIRST = -4
};
+enum {
+ PLAYLIST_DELETE_CURRENT = -1
+};
+
#endif /* __PLAYLIST_H__ */