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

Alexandre Janniaux ajanni at videolabs.io
Wed Jul 24 18:29:51 CEST 2019


The default value should probably be NULL like "keystore", "clock-source",
pidfile,... btw, to stay consistent. :)

--
Alexandre Janniaux
VideoLabs

On Wed, Jul 24, 2019 at 06:11:16PM +0200, Alexandre Janniaux wrote:
> Hi,
>
> This would probably be a good idea to use add_module_list instead of
> add_string, as `vlc -H` will provide the available module that you can
> put there and you probably want to be capable of running multiple
> service advertisement like the variable name states.
> If so, you'll need to use config_ChainParse to extract the different
> module and their configurations.
>
> Besides, other defines aren't using abbreviations so maybe SA_TEXT could
> be a more explicit name ?
>
> Regards,
>
> --
> Alexandre Janniaux
> VideoLabs
>
> On Wed, Jul 24, 2019 at 10:43:45PM +0700, Roland Bewick wrote:
> > ---
> >  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 )
> >
> >      set_section( N_("Plugins" ), NULL )
> >  #ifdef HAVE_DYNAMIC_PLUGINS
> > --
> > 2.11.0
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list