|
VLC
2.1.0-git
|
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 libvlc instance, initialize global data if needed It also initializes the threading system. | |
| 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 everything. | |
| int | libvlc_InternalAddIntf (libvlc_int_t *p_libvlc, char const *psz_module) |
| Add an interface plugin and run it. | |
Variables | |
| static bool | b_daemon = false |
This file contains functions to create and destroy libvlc instances.
|
static |
References msg_Warn, pl_Get, pl_Unlocked, playlist_AddExt(), PLAYLIST_INSERT, VLC_INPUT_OPTION_TRUSTED, and vlc_path2uri().
Referenced by libvlc_InternalInit().
| int libvlc_InternalAddIntf | ( | libvlc_int_t * | p_libvlc, |
| char const * | psz_module | ||
| ) |
Add an interface plugin and run it.
< Unspecified error
References _, b_daemon, intf_Create, msg_Err, msg_Info, var_CreateGetNonEmptyString, var_Destroy, and VLC_EGENERIC.
| 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 libvlc_priv_t::actions, b_daemon, config_AutoSaveConfigFile(), intf_DestroyAll(), libvlc_priv(), libvlc_Quit(), ml_Destroy(), module_EndBank(), msg_Dbg, libvlc_priv_t::p_ml, libvlc_priv_t::p_playlist, libvlc_priv_t::p_vlm, playlist_Destroy(), system_End(), var_CreateGetNonEmptyString, var_InheritBool, vlc_DeinitActions(), VLC_OBJECT, vlc_object_release, and vlm_Delete().
| libvlc_int_t* libvlc_InternalCreate | ( | void | ) |
Allocate a libvlc instance, initialize global data if needed It also initializes the threading system.
References libvlc_priv_t::b_color, libvlc_priv_t::exit, libvlc_priv_t::i_verbose, libvlc_priv(), libvlc_priv_t::ml_lock, libvlc_priv_t::p_dialog_provider, libvlc_priv_t::p_ml, libvlc_priv_t::p_playlist, libvlc_priv_t::p_vlm, vlc_custom_create, vlc_ExitInit(), and vlc_mutex_init().
| void libvlc_InternalDestroy | ( | libvlc_int_t * | p_libvlc | ) |
Destroy everything.
This function requests the running threads to finish, waits for their termination, and destroys their structure. It stops the thread systems: no instance can run after this has run
| p_libvlc | the instance to destroy |
References libvlc_priv_t::exit, libvlc_priv(), libvlc_priv_t::ml_lock, vlc_ExitDestroy(), vlc_internals, vlc_mutex_destroy(), and vlc_object_release.
| 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:
< Unspecified error
< Unspecified error
< Module not found
< No error
References _, libvlc_priv_t::actions, asprintf(), libvlc_priv_t::b_color, b_daemon, libvlc_priv_t::b_stats, config_LoadCmdLine, config_LoadConfigFile, config_PrintHelp(), config_SaveConfigFile, getenv(), GetFilenames(), getpid(), libvlc_priv_t::i_verbose, intf_Create, libvlc_priv(), ml_Create(), module_EndBank(), module_InitBank(), module_LoadPlugins, msg, msg_Dbg, msg_Err, msg_Warn, libvlc_priv_t::p_ml, libvlc_priv_t::p_vlm, pl_Get, pl_Unlocked, playlist_AddExt(), PLAYLIST_INSERT, psz_vlc_changeset, strdup(), system_Configure(), system_Init(), unlikely, utf8_fprintf(), var_Create, var_CreateGetNonEmptyString, var_Destroy, var_GetBool, var_InheritBool, var_InheritInteger, var_InheritString, var_SetBool, var_SetInteger, var_SetString, vlc_bindtextdomain(), vlc_CPU_dump(), VLC_EGENERIC, VLC_ENOMEM, VLC_ENOMOD, vlc_fopen(), vlc_InitActions(), VLC_OBJECT, vlc_object_set_name, vlc_path2uri(), VLC_SUCCESS, vlc_threads_setup(), VLC_VAR_ADDRESS, VLC_VAR_BOOL, VLC_VAR_DOINHERIT, VLC_VAR_INTEGER, VLC_VAR_STRING, VLC_VAR_VOID, and vlm_New.
|
static |
Referenced by libvlc_InternalAddIntf(), libvlc_InternalCleanup(), and libvlc_InternalInit().
1.8.1.2