VLC  4.0.0-dev
media_source.c File Reference
Include dependency graph for media_source.c:

Data Structures

struct  media_source_private_t
 
struct  vlc_media_source_provider_t
 
struct  vlc_media_source_meta_list
 

Macros

#define ms_priv(ms)   container_of(ms, media_source_private_t, public_data)
 

Functions

static void services_discovery_item_added (services_discovery_t *sd, input_item_t *parent, input_item_t *media, const char *cat)
 
static void services_discovery_item_removed (services_discovery_t *sd, input_item_t *media)
 
static vlc_media_source_tvlc_media_source_New (vlc_media_source_provider_t *provider, const char *name)
 
static void vlc_media_source_provider_Remove (vlc_media_source_provider_t *provider, vlc_media_source_t *ms)
 
static void vlc_media_source_Delete (vlc_media_source_t *ms)
 
void vlc_media_source_Hold (vlc_media_source_t *ms)
 Increase the media source reference count. More...
 
void vlc_media_source_Release (vlc_media_source_t *ms)
 Decrease the media source reference count. More...
 
static vlc_media_source_tvlc_media_source_provider_Find (vlc_media_source_provider_t *provider, const char *name)
 
vlc_media_source_provider_tvlc_media_source_provider_Get (libvlc_int_t *libvlc)
 Return the media source provider associated to the libvlc instance. More...
 
static void * CreateObject (vlc_object_t *parent, size_t length, const char *typename)
 
static void ReleaseObject (void *obj)
 
vlc_media_source_provider_tvlc_media_source_provider_New (vlc_object_t *parent)
 
void vlc_media_source_provider_Delete (vlc_media_source_provider_t *provider)
 
static vlc_media_source_tvlc_media_source_provider_Add (vlc_media_source_provider_t *provider, const char *name)
 
vlc_media_source_tvlc_media_source_provider_GetMediaSource (vlc_media_source_provider_t *provider, const char *name)
 Return the media source identified by psz_name. More...
 
struct vlc_media_source_meta_listvlc_media_source_provider_List (vlc_media_source_provider_t *provider, enum services_discovery_category_e category)
 Return the list of metadata of available media sources. More...
 
size_t vlc_media_source_meta_list_Count (vlc_media_source_meta_list_t *list)
 Return the number of items in the list. More...
 
struct vlc_media_source_metavlc_media_source_meta_list_Get (vlc_media_source_meta_list_t *list, size_t index)
 Return the item at index. More...
 
void vlc_media_source_meta_list_Delete (vlc_media_source_meta_list_t *list)
 Delete the list. More...
 

Variables

static const struct services_discovery_callbacks sd_cbs
 

Macro Definition Documentation

◆ ms_priv

#define ms_priv (   ms)    container_of(ms, media_source_private_t, public_data)

Function Documentation

◆ CreateObject()

static void* CreateObject ( vlc_object_t parent,
size_t  length,
const char *  typename 
)
static

◆ ReleaseObject()

static void ReleaseObject ( void *  obj)
static

◆ services_discovery_item_added()

◆ services_discovery_item_removed()

static void services_discovery_item_removed ( services_discovery_t sd,
input_item_t media 
)
static

◆ vlc_media_source_Delete()

◆ vlc_media_source_New()

◆ vlc_media_source_provider_Add()

◆ vlc_media_source_provider_Delete()

void vlc_media_source_provider_Delete ( vlc_media_source_provider_t provider)

References ReleaseObject().

Referenced by libvlc_InternalCleanup().

◆ vlc_media_source_provider_Find()

◆ vlc_media_source_provider_New()

◆ vlc_media_source_provider_Remove()

static void vlc_media_source_provider_Remove ( vlc_media_source_provider_t provider,
vlc_media_source_t ms 
)
static

Variable Documentation

◆ sd_cbs

const struct services_discovery_callbacks sd_cbs
static
Initial value:
= {
}
static void services_discovery_item_added(services_discovery_t *sd, input_item_t *parent, input_item_t *media, const char *cat)
Definition: media_source.c:61
static void services_discovery_item_removed(services_discovery_t *sd, input_item_t *media)
Definition: media_source.c:89

Referenced by vlc_media_source_New().