Changeset 9b7380f571471c6f4d39f5946acddfc62e9bcb41

Show
Ignore:
Timestamp:
01/06/05 19:08:59 (3 years ago)
Author:
Christophe Mutricy <xtophe@videolan.org>
git-committer:
Christophe Mutricy <xtophe@videolan.org> 1117645739 +0000
git-parent:

[3743f8f902e9b35fb926c6abd342d7a10d297c68]

git-author:
Christophe Mutricy <xtophe@videolan.org> 1117645739 +0000
Message:

* configuration.[ch]: treat the deleted options with add_suppressed_[bool,string,...]
* standard.c: sap-ipv6 is no more used

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/configuration.h

    rd519788 r9b7380f  
    343343        (i_config+11) * sizeof(module_config_t)); \ 
    344344    { static module_config_t tmp = { CONFIG_ITEM_BOOL, NULL, name, '\0', text, longtext, NULL, b_value }; p_config[ i_config ] = tmp; p_config[ i_config ].pf_callback = p_callback; p_config[i_config].b_advanced = advc; } 
    345  
     345/* For option renamed */ 
    346346#define add_deprecated( name, strict ) \ 
    347347        i_config++; \ 
     
    354354        p_config[i_config].b_strict = strict; \ 
    355355        p_config[ i_config ].psz_current = p_config[ i_config-1].psz_current?p_config[ i_config-1 ].psz_current:p_config[ i_config-1 ].psz_name; } 
    356  
     356/* For option suppressed*/ 
     357#define add_suppressed_bool( name ) \ 
     358        i_config++; \ 
     359    if(!(i_config%10)) p_config = (module_config_t* )realloc(p_config, \ 
     360        (i_config+11) * sizeof(module_config_t)); \ 
     361    {   static module_config_t tmp; \ 
     362        p_config[ i_config ] = tmp; \ 
     363        p_config[ i_config ].i_type = CONFIG_ITEM_BOOL; \ 
     364        p_config[ i_config ].psz_name = name; \ 
     365        p_config[ i_config ].psz_current = "SUPPRESSED"; } 
     366 
     367#define add_suppressed_integer( name ) \ 
     368        i_config++; \ 
     369    if(!(i_config%10)) p_config = (module_config_t* )realloc(p_config, \ 
     370        (i_config+11) * sizeof(module_config_t)); \ 
     371    {   static module_config_t tmp; \ 
     372        p_config[ i_config ] = tmp; \ 
     373        p_config[ i_config ].i_type = CONFIG_ITEM_INTEGER; \ 
     374        p_config[ i_config ].psz_name = name; \ 
     375        p_config[ i_config ].psz_current = "SUPPRESSED"; } 
     376#define add_suppressed_float( name ) \ 
     377        i_config++; \ 
     378    if(!(i_config%10)) p_config = (module_config_t* )realloc(p_config, \ 
     379        (i_config+11) * sizeof(module_config_t)); \ 
     380    {   static module_config_t tmp; \ 
     381        p_config[ i_config ] = tmp; \ 
     382        p_config[ i_config ].i_type = CONFIG_ITEM_FLOAT; \ 
     383        p_config[ i_config ].psz_name = name; \ 
     384        p_config[ i_config ].psz_current = "SUPPRESSED"; } 
     385#define add_suppressed_string( name ) \ 
     386        i_config++; \ 
     387    if(!(i_config%10)) p_config = (module_config_t* )realloc(p_config, \ 
     388        (i_config+11) * sizeof(module_config_t)); \ 
     389    {   static module_config_t tmp; \ 
     390        p_config[ i_config ] = tmp; \ 
     391        p_config[ i_config ].i_type = CONFIG_ITEM_STRING; \ 
     392        p_config[ i_config ].psz_name = name; \ 
     393        p_config[ i_config ].psz_current = "SUPPRESSED"; } 
    357394/* Modifier macros for the config options (used for fine tuning) */ 
    358395#define change_short( ch ) \ 
  • modules/stream_out/standard.c

    re2dedca r9b7380f  
    9393    add_string( SOUT_CFG_PREFIX "group", "", NULL, GROUP_TEXT, GROUP_LONGTEXT, 
    9494                                        VLC_TRUE ); 
    95     add_deprecated( SOUT_CFG_PREFIX "sap-ipv6", VLC_FALSE ); 
     95    add_suppressed_bool( SOUT_CFG_PREFIX "sap-ipv6" ); 
    9696 
    9797    add_bool( SOUT_CFG_PREFIX "slp", 0, NULL, SLP_TEXT, SLP_LONGTEXT, VLC_TRUE ); 
  • src/misc/configuration.c

    r89c43e2 r9b7380f  
    15521552                if( p_conf->psz_current ) 
    15531553                { 
     1554                    if( !strcmp(p_conf->psz_current,"SUPPRESSED") ) 
     1555                    { 
     1556                       if( !b_ignore_errors )  
     1557                        { 
     1558                            fprintf(stderr, 
     1559                                    "Warning: option --%s is no longer used.\n", 
     1560                                    p_conf->psz_name); 
     1561                        } 
     1562                       continue; 
     1563                    } 
    15541564                    if( !b_ignore_errors ) 
    15551565                    {