#ifndef playlist_h
#define playlist_h

#include "wimp.h"
#include "player.h"

// playlist menu structure
typedef struct pl_menu_s
{
  menu_block_t blk;
  menu_item_t film[1024];
} pl_menu_t;

// action values for playlist_play
#define PL_NEXT     -1
#define PL_PREVIOUS -2
#define PL_RANDOM   -3
#define PL_SINGLE   -4

int playlist_accept(int file_type);
int playlist_open(char* name);
void playlist_close(void);
void playlist_reset(void);
unsigned int playlist_num(void);
int playlist_play(player_t* player, int index);
const char* playlist_getcurrentfilm(void);
pl_menu_t* playlist_getmenu(void);

void file_dropped(player_t* player, int type, char* name);

#endif

