playlist.h File Reference

#include <pmplib/pmp.h>

Go to the source code of this file.

Data Structures

struct  tag_playlist_entry
struct  tag_playlist
struct  tag_playlists
struct  playlist_mediafile_t

Defines

#define PLAYLISTAPI

Typedefs

typedef void(*) playlist_callback_t (void *instance, int level, ucs2char_t *message)
typedef tag_playlist_entry playlist_entry_t
typedef tag_playlist playlist_t
typedef tag_playlists playlists_t

Enumerations

enum  { PLAYLIST_NONE = 0, PLAYLIST_JSPL = 1 }
enum  {
  PLCALLBACK_NONE, PLCALLBACK_JSPL_MESSAGE, PLCALLBACK_JSPL_ERROR,
  PLCALLBACK_JSPL_ERROR_POS, PLCALLBACK_JSPL_ERROR_LINE
}
enum  {
  PLAYLIST_SUCCESS = 0, PLAYLIST_E_FAIL = 0x80000000, PLAYLIST_E_OUTOFMEMORY,
  PLAYLIST_E_JSINITENGINE, PLAYLIST_E_JSINITMEDIA, PLAYLIST_E_JSEVALSCRIPT,
  PLAYLIST_E_JSMAINNOTFOUND, PLAYLIST_E_JSCALLMAIN, PLAYLIST_E_JSINVALIDARRAY,
  PLAYLIST_E_JSINVALIDCAST, PLAYLIST_E_JSINVALIDOBJECT, PLAYLIST_E_JSINVALIDTRACK
}

Functions

PLAYLISTAPI void playlist_init (playlists_t *pls)
PLAYLISTAPI void playlist_finish (playlists_t *pls)
PLAYLISTAPI int playlist_read (playlists_t *pls, const ucs2char_t *filename, const ucs2char_t *path_to_include, pmp_music_record_t *records, int num_records, playlist_callback_t callback, void *instance)
PLAYLISTAPI int playlist_add_playlist (playlists_t *pls, const ucs2char_t *name)
PLAYLISTAPI int playlist_find_playlist (playlists_t *pls, const ucs2char_t *name)
PLAYLISTAPI int playlist_append (playlist_t *pl, const ucs2char_t *filename, int userdata)
PLAYLISTAPI int playlist_is_supported (const ucs2char_t *filename, int flag)
PLAYLISTAPI void playlist_normalize_prepare (playlist_mediafile_t *mediafiles, int num_mediafiles)
PLAYLISTAPI int playlist_normalize (playlist_t *pl, const ucs2char_t *path_to_playlist, const ucs2char_t *path_to_root, playlist_mediafile_t *mediafiles, int num_mediafiles)
PLAYLISTAPI void playlist_shuffle (playlist_t *pl)


Define Documentation

#define PLAYLISTAPI

Definition at line 30 of file playlist.h.


Typedef Documentation

typedef void(*) playlist_callback_t(void *instance, int level, ucs2char_t *message)

Definition at line 68 of file playlist.h.

Definition at line 75 of file playlist.h.

typedef struct tag_playlist playlist_t

Definition at line 82 of file playlist.h.

typedef struct tag_playlists playlists_t

Definition at line 88 of file playlist.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
PLAYLIST_NONE 
PLAYLIST_JSPL 

Definition at line 39 of file playlist.h.

anonymous enum

Enumerator:
PLCALLBACK_NONE 
PLCALLBACK_JSPL_MESSAGE 
PLCALLBACK_JSPL_ERROR 
PLCALLBACK_JSPL_ERROR_POS 
PLCALLBACK_JSPL_ERROR_LINE 

Definition at line 44 of file playlist.h.

anonymous enum

Enumerator:
PLAYLIST_SUCCESS 
PLAYLIST_E_FAIL 
PLAYLIST_E_OUTOFMEMORY 
PLAYLIST_E_JSINITENGINE 
PLAYLIST_E_JSINITMEDIA 
PLAYLIST_E_JSEVALSCRIPT 
PLAYLIST_E_JSMAINNOTFOUND 
PLAYLIST_E_JSCALLMAIN 
PLAYLIST_E_JSINVALIDARRAY 
PLAYLIST_E_JSINVALIDCAST 
PLAYLIST_E_JSINVALIDOBJECT 
PLAYLIST_E_JSINVALIDTRACK 

Definition at line 52 of file playlist.h.


Function Documentation

PLAYLISTAPI int playlist_add_playlist ( playlists_t pls,
const ucs2char_t name 
)

PLAYLISTAPI int playlist_append ( playlist_t pl,
const ucs2char_t filename,
int  userdata 
)

PLAYLISTAPI int playlist_find_playlist ( playlists_t pls,
const ucs2char_t name 
)

PLAYLISTAPI void playlist_finish ( playlists_t pls  ) 

PLAYLISTAPI void playlist_init ( playlists_t pls  ) 

PLAYLISTAPI int playlist_is_supported ( const ucs2char_t filename,
int  flag 
)

PLAYLISTAPI int playlist_normalize ( playlist_t pl,
const ucs2char_t path_to_playlist,
const ucs2char_t path_to_root,
playlist_mediafile_t mediafiles,
int  num_mediafiles 
)

PLAYLISTAPI void playlist_normalize_prepare ( playlist_mediafile_t mediafiles,
int  num_mediafiles 
)

PLAYLISTAPI int playlist_read ( playlists_t pls,
const ucs2char_t filename,
const ucs2char_t path_to_include,
pmp_music_record_t records,
int  num_records,
playlist_callback_t  callback,
void *  instance 
)

PLAYLISTAPI void playlist_shuffle ( playlist_t pl  )