Commit ed9a75a9 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist/services_discovery.c: Implement and expose GetServicesNames.

parent dcfc9361
...@@ -415,9 +415,10 @@ VLC_EXPORT( playlist_item_t *, playlist_GetLastLeaf, ( playlist_t *p_playlist, p ...@@ -415,9 +415,10 @@ VLC_EXPORT( playlist_item_t *, playlist_GetLastLeaf, ( playlist_t *p_playlist, p
/*********************************************************************** /***********************************************************************
* Service Discovery * Service Discovery
***********************************************************************/ ***********************************************************************/
/* XXX: no need to inline */
/* XXX: no need to inline */ /* Get the services discovery modules names to use in Create(), in a null
/* Return the number of services_discovery available */ * terminated string array. Array and string must be freed after use. */
VLC_EXPORT( char **, services_discovery_GetServicesNames, ( vlc_object_t * p_super ) );
/* Creation of a service_discovery object */ /* Creation of a service_discovery object */
VLC_EXPORT( services_discovery_t *, services_discovery_Create, ( vlc_object_t * p_super, const char * psz_service_name ) ); VLC_EXPORT( services_discovery_t *, services_discovery_Create, ( vlc_object_t * p_super, const char * psz_service_name ) );
......
...@@ -34,6 +34,14 @@ static void RunSD( services_discovery_t *p_sd ); ...@@ -34,6 +34,14 @@ static void RunSD( services_discovery_t *p_sd );
* That's how the playlist get's Service Discovery information * That's how the playlist get's Service Discovery information
*/ */
/***********************************************************************
* GetServicesNames
***********************************************************************/
char ** services_discovery_GetServicesNames( vlc_object_t * p_super )
{
return module_GetModulesNamesForCapability( p_super, "services_discovery" );
}
/*********************************************************************** /***********************************************************************
* Create * Create
***********************************************************************/ ***********************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment