Commit 3204d232 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove legacy parameter from add_string()

parent ac90e398
......@@ -299,7 +299,7 @@ enum vlc_module_properties
#define add_usage_hint( text ) \
add_typedesc_inner( CONFIG_HINT_USAGE, text, NULL )
#define add_string( name, value, p_callback, text, longtext, advc ) \
#define add_string( name, value, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_STRING, name, text, longtext, advc, \
value )
......
......@@ -203,9 +203,9 @@ vlc_module_begin ()
false )
change_safe()
# if defined(WIN32) || defined(WINCE)
add_string( "dvb-network-name", NULL, NULL, NAME_TEXT, NAME_LONGTEXT,
add_string( "dvb-network-name", NULL, NAME_TEXT, NAME_LONGTEXT,
true )
add_string( "dvb-create-name", NULL, NULL, CREATE_TEXT,
add_string( "dvb-create-name", NULL, CREATE_TEXT,
CREATE_LONGTEXT, true )
add_integer( "dvb-adapter", -1, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT,
true )
......@@ -223,7 +223,7 @@ vlc_module_begin ()
INVERSION_LONGTEXT, true )
change_integer_list( i_inversion_list, ppsz_inversion_text )
# if defined(WIN32) || defined(WINCE)
add_string( "dvb-polarisation", NULL, NULL, POLARISATION_TEXT,
add_string( "dvb-polarisation", NULL, POLARISATION_TEXT,
POLARISATION_LONGTEXT, false )
change_string_list( ppsz_polar_list, ppsz_polar_text, 0 )
/* Note: Polaristion H = voltage 18; V = voltage 13; */
......@@ -235,7 +235,7 @@ vlc_module_begin ()
ELEVATION_LONGTEXT, true )
add_integer( "dvb-longitude", 0, NULL, LONGITUDE_TEXT,
LONGITUDE_LONGTEXT, true )
add_string( "dvb-range", NULL, NULL, RANGE_TEXT,
add_string( "dvb-range", NULL, RANGE_TEXT,
RANGE_LONGTEXT, true )
/* dvb-range corresponds to the BDA InputRange parameter which is
* used by some drivers to control the diseqc */
......
......@@ -84,7 +84,7 @@ vlc_module_begin ()
change_volatile ()
#ifdef HAVE_LIBCDDB
add_string( "cddb-server", "freedb.freedb.org", NULL, N_( "CDDB Server" ),
add_string( "cddb-server", "freedb.freedb.org", N_( "CDDB Server" ),
N_( "Address of the CDDB server to use." ), true )
add_integer( "cddb-port", 8880, NULL, N_( "CDDB port" ),
N_( "CDDB Server port to use." ), true )
......
......@@ -226,21 +226,21 @@ vlc_module_begin ()
add_integer( CFG_PREFIX "caching", (mtime_t)(0.2*CLOCK_FREQ) / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true )
add_string( CFG_PREFIX "vdev", NULL, NULL, VDEV_TEXT, VDEV_LONGTEXT, false)
add_string( CFG_PREFIX "vdev", NULL, VDEV_TEXT, VDEV_LONGTEXT, false)
change_string_list( ppsz_vdev, ppsz_vdev_text, FindDevicesCallback )
change_action_add( FindDevicesCallback, N_("Refresh list") )
change_action_add( ConfigDevicesCallback, N_("Configure") )
add_string( CFG_PREFIX "adev", NULL, NULL, ADEV_TEXT, ADEV_LONGTEXT, false)
add_string( CFG_PREFIX "adev", NULL, ADEV_TEXT, ADEV_LONGTEXT, false)
change_string_list( ppsz_adev, ppsz_adev_text, FindDevicesCallback )
change_action_add( FindDevicesCallback, N_("Refresh list") )
change_action_add( ConfigDevicesCallback, N_("Configure") )
add_string( CFG_PREFIX "size", NULL, NULL, SIZE_TEXT, SIZE_LONGTEXT, false)
add_string( CFG_PREFIX "size", NULL, SIZE_TEXT, SIZE_LONGTEXT, false)
add_string( CFG_PREFIX "aspect-ratio", "4:3", NULL, ASPECT_TEXT, ASPECT_LONGTEXT, false)
add_string( CFG_PREFIX "aspect-ratio", "4:3", ASPECT_TEXT, ASPECT_LONGTEXT, false)
add_string( CFG_PREFIX "chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, true )
add_string( CFG_PREFIX "chroma", NULL, CHROMA_TEXT, CHROMA_LONGTEXT, true )
add_float( CFG_PREFIX "fps", 0.0f, NULL, FPS_TEXT, FPS_LONGTEXT, true )
......
......@@ -216,7 +216,7 @@ vlc_module_begin ()
add_bool( "dvb-budget-mode", false, NULL, BUDGET_TEXT, BUDGET_LONGTEXT,
true )
/* DVB-S (satellite) */
add_string( "dvb-satellite", NULL, NULL, SATELLITE_TEXT, SATELLITE_LONGTEXT,
add_string( "dvb-satellite", NULL, SATELLITE_TEXT, SATELLITE_LONGTEXT,
true )
add_integer( "dvb-satno", 0, NULL, SATNO_TEXT, SATNO_LONGTEXT,
true )
......@@ -254,21 +254,21 @@ vlc_module_begin ()
#ifdef ENABLE_HTTPD
/* MMI HTTP interface */
set_section( N_("HTTP server" ), 0 )
add_string( "dvb-http-host", NULL, NULL, HOST_TEXT, HOST_LONGTEXT,
add_string( "dvb-http-host", NULL, HOST_TEXT, HOST_LONGTEXT,
true )
add_string( "dvb-http-user", NULL, NULL, USER_TEXT, USER_LONGTEXT,
add_string( "dvb-http-user", NULL, USER_TEXT, USER_LONGTEXT,
true )
add_password( "dvb-http-password", NULL, NULL, PASSWORD_TEXT,
PASSWORD_LONGTEXT, true )
add_string( "dvb-http-acl", NULL, NULL, ACL_TEXT, ACL_LONGTEXT,
add_string( "dvb-http-acl", NULL, ACL_TEXT, ACL_LONGTEXT,
true )
add_string( "dvb-http-intf-cert", NULL, NULL, CERT_TEXT, CERT_LONGTEXT,
add_string( "dvb-http-intf-cert", NULL, CERT_TEXT, CERT_LONGTEXT,
true )
add_string( "dvb-http-intf-key", NULL, NULL, KEY_TEXT, KEY_LONGTEXT,
add_string( "dvb-http-intf-key", NULL, KEY_TEXT, KEY_LONGTEXT,
true )
add_string( "dvb-http-intf-ca", NULL, NULL, CA_TEXT, CA_LONGTEXT,
add_string( "dvb-http-intf-ca", NULL, CA_TEXT, CA_LONGTEXT,
true )
add_string( "dvb-http-intf-crl", NULL, NULL, CRL_TEXT, CRL_LONGTEXT,
add_string( "dvb-http-intf-crl", NULL, CRL_TEXT, CRL_LONGTEXT,
true )
#endif
......
......@@ -76,11 +76,11 @@ vlc_module_begin ()
set_shortname( N_("Directory" ) )
set_description( N_("Directory input") )
set_capability( "access", 55 )
add_string( "recursive", "expand" , NULL, RECURSIVE_TEXT,
add_string( "recursive", "expand" , RECURSIVE_TEXT,
RECURSIVE_LONGTEXT, false )
change_string_list( psz_recursive_list, psz_recursive_list_text, 0 )
add_string( "ignore-filetypes", "m3u,db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv,txt,sub,idx,srt,cue,ssa",
NULL, IGNORE_TEXT, IGNORE_LONGTEXT, false )
IGNORE_TEXT, IGNORE_LONGTEXT, false )
#ifndef HAVE_FDOPENDIR
add_shortcut( "file", "directory", "dir" )
#else
......
......@@ -78,11 +78,11 @@ vlc_module_begin ()
add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "ftp-user", "anonymous", NULL, USER_TEXT, USER_LONGTEXT,
add_string( "ftp-user", "anonymous", USER_TEXT, USER_LONGTEXT,
false )
add_string( "ftp-pwd", "anonymous@example.com", NULL, PASS_TEXT,
add_string( "ftp-pwd", "anonymous@example.com", PASS_TEXT,
PASS_LONGTEXT, false )
add_string( "ftp-account", "anonymous", NULL, ACCOUNT_TEXT,
add_string( "ftp-account", "anonymous", ACCOUNT_TEXT,
ACCOUNT_LONGTEXT, false )
add_shortcut( "ftp" )
set_callbacks( InOpen, InClose )
......
......@@ -112,14 +112,14 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_string( "http-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT,
add_string( "http-proxy", NULL, PROXY_TEXT, PROXY_LONGTEXT,
false )
add_password( "http-proxy-pwd", NULL, NULL,
PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT, false )
add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "http-user-agent", NULL, NULL, NULL, NULL, false )
add_string( "http-user-agent", NULL, NULL, NULL, false )
change_safe()
change_private()
add_bool( "http-reconnect", false, NULL, RECONNECT_TEXT,
......
......@@ -127,14 +127,14 @@ vlc_module_begin()
add_integer("imem-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true)
change_private()
add_string ("imem-get", "0", NULL, GET_TEXT, GET_LONGTEXT, true)
add_string ("imem-get", "0", GET_TEXT, GET_LONGTEXT, true)
change_volatile()
add_string ("imem-release", "0", NULL, RELEASE_TEXT, RELEASE_LONGTEXT, true)
add_string ("imem-release", "0", RELEASE_TEXT, RELEASE_LONGTEXT, true)
change_volatile()
add_string ("imem-cookie", NULL, NULL, COOKIE_TEXT, COOKIE_LONGTEXT, true)
add_string ("imem-cookie", NULL, COOKIE_TEXT, COOKIE_LONGTEXT, true)
change_volatile()
change_safe()
add_string ("imem-data", "0", NULL, DATA_TEXT, DATA_LONGTEXT, true)
add_string ("imem-data", "0", DATA_TEXT, DATA_LONGTEXT, true)
change_volatile()
add_integer("imem-id", -1, NULL, ID_TEXT, ID_LONGTEXT, true)
......@@ -147,10 +147,10 @@ vlc_module_begin()
change_integer_list(cat_values, cat_texts)
change_private()
change_safe()
add_string ("imem-codec", NULL, NULL, CODEC_TEXT, CODEC_LONGTEXT, true)
add_string ("imem-codec", NULL, CODEC_TEXT, CODEC_LONGTEXT, true)
change_private()
change_safe()
add_string( "imem-language", NULL, NULL, LANGUAGE_TEXT, LANGUAGE_LONGTEXT, false)
add_string( "imem-language", NULL, LANGUAGE_TEXT, LANGUAGE_LONGTEXT, false)
change_private()
change_safe()
......@@ -167,10 +167,10 @@ vlc_module_begin()
add_integer("imem-height", 0, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT, true)
change_private()
change_safe()
add_string ("imem-dar", NULL, NULL, DAR_TEXT, DAR_LONGTEXT, true)
add_string ("imem-dar", NULL, DAR_TEXT, DAR_LONGTEXT, true)
change_private()
change_safe()
add_string ("imem-fps", NULL, NULL, FPS_TEXT, FPS_LONGTEXT, true)
add_string ("imem-fps", NULL, FPS_TEXT, FPS_LONGTEXT, true)
change_private()
change_safe()
......
......@@ -85,7 +85,7 @@ vlc_module_begin ()
add_bool( "mms-all", false, NULL, ALL_TEXT, ALL_LONGTEXT, true )
add_integer( "mms-maxbitrate", 0, NULL, BITRATE_TEXT, BITRATE_LONGTEXT ,
false )
add_string( "mmsh-proxy", NULL, NULL, PROXY_TEXT, PROXY_LONGTEXT,
add_string( "mmsh-proxy", NULL, PROXY_TEXT, PROXY_LONGTEXT,
false )
add_shortcut( "mms", "mmsu", "mmst", "mmsh", "http" )
......
......@@ -134,9 +134,9 @@ vlc_module_begin ()
add_integer( "pvr-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, true )
add_string( "pvr-device", "/dev/video0", NULL, DEVICE_TEXT,
add_string( "pvr-device", "/dev/video0", DEVICE_TEXT,
DEVICE_LONGTEXT, false )
add_string( "pvr-radio-device", "/dev/radio0", NULL, RADIO_DEVICE_TEXT,
add_string( "pvr-radio-device", "/dev/radio0", RADIO_DEVICE_TEXT,
RADIO_DEVICE_LONGTEXT, false )
add_integer( "pvr-norm", V4L2_STD_UNKNOWN , NULL, NORM_TEXT,
NORM_LONGTEXT, false )
......
......@@ -66,9 +66,9 @@ vlc_module_begin ()
add_integer( "rtmp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, true )
add_string( "rtmp-swfurl", "file:///player.swf", NULL, SWFURL_TEXT,
add_string( "rtmp-swfurl", "file:///player.swf", SWFURL_TEXT,
SWFURL_LONGTEXT, true )
add_string( "rtmp-pageurl", "file:///player.htm", NULL, PAGEURL_TEXT,
add_string( "rtmp-pageurl", "file:///player.htm", PAGEURL_TEXT,
PAGEURL_LONGTEXT, true )
set_capability( "access", 0 )
......
......@@ -98,9 +98,9 @@ vlc_module_begin ()
change_integer_range (0, 65535)
change_safe ()
#ifdef HAVE_SRTP
add_string ("srtp-key", "", NULL,
add_string ("srtp-key", "",
SRTP_KEY_TEXT, SRTP_KEY_LONGTEXT, false)
add_string ("srtp-salt", "", NULL,
add_string ("srtp-salt", "",
SRTP_SALT_TEXT, SRTP_SALT_LONGTEXT, false)
#endif
add_integer ("rtp-max-src", 1, NULL, RTP_MAX_SRC_TEXT,
......
......@@ -83,11 +83,11 @@ vlc_module_begin ()
add_integer( "smb-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "smb-user", NULL, NULL, USER_TEXT, USER_LONGTEXT,
add_string( "smb-user", NULL, USER_TEXT, USER_LONGTEXT,
false )
add_password( "smb-pwd", NULL, NULL, PASS_TEXT,
PASS_LONGTEXT, false )
add_string( "smb-domain", NULL, NULL, DOMAIN_TEXT,
add_string( "smb-domain", NULL, DOMAIN_TEXT,
DOMAIN_LONGTEXT, false )
add_shortcut( "smb" )
set_callbacks( Open, Close )
......
......@@ -284,7 +284,7 @@ vlc_module_begin ()
add_integer( CFG_PREFIX "standard", 0, NULL, STANDARD_TEXT,
STANDARD_LONGTEXT, false )
change_integer_list( i_standards_list, psz_standards_list_text )
add_string( CFG_PREFIX "chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT,
add_string( CFG_PREFIX "chroma", NULL, CHROMA_TEXT, CHROMA_LONGTEXT,
true )
add_integer( CFG_PREFIX "input", 0, NULL, INPUT_TEXT, INPUT_LONGTEXT,
true )
......@@ -297,7 +297,7 @@ vlc_module_begin ()
WIDTH_LONGTEXT, true )
add_integer( CFG_PREFIX "height", DEFAULT_HEIGHT, NULL, HEIGHT_TEXT,
HEIGHT_LONGTEXT, true )
add_string( CFG_PREFIX "aspect-ratio", "4:3", NULL, ASPECT_TEXT,
add_string( CFG_PREFIX "aspect-ratio", "4:3", ASPECT_TEXT,
ASPECT_LONGTEXT, true )
add_float( CFG_PREFIX "fps", 0, NULL, FPS_TEXT, FPS_LONGTEXT, true )
add_integer( CFG_PREFIX "caching", 50 /* ms */, NULL,
......@@ -366,7 +366,7 @@ vlc_module_begin ()
AUDIO_TREBLE_LONGTEXT, true )
add_integer( CFG_PREFIX "audio-loudness", -1, NULL, AUDIO_LOUDNESS_TEXT,
AUDIO_LOUDNESS_LONGTEXT, true )
add_string( CFG_PREFIX "set-ctrls", NULL, NULL, S_CTRLS_TEXT,
add_string( CFG_PREFIX "set-ctrls", NULL, S_CTRLS_TEXT,
S_CTRLS_LONGTEXT, true )
add_obsolete_string( CFG_PREFIX "dev" )
......
......@@ -121,15 +121,11 @@ vlc_module_begin ()
"Media Info. Shows for example playback control navigation."),
false )
add_string( MODULE_STRING "-author-format",
"%v - %F disc %c of %C",
NULL,
add_string( MODULE_STRING "-author-format", "%v - %F disc %c of %C", NULL,
N_("Format to use in the playlist's \"author\" field."),
VCD_TITLE_FMT_LONGTEXT, true )
add_string( MODULE_STRING "-title-format",
"%I %N %L%S - %M %A %v - disc %c of %C %F",
NULL,
add_string( MODULE_STRING "-title-format", "%I %N %L%S - %M %A %v - disc %c of %C %F", NULL,
N_("Format to use in the playlist's \"title\" field."),
VCD_TITLE_FMT_LONGTEXT, false )
......
......@@ -98,19 +98,19 @@ vlc_module_begin ()
add_shortcut( "http", "https", "mmsh" )
set_category( CAT_SOUT )
set_subcategory( SUBCAT_SOUT_ACO )
add_string( SOUT_CFG_PREFIX "user", "", NULL,
add_string( SOUT_CFG_PREFIX "user", "",
USER_TEXT, USER_LONGTEXT, true )
add_password( SOUT_CFG_PREFIX "pwd", "", NULL,
PASS_TEXT, PASS_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "mime", "", NULL,
add_string( SOUT_CFG_PREFIX "mime", "",
MIME_TEXT, MIME_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "cert", "vlc.pem", NULL,
add_string( SOUT_CFG_PREFIX "cert", "vlc.pem",
CERT_TEXT, CERT_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "key", NULL, NULL,
add_string( SOUT_CFG_PREFIX "key", NULL,
KEY_TEXT, KEY_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "ca", NULL, NULL,
add_string( SOUT_CFG_PREFIX "ca", NULL,
CA_TEXT, CA_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "crl", NULL, NULL,
add_string( SOUT_CFG_PREFIX "crl", NULL,
CRL_TEXT, CRL_LONGTEXT, true )
#if 0 //def HAVE_AVAHI_CLIENT
add_bool( SOUT_CFG_PREFIX "bonjour", false, NULL,
......
......@@ -95,9 +95,9 @@ vlc_module_begin ()
DELSEGS_TEXT, DELSEGS_LONGTEXT, true )
add_bool( SOUT_CFG_PREFIX "ratecontrol", false, NULL,
RATECONTROL_TEXT, RATECONTROL_TEXT, true )
add_string( SOUT_CFG_PREFIX "index", NULL, NULL,
add_string( SOUT_CFG_PREFIX "index", NULL,
INDEX_TEXT, INDEX_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "index-url", NULL, NULL,
add_string( SOUT_CFG_PREFIX "index-url", NULL,
INDEXURL_TEXT, INDEXURL_LONGTEXT, true )
set_callbacks( Open, Close )
vlc_module_end ()
......
......@@ -113,24 +113,23 @@ vlc_module_begin ()
set_category( CAT_SOUT )
set_subcategory( SUBCAT_SOUT_ACO )
add_shortcut( "shout" )
add_string( SOUT_CFG_PREFIX "name", "VLC media player - Live stream", NULL,
add_string( SOUT_CFG_PREFIX "name", "VLC media player - Live stream",
NAME_TEXT, NAME_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "description",
"Live stream from VLC media player", NULL,
add_string( SOUT_CFG_PREFIX "description", "Live stream from VLC media player", NULL,
DESCRIPTION_TEXT, DESCRIPTION_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "mp3", false, NULL,
MP3_TEXT, MP3_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "genre", "Alternative", NULL,
add_string( SOUT_CFG_PREFIX "genre", "Alternative",
GENRE_TEXT, GENRE_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "url", "http://www.videolan.org/vlc", NULL,
add_string( SOUT_CFG_PREFIX "url", "http://www.videolan.org/vlc",
URL_TEXT, URL_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "bitrate", "", NULL,
add_string( SOUT_CFG_PREFIX "bitrate", "",
BITRATE_TEXT, BITRATE_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "samplerate", "", NULL,
add_string( SOUT_CFG_PREFIX "samplerate", "",
SAMPLERATE_TEXT, SAMPLERATE_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "channels", "", NULL,
add_string( SOUT_CFG_PREFIX "channels", "",
CHANNELS_TEXT, CHANNELS_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "quality", "", NULL,
add_string( SOUT_CFG_PREFIX "quality", "",
QUALITY_TEXT, QUALITY_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "public", false, NULL,
PUBLIC_TEXT, PUBLIC_LONGTEXT, true )
......
......@@ -87,7 +87,7 @@ vlc_module_begin ()
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_AFILTER )
add_string( CFG_PREFIX "address", "localhost", NULL, ADDRESS_TEXT, ADDRESS_LONGTEXT, false )
add_string( CFG_PREFIX "address", "localhost", ADDRESS_TEXT, ADDRESS_LONGTEXT, false )
add_integer( CFG_PREFIX "port", 12345, NULL, PORT_TEXT, PORT_LONGTEXT, false )
add_integer( CFG_PREFIX "bargraph", 1, NULL, BARGRAPH_TEXT, BARGRAPH_LONGTEXT, false )
add_integer( CFG_PREFIX "bargraph_repetition", 4, NULL, BARGRAPH_REPETITION_TEXT, BARGRAPH_REPETITION_LONGTEXT, false )
......
......@@ -78,10 +78,10 @@ vlc_module_begin ()
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_AFILTER )
add_string( "equalizer-preset", "flat", NULL, PRESET_TEXT,
add_string( "equalizer-preset", "flat", PRESET_TEXT,
PRESET_LONGTEXT, false )
change_string_list( preset_list, preset_list_text, 0 )
add_string( "equalizer-bands", NULL, NULL, BANDS_TEXT,
add_string( "equalizer-bands", NULL, BANDS_TEXT,
BANDS_LONGTEXT, true )
add_bool( "equalizer-2pass", false, NULL, TWOPASS_TEXT,
TWOPASS_LONGTEXT, true )
......
......@@ -110,7 +110,7 @@ vlc_module_begin ()
set_description( N_("ALSA audio output") )
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_AOUT )
add_string( "alsa-audio-device", DEFAULT_ALSA_DEVICE, NULL,
add_string( "alsa-audio-device", DEFAULT_ALSA_DEVICE,
N_("ALSA Device Name"), NULL, false )
add_deprecated_alias( "alsadev" ) /* deprecated since 0.9.3 */
change_string_list( ppsz_devices, ppsz_devices_text, FindDevicesCallback )
......
......@@ -132,7 +132,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_AUDIO_AOUT )
add_shortcut( "directx", "directsound" )
add_string( "directx-audio-device-name", "default", NULL,
add_string( "directx-audio-device-name", "default",
DEVICE_TEXT, DEVICE_LONGTEXT, false )
add_deprecated_alias( "directx-audio-device" ) /* Since 1.1.0 */
change_string_list( ppsz_adev, ppsz_adev_text, ReloadDirectXDevices )
......@@ -140,7 +140,7 @@ vlc_module_begin ()
change_need_restart ()
add_bool( "directx-audio-float32", false, NULL, FLOAT_TEXT,
FLOAT_LONGTEXT, true )
add_string( "directx-audio-speaker", "Windows default", NULL,
add_string( "directx-audio-speaker", "Windows default",
SPEAKER_TEXT, SPEAKER_LONGTEXT, true )
change_string_list( speaker_list, 0, 0 )
change_need_restart ()
......
......@@ -113,7 +113,7 @@ vlc_module_begin ()
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_AOUT )
add_string( "audiofile-format", "s16", NULL,
add_string( "audiofile-format", "s16",
FORMAT_TEXT, FORMAT_LONGTEXT, true )
change_string_list( format_list, 0, 0 )
add_integer( "audiofile-channels", 0, NULL,
......
......@@ -89,7 +89,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_AUDIO_AOUT )
add_bool( AUTO_CONNECT_OPTION, false, NULL, AUTO_CONNECT_TEXT,
AUTO_CONNECT_LONGTEXT, true )
add_string( CONNECT_REGEX_OPTION, NULL, NULL, CONNECT_REGEX_TEXT,
add_string( CONNECT_REGEX_OPTION, NULL, CONNECT_REGEX_TEXT,
CONNECT_REGEX_LONGTEXT, true )
set_callbacks( Open, Close )
vlc_module_end ()
......
......@@ -101,7 +101,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_AUDIO_AOUT )
add_bool( "waveout-float32", true, NULL, FLOAT_TEXT, FLOAT_LONGTEXT, true )
add_string( "waveout-audio-device", "wavemapper", NULL,
add_string( "waveout-audio-device", "wavemapper",
DEVICE_TEXT, DEVICE_LONG, false )
add_deprecated_alias( "waveout-dev" ) /* deprecated since 0.9.3 */
change_string_list( ppsz_adev, ppsz_adev_text, ReloadWaveoutDevices )
......
......@@ -153,7 +153,7 @@ vlc_module_begin ()
set_capability( "encoder", 100 )
set_callbacks( OpenEncoder, CloseEncoder )
add_string( ENC_CFG_PREFIX "hq", "simple", NULL, ENC_HQ_TEXT,
add_string( ENC_CFG_PREFIX "hq", "simple", ENC_HQ_TEXT,
ENC_HQ_LONGTEXT, false )
change_string_list( enc_hq_list, enc_hq_list_text, 0 )
add_integer( ENC_CFG_PREFIX "keyint", 0, NULL, ENC_KEYINT_TEXT,
......@@ -204,7 +204,7 @@ vlc_module_begin ()
ENC_CHROMA_ELIM_TEXT, ENC_CHROMA_ELIM_LONGTEXT, true )
/* Audio AAC encoder profile */
add_string( ENC_CFG_PREFIX "aac-profile", "low", NULL,
add_string( ENC_CFG_PREFIX "aac-profile", "low",
ENC_PROFILE_TEXT, ENC_PROFILE_LONGTEXT, true )
#endif /* ENABLE_SOUT */
......
......@@ -219,7 +219,7 @@ vlc_module_begin()
add_bool( ENC_CFG_PREFIX ENC_LOSSLESS, false, NULL,
ENC_LOSSLESS_TEXT, ENC_LOSSLESS_LONGTEXT, false )
add_string( ENC_CFG_PREFIX ENC_PREFILTER, "diaglp", NULL,
add_string( ENC_CFG_PREFIX ENC_PREFILTER, "diaglp",
ENC_PREFILTER_TEXT, ENC_PREFILTER_LONGTEXT, false )
change_string_list( enc_prefilter_list, enc_prefilter_list_text, 0 );
......@@ -227,7 +227,7 @@ vlc_module_begin()
ENC_PREFILTER_STRENGTH_TEXT, ENC_PREFILTER_STRENGTH_LONGTEXT, false )
change_integer_range(0, 10);
add_string( ENC_CFG_PREFIX ENC_CHROMAFMT, "420", NULL,
add_string( ENC_CFG_PREFIX ENC_CHROMAFMT, "420",
ENC_CHROMAFMT_TEXT, ENC_CHROMAFMT_LONGTEXT, false )
change_string_list( enc_chromafmt_list, enc_chromafmt_list_text, 0 );
......@@ -239,11 +239,11 @@ vlc_module_begin()
ENC_L1NUM_TEXT, ENC_L1NUM_LONGTEXT, false )
change_integer_range(-1, INT_MAX);
add_string( ENC_CFG_PREFIX ENC_CODINGMODE, "auto", NULL,
add_string( ENC_CFG_PREFIX ENC_CODINGMODE, "auto",
ENC_CODINGMODE_TEXT, ENC_CODINGMODE_LONGTEXT, false )
change_string_list( enc_codingmode_list, enc_codingmode_list_text, 0 );
add_string( ENC_CFG_PREFIX ENC_MVPREC, "1/2", NULL,
add_string( ENC_CFG_PREFIX ENC_MVPREC, "1/2",
ENC_MVPREC_TEXT, ENC_MVPREC_LONGTEXT, false )
change_string_list( enc_mvprec_list, enc_mvprec_list, 0 );
......@@ -268,7 +268,7 @@ vlc_module_begin()
ENC_MCBLK_YBLEN_TEXT, ENC_MCBLK_YBLEN_LONGTEXT, true )
change_integer_range(-1, INT_MAX);
add_string( ENC_CFG_PREFIX ENC_ME_SIMPLESEARCH, "", NULL,
add_string( ENC_CFG_PREFIX ENC_ME_SIMPLESEARCH, "",
ENC_ME_SIMPLESEARCH_TEXT, ENC_ME_SIMPLESEARCH_LONGTEXT, false )
#if DIRAC_RESEARCH_VERSION_ATLEAST(1,0,1)
......
......@@ -82,10 +82,10 @@ vlc_module_begin()
add_integer( "invmem-width", 0, NULL, T_WIDTH, LT_WIDTH, false )
add_integer( "invmem-height", 0, NULL, T_HEIGHT, LT_HEIGHT, false )
add_string( "invmem-lock", "0", NULL, T_LOCK, LT_LOCK, true )
add_string( "invmem-unlock", "0", NULL, T_UNLOCK, LT_UNLOCK, true )
add_string( "invmem-data", "0", NULL, T_DATA, LT_DATA, true )
add_string( "invmem-chroma", "RV24", NULL, T_CHROMA, LT_CHROMA, true)
add_string( "invmem-lock", "0", T_LOCK, LT_LOCK, true )
add_string( "invmem-unlock", "0", T_UNLOCK, LT_UNLOCK, true )
add_string( "invmem-data", "0", T_DATA, LT_DATA, true )
add_string( "invmem-chroma", "RV24", T_CHROMA, LT_CHROMA, true)
vlc_module_end()
......
......@@ -289,8 +289,7 @@ vlc_module_begin ()
true )
set_section( N_("Tiger rendering defaults"), NULL );
add_string( "kate-tiger-default-font-desc",
TIGER_DEFAULT_FONT_DESC_DEFAULT, TigerConfigurationCallback,
add_string( "kate-tiger-default-font-desc", TIGER_DEFAULT_FONT_DESC_DEFAULT, NULL,
TIGER_DEFAULT_FONT_DESC_TEXT, TIGER_DEFAULT_FONT_DESC_LONGTEXT, true);
add_integer_with_range( "kate-tiger-default-font-effect",
TIGER_DEFAULT_FONT_EFFECT_DEFAULT,
......
......@@ -215,7 +215,7 @@ vlc_module_begin ()
add_integer( "subsdec-align", 0, NULL, ALIGN_TEXT, ALIGN_LONGTEXT,
false )
change_integer_list( pi_justification, ppsz_justification_text )
add_string( "subsdec-encoding", "", NULL,
add_string( "subsdec-encoding", "",
ENCODING_TEXT, ENCODING_LONGTEXT, false )
change_string_list( ppsz_encodings, ppsz_encoding_names, 0 )
add_bool( "subsdec-autodetect-utf8", true, NULL,
......
......@@ -424,7 +424,7 @@ vlc_module_begin ()
MIN_KEYINT_LONGTEXT, false )
#if X264_BUILD >= 102
add_string( SOUT_CFG_PREFIX "opengop", "none", NULL, OPENGOP_TEXT,
add_string( SOUT_CFG_PREFIX "opengop", "none", OPENGOP_TEXT,
OPENGOP_LONGTEXT,false )
change_string_list( x264_open_gop_names, x264_open_gop_names, 0 );
#endif
......@@ -448,10 +448,10 @@ vlc_module_begin ()
change_integer_range( -100, 100 )
#if X264_BUILD >= 87
add_string( SOUT_CFG_PREFIX "bpyramid", "normal", NULL, BPYRAMID_TEXT,
add_string( SOUT_CFG_PREFIX "bpyramid", "normal", BPYRAMID_TEXT,
BPYRAMID_LONGTEXT, false )
#else
add_string( SOUT_CFG_PREFIX "bpyramid", "none", NULL, BPYRAMID_TEXT,
add_string( SOUT_CFG_PREFIX "bpyramid", "none", BPYRAMID_TEXT,
BPYRAMID_LONGTEXT, false )
#endif
change_string_list( bpyramid_list, bpyramid_list, 0 );
......@@ -466,18 +466,18 @@ vlc_module_begin ()
add_bool( SOUT_CFG_PREFIX "nf", false, NULL, NF_TEXT,
NF_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "deblock", "0:0", NULL, FILTER_TEXT,
add_string( SOUT_CFG_PREFIX "deblock", "0:0", FILTER_TEXT,
FILTER_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "psy-rd", "1.0:0.0", NULL, PSY_RD_TEXT,
add_string( SOUT_CFG_PREFIX "psy-rd", "1.0:0.0", PSY_RD_TEXT,
PSY_RD_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "psy", true, NULL, PSY_TEXT, PSY_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "level", "0", NULL, LEVEL_TEXT,
add_string( SOUT_CFG_PREFIX "level", "0", LEVEL_TEXT,
LEVEL_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "profile", "high", NULL, PROFILE_TEXT,
add_string( SOUT_CFG_PREFIX "profile", "high", PROFILE_TEXT,
PROFILE_LONGTEXT, false )
change_string_list( x264_profile_names, x264_profile_names, 0 );
......@@ -489,7 +489,7 @@ vlc_module_begin ()
add_integer( SOUT_CFG_PREFIX "slice-max-mbs", 0, NULL, SLICE_MAX_MBS, SLICE_MAX_MBS_LONGTEXT, false )
#if X264_BUILD >= 89
add_string( SOUT_CFG_PREFIX "hrd", "none", NULL, HRD_TEXT, HRD_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "hrd", "none", HRD_TEXT, HRD_LONGTEXT, false )
change_string_list( x264_nal_hrd_names, x264_nal_hrd_names, 0 );
#endif
......@@ -564,11 +564,11 @@ vlc_module_begin ()
/* Analysis */
/* x264 partitions = none (default). set at least "normal" mode. */
add_string( SOUT_CFG_PREFIX "partitions", "normal", NULL, ANALYSE_TEXT,
add_string( SOUT_CFG_PREFIX "partitions", "normal", ANALYSE_TEXT,
ANALYSE_LONGTEXT, false )
change_string_list( enc_analyse_list, enc_analyse_list_text, 0 );
add_string( SOUT_CFG_PREFIX "direct", "spatial", NULL, DIRECT_PRED_TEXT,
add_string( SOUT_CFG_PREFIX "direct", "spatial", DIRECT_PRED_TEXT,
DIRECT_PRED_LONGTEXT, false )
change_string_list( direct_pred_list, direct_pred_list_text, 0 );
......@@ -583,7 +583,7 @@ vlc_module_begin ()
WEIGHTP_LONGTEXT, false )
change_integer_range( 0, 2 )
add_string( SOUT_CFG_PREFIX "me", "hex", NULL, ME_TEXT,
add_string( SOUT_CFG_PREFIX "me", "hex", ME_TEXT,
ME_LONGTEXT, false )
change_string_list( enc_me_list, enc_me_list_text, 0 );
......@@ -672,12 +672,12 @@ vlc_module_begin ()
add_bool( SOUT_CFG_PREFIX "verbose", false, NULL, VERBOSE_TEXT,
VERBOSE_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "stats", "x264_2pass.log", NULL, STATS_TEXT,
add_string( SOUT_CFG_PREFIX "stats", "x264_2pass.log", STATS_TEXT,
STATS_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "preset", NULL , NULL, PRESET_TEXT , PRESET_TEXT, false )
add_string( SOUT_CFG_PREFIX "preset", NULL , PRESET_TEXT , PRESET_TEXT, false )
change_string_list( x264_preset_names, x264_preset_names, 0 );
add_string( SOUT_CFG_PREFIX "tune", NULL , NULL, TUNE_TEXT, TUNE_TEXT, false )
add_string( SOUT_CFG_PREFIX "tune", NULL , TUNE_TEXT, TUNE_TEXT, false )
change_string_list( x264_tune_names, x264_tune_names, 0 );
vlc_module_end ()
......
......@@ -102,7 +102,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INTERFACE_CONTROL )
add_integer( "gestures-threshold", 30, NULL,
THRESHOLD_TEXT, THRESHOLD_LONGTEXT, true )
add_string( "gestures-button", BUTTON_DEFAULT, NULL,
add_string( "gestures-button", BUTTON_DEFAULT,
BUTTON_TEXT, BUTTON_LONGTEXT, false )
change_string_list( button_list, button_list_text, 0 )
set_description( N_("Mouse gestures control interface") )
......
......@@ -70,18 +70,18 @@ vlc_module_begin ()
set_description( N_("HTTP remote control interface") )
set_category( CAT_INTERFACE )