VLC 4.0.0-dev
|
This file contains functions related to interface management. More...
Functions | |
static int | AddIntfCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *) |
static void | PlaylistConfigureFromVariables (vlc_playlist_t *playlist, vlc_object_t *obj) |
static vlc_playlist_t * | libvlc_GetMainPlaylist (libvlc_int_t *libvlc) |
vlc_playlist_t * | vlc_intf_GetMainPlaylist (intf_thread_t *intf) |
Recover the main playlist from an interface module. More... | |
int | intf_Create (libvlc_int_t *libvlc, const char *chain) |
Create and start an interface. More... | |
int | intf_InsertItem (libvlc_int_t *libvlc, const char *mrl, unsigned optc, const char *const *optv, unsigned flags) |
Inserts an item in the playlist. More... | |
void | libvlc_InternalPlay (libvlc_int_t *libvlc) |
static void | libvlc_AutoRun (libvlc_int_t *libvlc) |
int | libvlc_InternalAddIntf (libvlc_int_t *libvlc, const char *name) |
Starts an interface plugin. More... | |
void | intf_DestroyAll (libvlc_int_t *libvlc) |
Stops and destroys all interfaces, then the playlist. More... | |
This file contains functions related to interface management.
|
static |
References intf_Create(), msg_Err, vlc_value_t::psz_string, var, and vlc_object_instance.
Referenced by intf_Create(), and intf_DestroyAll().
void intf_DestroyAll | ( | libvlc_int_t * | libvlc | ) |
Stops and destroys all interfaces, then the playlist.
libvlc | the LibVLC instance |
References AddIntfCallback(), config_ChainDestroy(), libvlc_priv_t::interfaces, libvlc_priv(), libvlc_priv_t::lock, module_unneed, intf_thread_t::p_cfg, intf_thread_t::p_module, intf_thread_t::p_next, var_DelCallback(), vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_object_delete.
Referenced by libvlc_InternalCleanup().
int intf_InsertItem | ( | libvlc_int_t * | libvlc, |
const char * | mrl, | ||
unsigned | optc, | ||
const char *const * | optv, | ||
unsigned | flags | ||
) |
Inserts an item in the playlist.
This function is used during initialization. It inserts an item to the beginning of the playlist. That is meant to compensate for the reverse parsing order of the command line.
References input_item_AddOptions(), input_item_New, input_item_Release(), libvlc_GetMainPlaylist(), unlikely, vlc_playlist_InsertOne(), vlc_playlist_Lock(), vlc_playlist_Unlock(), and VLC_SUCCESS.
Referenced by GetFilenames(), and libvlc_InternalInit().
|
static |
References vlc_object_t::logger, libvlc_int_t::obj, vlc_module_map(), and vlc_module_match().
Referenced by libvlc_InternalAddIntf().
|
static |
int libvlc_InternalAddIntf | ( | libvlc_int_t * | libvlc, |
const char * | name | ||
) |
Starts an interface plugin.
References _, intf_Create(), libvlc_AutoRun(), msg_Err, msg_Info, name, var_InheritString(), and VLC_SUCCESS.
Referenced by libvlc_AddInterfaces(), system_Configure(), and system_ConfigureDbus().
void libvlc_InternalPlay | ( | libvlc_int_t * | libvlc | ) |
|
static |
References var_InheritBool(), VLC_PLAYER_MEDIA_STOPPED_CONTINUE, VLC_PLAYER_MEDIA_STOPPED_EXIT, VLC_PLAYER_MEDIA_STOPPED_PAUSE, VLC_PLAYER_MEDIA_STOPPED_STOP, vlc_player_SetMediaStoppedAction(), vlc_player_SetPauseOnCork(), vlc_player_SetStartPaused(), vlc_playlist_GetPlayer(), vlc_playlist_Lock(), VLC_PLAYLIST_PLAYBACK_ORDER_NORMAL, VLC_PLAYLIST_PLAYBACK_ORDER_RANDOM, VLC_PLAYLIST_PLAYBACK_REPEAT_ALL, VLC_PLAYLIST_PLAYBACK_REPEAT_CURRENT, VLC_PLAYLIST_PLAYBACK_REPEAT_NONE, vlc_playlist_SetPlaybackOrder(), vlc_playlist_SetPlaybackRepeat(), and vlc_playlist_Unlock().
Referenced by libvlc_GetMainPlaylist().