VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
libvlc.c File Reference

This file contains functions to create and destroy libvlc instances. More...

Include dependency graph for libvlc.c:

Functions

static void GetFilenames (libvlc_int_t *, unsigned, const char *const [])
libvlc_int_tlibvlc_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

Detailed Description

This file contains functions to create and destroy libvlc instances.

Function Documentation

static void GetFilenames ( libvlc_int_t p_vlc,
unsigned  n,
const char * const  args[] 
)
static
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)
libvlc_int_t* libvlc_InternalCreate ( void  )
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

Parameters
p_libvlcthe 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[] 
)

Variable Documentation

bool b_daemon = false
static