VLC 4.0.0-dev
|
This file contains functions to create and destroy libvlc instances. More...
Functions | |
static void | GetFilenames (libvlc_int_t *, unsigned, const char *const []) |
libvlc_int_t * | libvlc_InternalCreate (void) |
Allocate a blank libvlc instance, also setting the exit handler. | |
static void | libvlc_AddInterfaces (libvlc_int_t *libvlc, const char *varname) |
int | libvlc_InternalInit (libvlc_int_t *p_libvlc, int i_argc, const char *ppsz_argv[]) |
Initialize a libvlc instance This function initializes a previously allocated libvlc instance: | |
void | libvlc_InternalCleanup (libvlc_int_t *p_libvlc) |
Cleanup a libvlc instance. | |
void | libvlc_InternalDestroy (libvlc_int_t *p_libvlc) |
Destroy libvlc instance. | |
static void | PlaylistConfigureFromVariables (vlc_playlist_t *playlist, vlc_object_t *obj) |
vlc_playlist_t * | libvlc_GetMainPlaylist (libvlc_int_t *libvlc) |
This file contains functions to create and destroy libvlc instances.
|
static |
References intf_InsertItem(), msg_Warn, VLC_INPUT_OPTION_TRUSTED, and vlc_path2uri().
Referenced by libvlc_InternalInit().
|
static |
References libvlc_InternalAddIntf(), state, strtok_r(), and var_InheritString().
Referenced by libvlc_InternalInit().
vlc_playlist_t * libvlc_GetMainPlaylist | ( | libvlc_int_t * | libvlc | ) |
References libvlc_priv(), libvlc_priv_t::lock, libvlc_priv_t::main_playlist, PlaylistConfigureFromVariables(), strcasecmp(), var_InheritBool(), var_InheritInteger(), var_InheritString(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, vlc_playlist_New(), VLC_PLAYLIST_PREPARSING_COLLAPSE, VLC_PLAYLIST_PREPARSING_DISABLED, VLC_PLAYLIST_PREPARSING_ENABLED, VLC_PLAYLIST_PREPARSING_RECURSIVE, and VLC_TICK_FROM_MS.
Referenced by intf_Create(), intf_InsertItem(), libvlc_InternalPlay(), and vlc_intf_GetMainPlaylist().
void libvlc_InternalCleanup | ( | libvlc_int_t * | p_libvlc | ) |
Cleanup a libvlc instance.
The instance is not completely deallocated
p_libvlc | the instance to clean |
References config_AutoSaveConfigFile(), intf_DestroyAll(), libvlc_InternalActionsClean(), libvlc_InternalDialogClean(), libvlc_InternalKeystoreClean(), libvlc_MlRelease(), libvlc_priv(), vlc_object_t::logger, libvlc_priv_t::main_playlist, libvlc_priv_t::media_source_provider, module_EndBank(), msg_Dbg, msg_Warn, libvlc_int_t::obj, libvlc_priv_t::p_media_library, libvlc_priv_t::p_vlm, system_End(), libvlc_priv_t::tracer, var_InheritBool(), var_InheritString(), vlc_LogDestroy(), vlc_media_source_provider_Delete(), vlc_playlist_Delete(), vlc_strerror_c(), vlc_tracer_Destroy(), and vlm_Delete().
Referenced by libvlc_InternalInit().
libvlc_int_t * libvlc_InternalCreate | ( | void | ) |
Allocate a blank libvlc instance, also setting the exit handler.
Vlc's threading system must have been initialized first
References libvlc_priv_t::exit, libvlc_priv_t::interfaces, libvlc_priv(), libvlc_priv_t::lock, libvlc_priv_t::main_playlist, libvlc_priv_t::media_source_provider, libvlc_priv_t::p_vlm, vlc_custom_create, vlc_ExitInit(), and vlc_mutex_init().
void libvlc_InternalDestroy | ( | libvlc_int_t * | p_libvlc | ) |
int libvlc_InternalInit | ( | libvlc_int_t * | p_libvlc, |
int | i_argc, | ||
const char * | ppsz_argv[] | ||
) |
Initialize a libvlc instance This function initializes a previously allocated libvlc instance:
References _, config_CmdLineEarlyScan(), config_LoadCmdLine(), config_LoadConfigFile(), config_PrintHelp(), config_SaveConfigFile, GetFilenames(), intf_InsertItem(), libvlc_AddInterfaces(), libvlc_InternalActionsInit(), libvlc_InternalCleanup(), libvlc_InternalDialogInit(), libvlc_InternalKeystoreInit(), libvlc_MlCreate(), libvlc_priv(), libvlc_priv_t::media_source_provider, module_InitBank(), module_LoadPlugins(), msg_Dbg, msg_Err, msg_Warn, libvlc_priv_t::p_media_library, libvlc_priv_t::p_vlm, system_Configure(), system_Init(), libvlc_priv_t::tracer, unlikely, var_Create(), var_InheritBool(), var_InheritString(), var_SetString(), vlc_bindtextdomain(), vlc_CPU_dump(), VLC_EGENERIC, VLC_ENOMEM, vlc_LogInit(), vlc_LogPreinit(), vlc_media_source_provider_New, VLC_OBJECT, VLC_SUCCESS, vlc_threads_setup(), vlc_tracer_Create(), VLC_VAR_ADDRESS, VLC_VAR_BOOL, VLC_VAR_INTEGER, VLC_VAR_STRING, VLC_VAR_VOID, and vlm_New().
|
static |
References var_InheritBool(), vlc_player_SetPauseOnCork(), vlc_player_SetStartPaused(), vlc_playlist_GetPlayer(), vlc_playlist_Lock(), VLC_PLAYLIST_MEDIA_STOPPED_CONTINUE, VLC_PLAYLIST_MEDIA_STOPPED_EXIT, VLC_PLAYLIST_MEDIA_STOPPED_PAUSE, VLC_PLAYLIST_MEDIA_STOPPED_STOP, 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_SetMediaStoppedAction(), vlc_playlist_SetPlaybackOrder(), vlc_playlist_SetPlaybackRepeat(), and vlc_playlist_Unlock().
Referenced by libvlc_GetMainPlaylist().