- "This allows you to change the display name of the service." )
-
-vlc_module_begin();
- set_description( _("Windows NT/2K/XP service interface") );
- add_category_hint( N_("NT service"), NULL, VLC_TRUE );
- add_bool( "ntservice-install", 0, NULL, INSTALL_TEXT, INSTALL_LONGTEXT, VLC_TRUE );
- add_bool( "ntservice-uninstall", 0, NULL, INSTALL_TEXT, INSTALL_LONGTEXT, VLC_TRUE );
- add_string ( "ntservice-name", VLCSERVICENAME, NULL, NAME_TEXT, NAME_LONGTEXT, VLC_TRUE );
-
- set_capability( "interface", 0 );
- set_callbacks( Activate, Close );
-vlc_module_end();
+ "Change the display name of the Service." )
+#define OPTIONS_TEXT N_("Configuration options")
+#define OPTIONS_LONGTEXT N_( \
+ "Configuration options that will be " \
+ "used by the Service (eg. --foo=bar --no-foobar). It should be specified "\
+ "at install time so the Service is properly configured.")
+#define EXTRAINTF_TEXT N_("Extra interface modules")
+#define EXTRAINTF_LONGTEXT N_( \
+ "Additional interfaces spawned by the " \
+ "Service. It should be specified at install time so the Service is " \
+ "properly configured. Use a comma separated list of interface modules. " \
+ "(common values are: logger, sap, rc, http)")
+
+vlc_module_begin ()
+ set_shortname( N_("NT Service"))
+ set_description( N_("Windows Service interface") )
+ set_category( CAT_INTERFACE )
+ set_subcategory( SUBCAT_INTERFACE_CONTROL )
+ add_bool( "ntservice-install", false, NULL,
+ INSTALL_TEXT, INSTALL_LONGTEXT, true )
+ add_bool( "ntservice-uninstall", false, NULL,
+ UNINSTALL_TEXT, UNINSTALL_LONGTEXT, true )
+ add_string ( "ntservice-name", VLCSERVICENAME, NULL,
+ NAME_TEXT, NAME_LONGTEXT, true )
+ add_string ( "ntservice-options", NULL, NULL,
+ OPTIONS_TEXT, OPTIONS_LONGTEXT, true )
+ add_string ( "ntservice-extraintf", NULL, NULL,
+ EXTRAINTF_TEXT, EXTRAINTF_LONGTEXT, true )
+
+ set_capability( "interface", 0 )
+ set_callbacks( Activate, Close )
+vlc_module_end ()