Go to the documentation of this file.
21 #ifndef VLC_PLAYLIST_NEW_INTERNAL_H
22 #define VLC_PLAYLIST_NEW_INTERNAL_H
27 #include "../player/player.h"
34 # define vlc_player_New(a,b,c,d) (VLC_UNUSED(a), VLC_UNUSED(b), VLC_UNUSED(c), \
36 # define vlc_player_Delete(p) free(p)
37 # define vlc_player_Lock(p) VLC_UNUSED(p)
38 # define vlc_player_Unlock(p) VLC_UNUSED(p)
39 # define vlc_player_AddListener(a,b,c) (VLC_UNUSED(b), malloc(1))
40 # define vlc_player_RemoveListener(a,b) free(b)
41 # define vlc_player_SetCurrentMedia(a,b) (VLC_UNUSED(b), VLC_SUCCESS)
42 # define vlc_player_InvalidateNextMedia(p) VLC_UNUSED(p)
43 # define vlc_player_osd_Message(p, fmt...) VLC_UNUSED(p)
67 #if !defined(NDEBUG) && !defined(TEST_PLAYLIST)
74 #define vlc_playlist_AssertLocked(x) ((void) (0))
vlc_player_t * player
Definition: playlist.h:50
#define VLC_VECTOR(type)
Vector struct body.
Definition: vlc_vector.h:65
Definition: playlist.h:48
static bool var_InheritBool(vlc_object_t *obj, const char *name)
Definition: vlc_variables.h:675
struct vlc_list listeners
list of vlc_playlist_listener_id.node
Definition: playlist.h:60
Definition: vlc_objects.h:114
#define unlikely(p)
Predicted false condition.
Definition: vlc_common.h:227
struct vlc_player_listener_id * player_listener
Definition: playlist.h:54
void randomizer_Destroy(struct randomizer *r)
Destroy a randomizer.
Definition: randomizer.c:275
static void vlc_player_assert_locked(vlc_player_t *player)
Definition: player.h:291
static void vlc_list_init(struct vlc_list *restrict head)
Initializes an empty list head.
Definition: vlc_list.h:57
void vlc_playlist_Lock(vlc_playlist_t *playlist)
Lock the playlist/player.
Definition: playlist.c:80
void randomizer_Init(struct randomizer *r)
Initialize an empty randomizer.
Definition: randomizer.c:260
#define vlc_vector_init(pv)
Initialize an empty vector.
Definition: vlc_vector.h:80
Doubly-linked list node.
Definition: vlc_list.h:43
bool has_prev
Definition: playlist.h:58
void vlc_player_Unlock(vlc_player_t *player)
Unlock the player.
Definition: player.c:957
void vlc_playlist_PlayerDestroy(vlc_playlist_t *playlist)
Definition: player.c:158
void vlc_playlist_ClearItems(vlc_playlist_t *playlist)
Definition: content.c:34
ssize_t current
Definition: playlist.h:57
Playlist helper to manage random playback.
Definition: randomizer.h:39
static bool vlc_list_is_empty(const struct vlc_list *head)
Checks if a list is empty.
Definition: vlc_list.h:167
void vlc_player_Lock(vlc_player_t *player)
Lock the player.
Definition: player.c:941
vlc_playlist_playback_order
Definition: vlc_playlist.h:123
@ VLC_PLAYLIST_PLAYBACK_REPEAT_NONE
Definition: vlc_playlist.h:118
enum vlc_playlist_playback_order order
Definition: playlist.h:62
static void vlc_playlist_AssertLocked(vlc_playlist_t *playlist)
Definition: playlist.h:69
void vlc_playlist_Unlock(vlc_playlist_t *playlist)
Unlock the playlist/player.
Definition: playlist.c:86
VLC object common members.
Definition: vlc_objects.h:43
bool auto_preparse
Definition: playlist.h:52
bool has_next
Definition: playlist.h:59
bool vlc_playlist_PlayerInit(vlc_playlist_t *playlist, vlc_object_t *parent)
Definition: player.c:135
@ VLC_PLAYLIST_PLAYBACK_ORDER_NORMAL
Definition: vlc_playlist.h:125
libvlc_int_t * libvlc
Definition: playlist.h:51
uint64_t idgen
Definition: playlist.h:63
struct randomizer randomizer
Definition: playlist.h:56
Definition: playlist.h:46
vlc_playlist_playback_repeat
Definition: vlc_playlist.h:116
playlist_item_vector_t items
Definition: playlist.h:55
enum vlc_playlist_playback_repeat repeat
Definition: playlist.h:61
#define vlc_object_instance(o)
Definition: vlc_objects.h:195
vlc_playlist_t * vlc_playlist_New(vlc_object_t *parent)
Create a new playlist.
Definition: playlist.c:34
void vlc_playlist_Delete(vlc_playlist_t *playlist)
Delete a playlist.
Definition: playlist.c:69