mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-16 16:02:54 +02:00
playlist/services_discovery.c: Implement and expose GetServicesNames.
This commit is contained in:
parent
dcfc9361fa
commit
ed9a75a913
@ -415,9 +415,10 @@ VLC_EXPORT( playlist_item_t *, playlist_GetLastLeaf, ( playlist_t *p_playlist, p
|
||||
/***********************************************************************
|
||||
* Service Discovery
|
||||
***********************************************************************/
|
||||
/* XXX: no need to inline */
|
||||
/* XXX: no need to inline */
|
||||
/* Return the number of services_discovery available */
|
||||
|
||||
/* Get the services discovery modules names to use in Create(), in a null
|
||||
* 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 */
|
||||
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 );
|
||||
* 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
|
||||
***********************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user