VLC 4.0.0-dev
Loading...
Searching...
No Matches
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)
 
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_Delete (vlc_media_source_t *ms)
 
void vlc_media_source_Hold (vlc_media_source_t *ms)
 Increase the media source reference count.
 
void vlc_media_source_Release (vlc_media_source_t *ms)
 Decrease the media source reference count.
 
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.
 
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.
 
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.
 
size_t vlc_media_source_meta_list_Count (vlc_media_source_meta_list_t *list)
 Return the number of items in the list.
 
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.
 
void vlc_media_source_meta_list_Delete (vlc_media_source_meta_list_t *list)
 Delete the list.
 

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

◆ vlc_media_source_Delete()

static void vlc_media_source_Delete ( vlc_media_source_t ms)
static

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

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)
Definition media_source.c:60
static void services_discovery_item_removed(services_discovery_t *sd, input_item_t *media)
Definition media_source.c:84

Referenced by vlc_media_source_New().