1
0
Fork 0
forked from len0rd/rockbox

Added dynamic playlists. ON+PLAY->Playlist on a track, directory, or playlist from file browser to see available options.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3796 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2003-07-01 21:05:43 +00:00
parent 928a09e3f4
commit 9e4262081b
24 changed files with 2310 additions and 1005 deletions

View file

@ -21,6 +21,11 @@
#include <stdbool.h>
struct entry {
short attr; /* FAT attributes + file type flags */
char *name;
};
/* using attribute not used by FAT */
#define TREE_ATTR_MPA 0x40 /* mpeg audio file */
#define TREE_ATTR_M3U 0x80 /* playlist */
@ -36,7 +41,11 @@
void tree_init(void);
void browse_root(void);
void set_current_file(char *path);
bool dirbrowse(char *root);
bool create_playlist(void);
void resume_directory(char *dir);
char *getcwd(char *buf, int size);
void reload_directory(void);
struct entry* load_and_sort_directory(char *dirname, int dirfilter,
int *num_files, bool *buffer_full);
#endif