"the master client used for the network synchronisation." )
vlc_module_begin();
- set_shortname( _("Netsync"));
+ set_shortname( _("Network Sync"));
set_description( _("Network synchronisation") );
- set_category( CAT_INTERFACE );
- set_subcategory( SUBCAT_INTERFACE_CONTROL );
+ set_category( CAT_ADVANCED );
+ set_subcategory( SUBCAT_ADVANCED_MISC );
add_bool( "netsync-master", 0, NULL,
NETSYNC_TEXT, NETSYNC_LONGTEXT, VLC_TRUE );
{
intf_thread_t *p_intf = (intf_thread_t*)p_this;
- msg_Info( p_intf, "Using the netsync interface module..." );
-
p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
if( !p_intf->p_sys )
{
AddIntfInternal( 0, "logger", VLC_FALSE, VLC_FALSE, 1, &psz_logmode );
}
+ if( config_GetInt( p_vlc, "show-intf" ) == 1 )
+ {
+ VLC_AddIntf( 0, "showintf", VLC_FALSE, VLC_FALSE );
+ }
+
+ if( config_GetInt( p_vlc, "network-synchronisation") == 1 )
+ {
+ VLC_AddIntf( 0, "netsync", VLC_FALSE, VLC_FALSE );
+ }
+
/*
* FIXME: kludge to use a p_vlc-local variable for the Mozilla plugin
*/
"show all the available options, including those that most users should " \
"never touch.")
+#define SHOWINTF_TEXT N_("Show interface with mouse")
+#define SHOWINTF_LONGTEXT N_( \
+ "If this enabled, the interface will be shown when you move the mouse to "\
+ "the edge of the screen in fullscreen mode." )
+
#define AOUT_CAT_LONGTEXT N_( \
"These options allow you to modify the behavior of the audio " \
"subsystem, and to add audio filters which can be used for " \
"Allows you to enable/disable the input clock synchronisation for " \
"real-time sources.")
+#define NETSYNC_TEXT N_("Network synchronisation" )
+#define NETSYNC_LONGTEXT N_( "This allows you to remotely " \
+ "synchronise clocks for server and client. The detailed settings " \
+ "are available in Advanced / Others / Network Sync" )
+
static int pi_clock_values[] = { -1, 0, 1 };
static char *ppsz_clock_descriptions[] =
{ N_("Default"), N_("Disable"), N_("Enable") };
CLOCK_SYNCHRO_LONGTEXT, VLC_TRUE );
change_integer_list( pi_clock_values, ppsz_clock_descriptions, 0 );
+ add_bool( "network-synchronisation", VLC_FALSE, NULL, NETSYNC_TEXT,
+ NETSYNC_LONGTEXT, VLC_TRUE );
+
/* Decoder options */
add_category_hint( N_("Decoders"), CODEC_CAT_LONGTEXT , VLC_TRUE );
add_string( "codec", NULL, NULL, CODEC_TEXT,
set_category( CAT_INTERFACE );
set_subcategory( SUBCAT_INTERFACE_GENERAL );
add_category_hint( N_("Interface"), INTF_CAT_LONGTEXT , VLC_FALSE );
- set_section ( N_("Interface module" ), NULL );
+ set_section ( N_("Interfaces" ), NULL );
add_module_cat( "intf", SUBCAT_INTERFACE_GENERAL, NULL, NULL, INTF_TEXT,
INTF_LONGTEXT, VLC_FALSE );
change_short('I');
- set_section ( N_("Extra interface modules" ), NULL );
add_module_list_cat( "extraintf", SUBCAT_INTERFACE_GENERAL,
NULL, NULL, EXTRAINTF_TEXT,
EXTRAINTF_LONGTEXT, VLC_FALSE );
add_bool( "advanced", 0, NULL, ADVANCED_TEXT, ADVANCED_LONGTEXT,
VLC_FALSE );
+ add_bool( "show-intf", VLC_FALSE, NULL, SHOWINTF_TEXT, SHOWINTF_LONGTEXT,
+ VLC_FALSE );
+
set_subcategory( SUBCAT_INTERFACE_CONTROL );
add_module_list_cat( "control", SUBCAT_INTERFACE_CONTROL, NULL, NULL,
CONTROL_TEXT, CONTROL_LONGTEXT, VLC_FALSE );