VLC 4.0.0-dev
vlc_media_source.h File Reference
Include dependency graph for vlc_media_source.h:

Go to the source code of this file.

Data Structures

struct  vlc_media_tree
 Media source API aims to manage "services discovery" easily from UI clients. More...
 
struct  vlc_media_tree_callbacks
 Callbacks to receive media tree events. More...
 
struct  vlc_media_source_t
 Media source. More...
 
struct  vlc_media_source_meta
 Structure containing the description of a media source. More...
 

Typedefs

typedef struct vlc_media_tree vlc_media_tree_t
 Media source API aims to manage "services discovery" easily from UI clients. More...
 
typedef struct vlc_media_tree_listener_id vlc_media_tree_listener_id
 Listener for media tree events. More...
 
typedef struct vlc_media_source_t vlc_media_source_t
 Media source. More...
 
typedef struct vlc_media_source_provider_t vlc_media_source_provider_t
 Media source provider (opaque pointer), used to get media sources. More...
 
typedef struct vlc_media_source_meta_list vlc_media_source_meta_list_t
 List of media source metadata (opaque). More...
 

Functions

vlc_media_tree_tvlc_media_tree_New (void)
 Create an empty media tree. More...
 
vlc_media_tree_listener_idvlc_media_tree_AddListener (vlc_media_tree_t *tree, const struct vlc_media_tree_callbacks *cbs, void *userdata, bool notify_current_state)
 Add a listener. More...
 
void vlc_media_tree_RemoveListener (vlc_media_tree_t *tree, vlc_media_tree_listener_id *listener)
 Remove a listener. More...
 
void vlc_media_tree_Hold (vlc_media_tree_t *tree)
 Increase the media tree reference count. More...
 
void vlc_media_tree_Release (vlc_media_tree_t *tree)
 Decrease the media tree reference count. More...
 
void vlc_media_tree_Lock (vlc_media_tree_t *)
 Lock the media tree (non-recursive). More...
 
void vlc_media_tree_Unlock (vlc_media_tree_t *)
 Unlock the media tree. More...
 
input_item_node_tvlc_media_tree_Add (vlc_media_tree_t *tree, input_item_node_t *parent, input_item_t *media)
 Add an item to the media tree. More...
 
bool vlc_media_tree_Remove (vlc_media_tree_t *tree, input_item_t *media)
 Remove an item from the media tree. More...
 
bool vlc_media_tree_Find (vlc_media_tree_t *tree, const input_item_t *media, input_item_node_t **result, input_item_node_t **result_parent)
 Find the node containing the requested input item (and its parent). More...
 
void vlc_media_tree_Preparse (vlc_media_tree_t *tree, libvlc_int_t *libvlc, input_item_t *media, void *id)
 Preparse a media, and expand it in the media tree on subitems added. More...
 
void vlc_media_tree_PreparseCancel (libvlc_int_t *libvlc, void *id)
 Cancel a media tree preparse request. More...
 
void vlc_media_source_Hold (vlc_media_source_t *)
 Increase the media source reference count. More...
 
void vlc_media_source_Release (vlc_media_source_t *)
 Decrease the media source reference count. More...
 
vlc_media_source_provider_tvlc_media_source_provider_Get (libvlc_int_t *)
 Return the media source provider associated to the libvlc instance. More...
 
vlc_media_source_tvlc_media_source_provider_GetMediaSource (vlc_media_source_provider_t *, const char *name)
 Return the media source identified by psz_name. More...
 
vlc_media_source_meta_list_tvlc_media_source_provider_List (vlc_media_source_provider_t *, 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 *)
 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 *, size_t index)
 Return the item at index. More...
 
void vlc_media_source_meta_list_Delete (vlc_media_source_meta_list_t *)
 Delete the list. More...