VLC  4.0.0-dev
Data Structures | Typedefs | Functions
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_EXPORT 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...
 
VLC_EXPORT void vlc_media_tree_RemoveListener (vlc_media_tree_t *tree, vlc_media_tree_listener_id *listener)
 Remove a listener. More...
 
VLC_EXPORT void vlc_media_tree_Lock (vlc_media_tree_t *)
 Lock the media tree (non-recursive). More...
 
VLC_EXPORT void vlc_media_tree_Unlock (vlc_media_tree_t *)
 Unlock the media tree. More...
 
VLC_EXPORT 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...
 
VLC_EXPORT 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...
 
VLC_EXPORT void vlc_media_tree_PreparseCancel (libvlc_int_t *libvlc, void *id)
 Cancel a media tree preparse request. More...
 
VLC_EXPORT void vlc_media_source_Hold (vlc_media_source_t *)
 Increase the media source reference count. More...
 
VLC_EXPORT void vlc_media_source_Release (vlc_media_source_t *)
 Decrease the media source reference count. More...
 
VLC_EXPORT vlc_media_source_provider_tvlc_media_source_provider_Get (libvlc_int_t *)
 Return the media source provider associated to the libvlc instance. More...
 
VLC_EXPORT 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_EXPORT 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...
 
VLC_EXPORT size_t vlc_media_source_meta_list_Count (vlc_media_source_meta_list_t *)
 Return the number of items in the list. More...
 
VLC_EXPORT 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...
 
VLC_EXPORT void vlc_media_source_meta_list_Delete (vlc_media_source_meta_list_t *)
 Delete the list. More...