VLC  4.0.0-dev
Functions
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 blank libvlc instance, also setting the exit handler. More...
 
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: More...
 
void libvlc_InternalCleanup (libvlc_int_t *p_libvlc)
 Cleanup a libvlc instance. More...
 
void libvlc_InternalDestroy (libvlc_int_t *p_libvlc)
 Destroy everything. More...
 
int vlc_MetadataRequest (libvlc_int_t *libvlc, input_item_t *item, input_item_meta_request_option_t i_options, const input_preparser_callbacks_t *cbs, void *cbs_userdata, int timeout, void *id)
 
int libvlc_MetadataRequest (libvlc_int_t *libvlc, input_item_t *item, input_item_meta_request_option_t i_options, const input_preparser_callbacks_t *cbs, void *cbs_userdata, int timeout, void *id)
 Requests extraction of the meta data for an input item (a.k.a. More...
 
int libvlc_ArtRequest (libvlc_int_t *libvlc, input_item_t *item, input_item_meta_request_option_t i_options, const input_fetcher_callbacks_t *cbs, void *cbs_userdata)
 Requests retrieving/downloading art for an input item. More...
 
void libvlc_MetadataCancel (libvlc_int_t *libvlc, void *id)
 Cancels extraction of the meta data for an input item. More...
 

Detailed Description

This file contains functions to create and destroy libvlc instances.

Function Documentation

◆ GetFilenames()

static void GetFilenames ( libvlc_int_t p_vlc,
unsigned  n,
const char * const  args[] 
)
static

◆ libvlc_AddInterfaces()

static void libvlc_AddInterfaces ( libvlc_int_t libvlc,
const char *  varname 
)
static

◆ libvlc_ArtRequest()

int libvlc_ArtRequest ( libvlc_int_t libvlc,
input_item_t item,
input_item_meta_request_option_t  i_options,
const input_fetcher_callbacks_t cbs,
void *  cbs_userdata 
)

Requests retrieving/downloading art for an input item.

The retrieval is performed asynchronously.

References input_preparser_fetcher_Push(), libvlc_priv(), META_REQUEST_OPTION_FETCH_ANY, libvlc_priv_t::parser, unlikely, VLC_ENOMEM, and VLC_SUCCESS.

◆ libvlc_InternalCleanup()

void libvlc_InternalCleanup ( libvlc_int_t p_libvlc)

◆ libvlc_InternalCreate()

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().

◆ libvlc_InternalDestroy()

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 vlc_object_delete.

◆ libvlc_InternalInit()

int libvlc_InternalInit ( libvlc_int_t p_libvlc,
int  i_argc,
const char *  ppsz_argv[] 
)

◆ libvlc_MetadataCancel()

void libvlc_MetadataCancel ( libvlc_int_t libvlc,
void *  id 
)

Cancels extraction of the meta data for an input item.

This does nothing if the input item is already processed or if it was not added with libvlc_MetadataRequest()

References input_preparser_Cancel(), libvlc_priv(), libvlc_priv_t::parser, and unlikely.

Referenced by vlc_media_tree_PreparseCancel().

◆ libvlc_MetadataRequest()

int libvlc_MetadataRequest ( libvlc_int_t libvlc,
input_item_t item,
input_item_meta_request_option_t  i_options,
const input_preparser_callbacks_t cbs,
void *  cbs_userdata,
int  timeout,
void *  id 
)

Requests extraction of the meta data for an input item (a.k.a.

preparsing). The actual extraction is asynchronous. It can be cancelled with libvlc_MetadataCancel()

References input_item_t::i_preparse_depth, libvlc_priv(), input_item_t::lock, META_REQUEST_OPTION_SCOPE_ANY, libvlc_priv_t::parser, unlikely, VLC_ENOMEM, vlc_MetadataRequest(), vlc_mutex_lock(), and vlc_mutex_unlock().

◆ vlc_MetadataRequest()

int vlc_MetadataRequest ( libvlc_int_t libvlc,
input_item_t item,
input_item_meta_request_option_t  i_options,
const input_preparser_callbacks_t cbs,
void *  cbs_userdata,
int  timeout,
void *  id 
)