Changeset 9b7380f571471c6f4d39f5946acddfc62e9bcb41
- Timestamp:
- 01/06/05 19:08:59 (3 years ago)
- git-parent:
- Files:
-
- include/configuration.h (modified) (2 diffs)
- modules/stream_out/standard.c (modified) (1 diff)
- src/misc/configuration.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
include/configuration.h
rd519788 r9b7380f 343 343 (i_config+11) * sizeof(module_config_t)); \ 344 344 { 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 */ 346 346 #define add_deprecated( name, strict ) \ 347 347 i_config++; \ … … 354 354 p_config[i_config].b_strict = strict; \ 355 355 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"; } 357 394 /* Modifier macros for the config options (used for fine tuning) */ 358 395 #define change_short( ch ) \ modules/stream_out/standard.c
re2dedca r9b7380f 93 93 add_string( SOUT_CFG_PREFIX "group", "", NULL, GROUP_TEXT, GROUP_LONGTEXT, 94 94 VLC_TRUE ); 95 add_ deprecated( SOUT_CFG_PREFIX "sap-ipv6", VLC_FALSE);95 add_suppressed_bool( SOUT_CFG_PREFIX "sap-ipv6" ); 96 96 97 97 add_bool( SOUT_CFG_PREFIX "slp", 0, NULL, SLP_TEXT, SLP_LONGTEXT, VLC_TRUE ); src/misc/configuration.c
r89c43e2 r9b7380f 1552 1552 if( p_conf->psz_current ) 1553 1553 { 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 } 1554 1564 if( !b_ignore_errors ) 1555 1565 {
