VLC 4.0.0-dev
|
Functions | |
static void | vlc_playlist_NotifyCurrentState (vlc_playlist_t *playlist, vlc_playlist_listener_id *listener) |
vlc_playlist_listener_id * | vlc_playlist_AddListener (vlc_playlist_t *playlist, const struct vlc_playlist_callbacks *cbs, void *userdata, bool notify_current_state) |
Add a playlist listener. More... | |
void | vlc_playlist_RemoveListener (vlc_playlist_t *playlist, vlc_playlist_listener_id *listener) |
Remove a player listener. More... | |
void | vlc_playlist_state_Save (vlc_playlist_t *playlist, struct vlc_playlist_state *state) |
void | vlc_playlist_state_NotifyChanges (vlc_playlist_t *playlist, struct vlc_playlist_state *saved_state) |
static bool | vlc_playlist_HasItemUpdatedListeners (vlc_playlist_t *playlist) |
void | vlc_playlist_NotifyMediaUpdated (vlc_playlist_t *playlist, input_item_t *media) |
|
inlinestatic |
References vlc_playlist_listener_id::cbs, vlc_playlist_callbacks::on_items_updated, and vlc_playlist_listener_foreach.
Referenced by vlc_playlist_NotifyMediaUpdated().
|
static |
void vlc_playlist_NotifyMediaUpdated | ( | vlc_playlist_t * | playlist, |
input_item_t * | media | ||
) |
References vlc_playlist::current, playlist_item_vector_t::data, vlc_playlist::items, vlc_playlist_item::media, vlc_playlist_AssertLocked(), vlc_playlist_HasItemUpdatedListeners(), vlc_playlist_IndexOfMedia(), and vlc_playlist_Notify.
Referenced by on_player_media_length_changed(), and on_player_media_meta_changed().
void vlc_playlist_state_NotifyChanges | ( | vlc_playlist_t * | playlist, |
struct vlc_playlist_state * | saved_state | ||
) |
References vlc_playlist_state::current, vlc_playlist::current, vlc_playlist_state::has_next, vlc_playlist::has_next, vlc_playlist_state::has_prev, vlc_playlist::has_prev, and vlc_playlist_Notify.
Referenced by player_on_current_media_changed(), vlc_playlist_ItemReplaced(), vlc_playlist_ItemsInserted(), vlc_playlist_ItemsMoved(), vlc_playlist_ItemsRemoved(), vlc_playlist_ItemsReset(), vlc_playlist_PlaybackOrderChanged(), vlc_playlist_PlaybackRepeatChanged(), vlc_playlist_SetCurrentIndex(), vlc_playlist_Shuffle(), and vlc_playlist_Sort().
void vlc_playlist_state_Save | ( | vlc_playlist_t * | playlist, |
struct vlc_playlist_state * | state | ||
) |
References vlc_playlist::current, vlc_playlist::has_next, vlc_playlist::has_prev, and state.
Referenced by player_on_current_media_changed(), vlc_playlist_ItemReplaced(), vlc_playlist_ItemsInserted(), vlc_playlist_ItemsMoved(), vlc_playlist_ItemsRemoved(), vlc_playlist_ItemsReset(), vlc_playlist_PlaybackOrderChanged(), vlc_playlist_PlaybackRepeatChanged(), vlc_playlist_SetCurrentIndex(), vlc_playlist_Shuffle(), and vlc_playlist_Sort().