24 #ifndef VLC_PLAYLIST_H_
25 #define VLC_PLAYLIST_H_
127 const char *psz_filename;
197 #define VLC_DEFINE_SORT_FUNCTIONS \
200 DEF( SORT_TITLE_NODES_FIRST )\
203 DEF( SORT_DURATION )\
204 DEF( SORT_TITLE_NUMERIC )\
206 DEF( SORT_TRACK_NUMBER )\
207 DEF( SORT_DESCRIPTION )\
219 #ifndef VLC_INTERNAL_PLAYLIST_SORT_FUNCTIONS
220 #undef VLC_DEFINE_SORT_FUNCTIONS
230 #define PLAYLIST_INSERT 0x0001
231 #define PLAYLIST_APPEND 0x0002
232 #define PLAYLIST_GO 0x0004
233 #define PLAYLIST_PREPARSE 0x0008
234 #define PLAYLIST_SPREPARSE 0x0010
235 #define PLAYLIST_NO_REBUILD 0x0020
237 #define PLAYLIST_END -666
250 #define PL_LOCK playlist_Lock( p_playlist )
251 #define PL_UNLOCK playlist_Unlock( p_playlist )
252 #define PL_ASSERT_LOCKED playlist_AssertLocked( p_playlist )
255 #define pl_Get( a ) pl_Get( VLC_OBJECT(a) )
258 #define playlist_Play(p) playlist_Control(p,PLAYLIST_PLAY, pl_Unlocked )
259 #define playlist_Pause(p) playlist_Control(p,PLAYLIST_PAUSE, pl_Unlocked )
260 #define playlist_Stop(p) playlist_Control(p,PLAYLIST_STOP, pl_Unlocked )
261 #define playlist_Next(p) playlist_Control(p,PLAYLIST_SKIP, pl_Unlocked, 1)
262 #define playlist_Prev(p) playlist_Control(p,PLAYLIST_SKIP, pl_Unlocked, -1)
263 #define playlist_Skip(p,i) playlist_Control(p,PLAYLIST_SKIP, pl_Unlocked, (i) )
345 VLC_API int playlist_Add( playlist_t *, const
char *, const
char *,
int,
int,
bool,
bool );
346 VLC_API int playlist_AddExt( playlist_t *, const
char *, const
char *,
int,
int,
mtime_t,
int, const
char *const *,
unsigned,
bool,
bool );
361 VLC_API playlist_item_t *
playlist_NodeCreate( playlist_t *, const
char *, playlist_item_t * p_parent,
int i_pos,
int i_flags, input_item_t * );
368 VLC_API playlist_item_t *
playlist_GetNextLeaf( playlist_t *p_playlist, playlist_item_t *p_root, playlist_item_t *p_item,
bool b_ena,
bool b_unplayed ) VLC_USED;
369 VLC_API playlist_item_t *
playlist_GetPrevLeaf( playlist_t *p_playlist, playlist_item_t *p_root, playlist_item_t *p_item,
bool b_ena,
bool b_unplayed ) VLC_USED;
377 #define AOUT_VOLUME_DEFAULT 256
378 #define AOUT_VOLUME_MAX 512
383 #define playlist_VolumeDown(a, b, c) playlist_VolumeUp(a, -(b), c)
401 #define pl_CurrentInput(a) __pl_CurrentInput( VLC_OBJECT(a) )