[vlc-devel] [PATCH 2/7] Add services-advertisement configuration option

Rémi Denis-Courmont remi at remlab.net
Wed Jul 24 18:16:29 CEST 2019


Le keskiviikkona 24. heinäkuuta 2019, 18.43.45 EEST Roland Bewick a écrit :
> ---
>  src/libvlc-module.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/libvlc-module.c b/src/libvlc-module.c
> index f5de78bcae..97075cbab6 100644
> --- a/src/libvlc-module.c
> +++ b/src/libvlc-module.c
> @@ -1232,6 +1232,11 @@ static const char *const psz_recursive_list_text[] =
> { "Specifies the services discovery modules to preload, separated by " \
> "colons. Typical value is \"sap\"." )
> 
> +#define SA_TEXT N_( "Services advertisement modules")
> +#define SA_LONGTEXT N_( \
> +     "Specifies the services advertisement modules to preload, separated by
> " \ +     "colons. Typical value is \"mdns\"." )
> +
>  #define RANDOM_TEXT N_("Play files randomly forever")
>  #define RANDOM_LONGTEXT N_( \
>      "VLC will randomly play files in the playlist until interrupted.")
> @@ -2125,6 +2130,7 @@ vlc_module_begin ()
>      add_category_hint(N_("Miscellaneous"), MISC_CAT_LONGTEXT)
>      add_module("vod-server", "vod server", NULL,
>                 VOD_SERVER_TEXT, VOD_SERVER_LONGTEXT)
> +    add_string( "services-advertisement", "", SA_TEXT, SA_LONGTEXT, true )

Either one boolean per protocol, or optionally add_module_list if there are 
several protocols.

> 
>      set_section( N_("Plugins" ), NULL )
>  #ifdef HAVE_DYNAMIC_PLUGINS


-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list