[vlc-devel] [PATCH 1/3] Add services-advertisement configuration options
Roland Bewick
roland.bewick at gmail.com
Mon Sep 2 07:25:41 CEST 2019
--services-advertisement=mdns
--services-advertisement-address-family={v4,v6}
---
src/libvlc-module.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index f5de78bcae..76e5287b8d 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1232,6 +1232,21 @@ static const char *const psz_recursive_list_text[] = {
"Specifies the services discovery modules to preload, separated by " \
"colons. Typical value is \"sap\"." )
+static const char *const psz_address_family_list[] = {
+ "v4", "v6" };
+static const char *const psz_address_family_list_text[] = {
+ N_("IPv4"), N_("IPv6") };
+
+#define SERVICES_ADVERTISEMENT_TEXT N_( "Services advertisement modules")
+#define SERVICES_ADVERTISEMENT_LONGTEXT N_( \
+ "Specifies the services advertisement modules to preload, separated by " \
+ "colons. Typical value is \"mdns\"." )
+
+#define SERVICES_ADVERTISEMENT_ADDRESS_FAMILY_TEXT N_( \
+ "Services Advertisement address family")
+#define SERVICES_ADVERTISEMENT_ADDRESS_FAMILY_LONGTEXT N_( \
+ "Specifies which address family to advertise on. Default value is \"v6\". ")
+
#define RANDOM_TEXT N_("Play files randomly forever")
#define RANDOM_LONGTEXT N_( \
"VLC will randomly play files in the playlist until interrupted.")
@@ -2125,6 +2140,12 @@ 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_module_list("services-advertisement", "services_advertisement", NULL,
+ SERVICES_ADVERTISEMENT_TEXT, SERVICES_ADVERTISEMENT_LONGTEXT)
+ add_string("services-advertisement-address-family", "v6",
+ SERVICES_ADVERTISEMENT_ADDRESS_FAMILY_TEXT,
+ SERVICES_ADVERTISEMENT_ADDRESS_FAMILY_LONGTEXT, true )
+ change_string_list( psz_address_family_list, psz_address_family_list_text )
set_section( N_("Plugins" ), NULL )
#ifdef HAVE_DYNAMIC_PLUGINS
--
2.17.1
More information about the vlc-devel
mailing list