-static int Activate( vlc_object_t * );
-static void Close ( vlc_object_t * );
-
-static mtime_t GetClockRef( intf_thread_t *, mtime_t );
-
-#define NETSYNC_TEXT N_( "Act as master for network synchronisation" )
-#define NETSYNC_LONGTEXT N_( "Allows you to specify if this client should " \
- "act as the master client for the network synchronisation." )
-
-#define MIP_TEXT N_( "Master client ip address" )
-#define MIP_LONGTEXT N_( "Allows you to specify the ip address of " \
- "the master client used for the network synchronisation." )
-
-vlc_module_begin();
- set_description( _("Network synchronisation") );
-
- add_bool( "netsync-master", 0, NULL,
- NETSYNC_TEXT, NETSYNC_LONGTEXT, VLC_TRUE );
- add_string( "netsync-master-ip", NULL, NULL, MIP_TEXT, MIP_LONGTEXT,
- VLC_TRUE );
-
- set_capability( "interface", 0 );
- set_callbacks( Activate, Close );
-vlc_module_end();
-
-struct intf_sys_t
-{
- input_thread_t *p_input;
-};
+static int Open (vlc_object_t *);
+static void Close(vlc_object_t *);
+
+#define NETSYNC_TEXT N_("Network master clock")
+#define NETSYNC_LONGTEXT N_("When set then " \
+ "this vlc instance shall dictate its clock for synchronisation" \
+ "over clients listening on the masters network ip address")
+
+#define MIP_TEXT N_("Master server ip address")
+#define MIP_LONGTEXT N_("The IP address of " \
+ "the network master clock to use for clock synchronisation.")
+
+#define NETSYNC_TIMEOUT_TEXT N_("UDP timeout (in ms)")
+#define NETSYNC_TIMEOUT_LONGTEXT N_("Amount of time (in ms) " \
+ "to wait before aborting network reception of data.")
+
+vlc_module_begin()
+ set_shortname(N_("Network Sync"))
+ set_description(N_("Network synchronisation"))
+ set_category(CAT_ADVANCED)
+ set_subcategory(SUBCAT_ADVANCED_MISC)
+
+ add_bool("netsync-master", false, NULL,
+ NETSYNC_TEXT, NETSYNC_LONGTEXT, true)
+ add_string("netsync-master-ip", NULL, NULL, MIP_TEXT, MIP_LONGTEXT,
+ true)
+ add_integer("netsync-timeout", 500, NULL,
+ NETSYNC_TIMEOUT_TEXT, NETSYNC_TIMEOUT_LONGTEXT, true)
+
+ set_capability("interface", 0)
+ set_callbacks(Open, Close)
+vlc_module_end()