Commit 5aa95193 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove useless parameter

parent fddf2f47
...@@ -56,9 +56,7 @@ struct services_discovery_t ...@@ -56,9 +56,7 @@ struct services_discovery_t
/* Get the services discovery modules names to use in Create(), in a null /* Get the services discovery modules names to use in Create(), in a null
* terminated string array. Array and string must be freed after use. */ * terminated string array. Array and string must be freed after use. */
VLC_EXPORT( char **, __services_discovery_GetServicesNames, ( vlc_object_t * p_super, char ***pppsz_longnames ) ); VLC_EXPORT( char **, vlc_sd_GetNames, ( char ***pppsz_longnames ) );
#define services_discovery_GetServicesNames(a,b) \
__services_discovery_GetServicesNames(VLC_OBJECT(a),b)
/* Creation of a service_discovery object */ /* Creation of a service_discovery object */
VLC_EXPORT( services_discovery_t *, vlc_sd_Create, ( vlc_object_t * ) ); VLC_EXPORT( services_discovery_t *, vlc_sd_Create, ( vlc_object_t * ) );
......
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
o_tc_sortColumn = nil; o_tc_sortColumn = nil;
char ** ppsz_name; char ** ppsz_name;
char ** ppsz_services = services_discovery_GetServicesNames( p_playlist, &ppsz_name ); char ** ppsz_services = vlc_sd_GetNames( &ppsz_name );
if( !ppsz_services ) if( !ppsz_services )
{ {
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
......
...@@ -609,8 +609,7 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf ) ...@@ -609,8 +609,7 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf )
QMenu *menu = new QMenu(); QMenu *menu = new QMenu();
menu->setTitle( qtr( I_PL_SD ) ); menu->setTitle( qtr( I_PL_SD ) );
char **ppsz_longnames; char **ppsz_longnames;
char **ppsz_names = services_discovery_GetServicesNames( p_intf, char **ppsz_names = vlc_sd_GetNames( &ppsz_longnames );
&ppsz_longnames );
if( !ppsz_names ) if( !ppsz_names )
return menu; return menu;
......
...@@ -1407,8 +1407,7 @@ wxMenu *Playlist::SDMenu() ...@@ -1407,8 +1407,7 @@ wxMenu *Playlist::SDMenu()
p_sd_menu = new wxMenu; p_sd_menu = new wxMenu;
char **ppsz_longnames; char **ppsz_longnames;
char **ppsz_names = services_discovery_GetServicesNames( p_playlist, char **ppsz_names = vlc_sd_GetNames( &ppsz_longnames );
&ppsz_longnames );
if( !ppsz_names ) if( !ppsz_names )
return p_sd_menu; return p_sd_menu;
......
...@@ -51,7 +51,7 @@ static int vlclua_sd_get_services_names( lua_State *L ) ...@@ -51,7 +51,7 @@ static int vlclua_sd_get_services_names( lua_State *L )
{ {
vlc_object_t *p_this = vlclua_get_this( L ); vlc_object_t *p_this = vlclua_get_this( L );
char **ppsz_longnames; char **ppsz_longnames;
char **ppsz_names = services_discovery_GetServicesNames( p_this, &ppsz_longnames ); char **ppsz_names = vlc_sd_GetNames( &ppsz_longnames );
if( !ppsz_names ) if( !ppsz_names )
return 0; return 0;
......
...@@ -319,7 +319,6 @@ secstotimestr ...@@ -319,7 +319,6 @@ secstotimestr
services_discovery_AddItem services_discovery_AddItem
services_discovery_EventManager services_discovery_EventManager
services_discovery_GetLocalizedName services_discovery_GetLocalizedName
__services_discovery_GetServicesNames
services_discovery_RemoveItem services_discovery_RemoveItem
sout_AccessOutControl sout_AccessOutControl
sout_AccessOutDelete sout_AccessOutDelete
...@@ -494,6 +493,7 @@ vlc_rand_bytes ...@@ -494,6 +493,7 @@ vlc_rand_bytes
vlc_recvmsg vlc_recvmsg
vlc_release vlc_release
vlc_sd_Create vlc_sd_Create
vlc_sd_GetNames
vlc_sdp_Start vlc_sdp_Start
vlc_sd_Start vlc_sd_Start
vlc_sd_Stop vlc_sd_Stop
......
...@@ -40,11 +40,10 @@ ...@@ -40,11 +40,10 @@
* That's how the playlist get's Service Discovery information * That's how the playlist get's Service Discovery information
*/ */
/*********************************************************************** /**
* GetServicesNames * Gets the list of available services discovery plugins.
***********************************************************************/ */
char ** __services_discovery_GetServicesNames( vlc_object_t * p_super, char **vlc_sd_GetNames( char ***pppsz_longnames )
char ***pppsz_longnames )
{ {
return module_GetModulesNamesForCapability( "services_discovery", return module_GetModulesNamesForCapability( "services_discovery",
pppsz_longnames ); pppsz_longnames );
......
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