VLC 4.0.0-dev
|
Data Structures | |
struct | vlc_player_cbs |
Player callbacks. More... | |
Typedefs | |
typedef struct vlc_player_listener_id | vlc_player_listener_id |
Player listener opaque structure. | |
Enumerations | |
enum | vlc_player_list_action { VLC_PLAYER_LIST_ADDED , VLC_PLAYER_LIST_REMOVED , VLC_PLAYER_LIST_UPDATED } |
Action of vlc_player_cbs.on_track_list_changed, vlc_player_cbs.on_program_list_changed callbacks. More... | |
Functions | |
vlc_player_listener_id * | vlc_player_AddListener (vlc_player_t *player, const struct vlc_player_cbs *cbs, void *cbs_data) |
Add a listener callback. | |
void | vlc_player_RemoveListener (vlc_player_t *player, vlc_player_listener_id *listener_id) |
Remove a listener callback. | |
typedef struct vlc_player_listener_id vlc_player_listener_id |
Player listener opaque structure.
This opaque structure is returned by vlc_player_AddListener() and can be used to remove the listener via vlc_player_RemoveListener().
Action of vlc_player_cbs.on_track_list_changed, vlc_player_cbs.on_program_list_changed callbacks.
Enumerator | |
---|---|
VLC_PLAYER_LIST_ADDED | |
VLC_PLAYER_LIST_REMOVED | |
VLC_PLAYER_LIST_UPDATED |
vlc_player_listener_id * vlc_player_AddListener | ( | vlc_player_t * | player, |
const struct vlc_player_cbs * | cbs, | ||
void * | cbs_data | ||
) |
Add a listener callback.
player | locked player instance |
cbs | pointer to a vlc_player_cbs structure, the structure must be valid during the lifetime of the player |
cbs_data | opaque pointer used by the callbacks |
References vlc_player_listener_id::cbs, vlc_player_listener_id::cbs_data, vlc_player_t::listeners, vlc_player_listener_id::node, vlc_player_input::player, vlc_list_append(), and vlc_player_assert_locked().
Referenced by vlc_playlist_PlayerInit(), and vlm_MediaInstanceNew().
void vlc_player_RemoveListener | ( | vlc_player_t * | player, |
vlc_player_listener_id * | listener_id | ||
) |
Remove a listener callback.
player | locked player instance |
listener_id | listener id returned by vlc_player_AddListener() |
References vlc_player_listener_id::node, vlc_player_input::player, vlc_list_remove(), and vlc_player_assert_locked().
Referenced by vlc_playlist_PlayerDestroy(), and vlm_MediaInstanceDelete().