Changeset 1bccb7df0b792afdb9107d5da8d10a174d45778c

Show
Ignore:
Timestamp:
01/23/06 20:09:22 (3 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1138043362 +0000
git-parent:

[3814df3b05159f91a38b1ed240fb623efaa2c917]

git-author:
Clément Stenac <zorglub@videolan.org> 1138043362 +0000
Message:

Add global options for netsync and showintf and hide them from interface (Closes:#508)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/netsync.c

    r2cb472d r1bccb7d  
    6666 
    6767vlc_module_begin(); 
    68     set_shortname( _("Netsync")); 
     68    set_shortname( _("Network Sync")); 
    6969    set_description( _("Network synchronisation") ); 
    70     set_category( CAT_INTERFACE ); 
    71     set_subcategory( SUBCAT_INTERFACE_CONTROL ); 
     70    set_category( CAT_ADVANCED ); 
     71    set_subcategory( SUBCAT_ADVANCED_MISC ); 
    7272 
    7373    add_bool( "netsync-master", 0, NULL, 
     
    9696{ 
    9797    intf_thread_t *p_intf = (intf_thread_t*)p_this; 
    98  
    99     msg_Info( p_intf, "Using the netsync interface module..." ); 
    10098 
    10199    p_intf->p_sys = malloc( sizeof( intf_sys_t ) ); 
  • modules/control/showintf.c

    r2cb472d r1bccb7d  
    6565vlc_module_begin(); 
    6666    set_shortname( "Showintf" ); 
    67     set_category( CAT_INTERFACE ); 
    68     set_subcategory( SUBCAT_INTERFACE_CONTROL ); 
    6967    add_integer( "showintf-threshold", 10, NULL, THRESHOLD_TEXT, THRESHOLD_LONGTEXT, VLC_TRUE ); 
    70     set_description( _("Interface showing control interface") ); 
     68    set_description( _("Show interface with mouse") ); 
    7169 
    7270    set_capability( "interface", 0 ); 
  • src/libvlc.c

    ra1e597b r1bccb7d  
    785785        char *psz_logmode = "logmode=syslog"; 
    786786        AddIntfInternal( 0, "logger", VLC_FALSE, VLC_FALSE, 1, &psz_logmode ); 
     787    } 
     788 
     789    if( config_GetInt( p_vlc, "show-intf" ) == 1 ) 
     790    { 
     791        VLC_AddIntf( 0, "showintf", VLC_FALSE, VLC_FALSE ); 
     792    } 
     793 
     794    if( config_GetInt( p_vlc, "network-synchronisation") == 1 ) 
     795    { 
     796        VLC_AddIntf( 0, "netsync", VLC_FALSE, VLC_FALSE ); 
    787797    } 
    788798 
  • src/libvlc.h

    ra1e597b r1bccb7d  
    101101    "never touch.") 
    102102 
     103#define SHOWINTF_TEXT N_("Show interface with mouse") 
     104#define SHOWINTF_LONGTEXT N_( \ 
     105    "If this enabled, the interface will be shown when you move the mouse to "\ 
     106    "the edge of the screen in fullscreen mode." ) 
     107 
    103108#define AOUT_CAT_LONGTEXT N_( \ 
    104109    "These options allow you to modify the behavior of the audio " \ 
     
    345350    "Allows you to enable/disable the input clock synchronisation for " \ 
    346351    "real-time sources.") 
     352 
     353#define NETSYNC_TEXT N_("Network synchronisation" ) 
     354#define NETSYNC_LONGTEXT N_( "This allows you to remotely " \ 
     355        "synchronise clocks for server and client. The detailed settings " \ 
     356        "are available in Advanced / Others / Network Sync" ) 
    347357 
    348358static int pi_clock_values[] = { -1, 0, 1 }; 
     
    12571267        change_integer_list( pi_clock_values, ppsz_clock_descriptions, 0 ); 
    12581268 
     1269    add_bool( "network-synchronisation", VLC_FALSE, NULL, NETSYNC_TEXT, 
     1270              NETSYNC_LONGTEXT, VLC_TRUE ); 
     1271 
    12591272/* Decoder options */ 
    12601273    add_category_hint( N_("Decoders"), CODEC_CAT_LONGTEXT , VLC_TRUE ); 
     
    14151428    set_subcategory( SUBCAT_INTERFACE_GENERAL ); 
    14161429    add_category_hint( N_("Interface"), INTF_CAT_LONGTEXT , VLC_FALSE ); 
    1417     set_section ( N_("Interface module" ), NULL ); 
     1430    set_section ( N_("Interfaces" ), NULL ); 
    14181431    add_module_cat( "intf", SUBCAT_INTERFACE_GENERAL, NULL, NULL, INTF_TEXT, 
    14191432                INTF_LONGTEXT, VLC_FALSE ); 
    14201433        change_short('I'); 
    14211434 
    1422     set_section ( N_("Extra interface modules" ),  NULL ); 
    14231435    add_module_list_cat( "extraintf", SUBCAT_INTERFACE_GENERAL, 
    14241436                         NULL, NULL, EXTRAINTF_TEXT, 
     
    14371449    add_bool( "advanced", 0, NULL, ADVANCED_TEXT, ADVANCED_LONGTEXT, 
    14381450                    VLC_FALSE ); 
     1451 
     1452    add_bool( "show-intf", VLC_FALSE, NULL, SHOWINTF_TEXT, SHOWINTF_LONGTEXT, 
     1453              VLC_FALSE ); 
    14391454 
    14401455    set_subcategory( SUBCAT_INTERFACE_CONTROL );