VLC 4.0.0-dev
|
Functions | |
void | vlc_playlist_ClearItems (vlc_playlist_t *playlist) |
static void | vlc_playlist_ItemsReset (vlc_playlist_t *playlist) |
static void | vlc_playlist_ItemsInserted (vlc_playlist_t *playlist, size_t index, size_t count) |
static void | vlc_playlist_ItemsMoved (vlc_playlist_t *playlist, size_t index, size_t count, size_t target) |
static void | vlc_playlist_ItemsRemoving (vlc_playlist_t *playlist, size_t index, size_t count) |
static bool | vlc_playlist_ItemsRemoved (vlc_playlist_t *playlist, size_t index, size_t count) |
static void | vlc_playlist_ItemReplaced (vlc_playlist_t *playlist, size_t index) |
size_t | vlc_playlist_Count (vlc_playlist_t *playlist) |
Return the number of items. More... | |
vlc_playlist_item_t * | vlc_playlist_Get (vlc_playlist_t *playlist, size_t index) |
Return the item at a given index. More... | |
ssize_t | vlc_playlist_IndexOf (vlc_playlist_t *playlist, const vlc_playlist_item_t *item) |
Return the index of a given item. More... | |
ssize_t | vlc_playlist_IndexOfMedia (vlc_playlist_t *playlist, const input_item_t *media) |
Return the index of a given media. More... | |
ssize_t | vlc_playlist_IndexOfId (vlc_playlist_t *playlist, uint64_t id) |
Return the index of a given item id. More... | |
void | vlc_playlist_Clear (vlc_playlist_t *playlist) |
Clear the playlist. More... | |
static int | vlc_playlist_MediaToItems (vlc_playlist_t *playlist, input_item_t *const media[], size_t count, vlc_playlist_item_t *items[]) |
int | vlc_playlist_Insert (vlc_playlist_t *playlist, size_t index, input_item_t *const media[], size_t count) |
Insert a list of media at a given index. More... | |
void | vlc_playlist_Move (vlc_playlist_t *playlist, size_t index, size_t count, size_t target) |
Move a slice of items to a given target index. More... | |
void | vlc_playlist_Remove (vlc_playlist_t *playlist, size_t index, size_t count) |
Remove a slice of items at a given index. More... | |
static int | vlc_playlist_Replace (vlc_playlist_t *playlist, size_t index, input_item_t *media) |
int | vlc_playlist_Expand (vlc_playlist_t *playlist, size_t index, input_item_t *const media[], size_t count) |
void vlc_playlist_ClearItems | ( | vlc_playlist_t * | playlist | ) |
References vlc_playlist::items, vlc_playlist_item_Release(), vlc_vector_clear, and vlc_vector_foreach.
Referenced by vlc_playlist_Clear(), and vlc_playlist_Delete().
int vlc_playlist_Expand | ( | vlc_playlist_t * | playlist, |
size_t | index, | ||
input_item_t *const | media[], | ||
size_t | count | ||
) |
References count, vlc_playlist::current, playlist_item_vector_t::data, vlc_playlist::items, vlc_playlist::player, VLC_ENOMEM, vlc_player_InvalidateNextMedia(), vlc_playlist_AssertLocked(), vlc_playlist_ItemsInserted(), vlc_playlist_MediaToItems(), vlc_playlist_RemoveOne(), vlc_playlist_Replace(), vlc_playlist_SetCurrentMedia(), VLC_SUCCESS, vlc_vector_insert_hole, and vlc_vector_remove_slice.
Referenced by vlc_playlist_ExpandItem().
|
static |
References playlist_item_vector_t::data, vlc_playlist::has_next, vlc_playlist::has_prev, vlc_playlist::items, vlc_playlist_item::media, state, vlc_playlist_AutoPreparse(), vlc_playlist_ComputeHasNext(), vlc_playlist_ComputeHasPrev(), vlc_playlist_Notify, vlc_playlist_state_NotifyChanges(), and vlc_playlist_state_Save().
Referenced by vlc_playlist_Replace().
|
static |
References count, vlc_playlist::current, playlist_item_vector_t::data, vlc_playlist::has_next, vlc_playlist::has_prev, vlc_playlist::items, vlc_playlist_item::media, vlc_playlist::order, vlc_playlist::randomizer, randomizer_Add(), state, vlc_playlist_AutoPreparse(), vlc_playlist_ComputeHasNext(), vlc_playlist_ComputeHasPrev(), vlc_playlist_Notify, VLC_PLAYLIST_PLAYBACK_ORDER_RANDOM, vlc_playlist_state_NotifyChanges(), and vlc_playlist_state_Save().
Referenced by vlc_playlist_Expand(), and vlc_playlist_Insert().
|
static |
|
static |
|
static |
References count, playlist_item_vector_t::data, vlc_playlist::items, vlc_playlist::order, vlc_playlist::randomizer, randomizer_Remove(), and VLC_PLAYLIST_PLAYBACK_ORDER_RANDOM.
Referenced by vlc_playlist_Remove().
|
static |
References vlc_playlist::current, playlist_item_vector_t::data, vlc_playlist::has_next, vlc_playlist::has_prev, vlc_playlist::items, vlc_playlist::order, vlc_playlist::randomizer, randomizer_Clear(), playlist_item_vector_t::size, state, vlc_playlist_ComputeHasNext(), vlc_playlist_ComputeHasPrev(), vlc_playlist_Notify, VLC_PLAYLIST_PLAYBACK_ORDER_RANDOM, vlc_playlist_state_NotifyChanges(), and vlc_playlist_state_Save().
Referenced by vlc_playlist_Clear().
|
static |
References count, vlc_playlist::idgen, unlikely, VLC_ENOMEM, vlc_playlist_AssertLocked(), vlc_playlist_item_New(), vlc_playlist_item_Release(), and VLC_SUCCESS.
Referenced by vlc_playlist_Expand(), and vlc_playlist_Insert().
|
static |
References playlist_item_vector_t::data, vlc_playlist::idgen, vlc_playlist::items, vlc_playlist::order, vlc_playlist::randomizer, randomizer_Add(), randomizer_Remove(), VLC_ENOMEM, vlc_playlist_AssertLocked(), vlc_playlist_item_New(), vlc_playlist_item_Release(), vlc_playlist_ItemReplaced(), VLC_PLAYLIST_PLAYBACK_ORDER_RANDOM, and VLC_SUCCESS.
Referenced by vlc_playlist_Expand().