Commit 776811e9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

config: remove advanced from add_password()

parent 85a0ba10
......@@ -370,7 +370,7 @@ VLC_METADATA_EXPORTS
#define add_string( name, value, text, longtext, advc ) \
add_string_inner(CONFIG_ITEM_STRING, name, text, longtext, value)
#define add_password( name, value, text, longtext, advc ) \
#define add_password(name, value, text, longtext) \
add_string_inner(CONFIG_ITEM_PASSWORD, name, text, longtext, value)
#define add_loadfile( name, value, text, longtext, advc ) \
......
......@@ -72,7 +72,7 @@ vlc_module_begin ()
set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS )
add_string( "smb-user", NULL, SMB_USER_TEXT, SMB_USER_LONGTEXT, false )
add_password( "smb-pwd", NULL, SMB_PASS_TEXT, SMB_PASS_LONGTEXT, false )
add_password("smb-pwd", NULL, SMB_PASS_TEXT, SMB_PASS_LONGTEXT)
add_string( "smb-domain", NULL, SMB_DOMAIN_TEXT, SMB_DOMAIN_LONGTEXT, false )
add_shortcut( "smb", "cifs" )
set_callbacks( Open, Close )
......
......@@ -134,8 +134,7 @@ vlc_module_begin ()
add_string( "rtsp-user", NULL, USER_TEXT,
USER_LONGTEXT, true )
change_safe()
add_password( "rtsp-pwd", NULL, PASS_TEXT,
PASS_LONGTEXT, true )
add_password("rtsp-pwd", NULL, PASS_TEXT, PASS_LONGTEXT)
add_integer( "rtsp-frame-buffer-size", DEFAULT_FRAME_BUFFER_SIZE,
FRAME_BUFFER_SIZE_TEXT, FRAME_BUFFER_SIZE_LONGTEXT,
true )
......
......@@ -91,7 +91,7 @@ vlc_module_begin()
add_string( CFG_PREFIX "user", NULL, USER_TEXT, USER_LONGTEXT, false )
change_safe()
add_password( CFG_PREFIX "password", NULL, PASS_TEXT, PASS_LONGTEXT, false )
add_password(CFG_PREFIX "password", NULL, PASS_TEXT, PASS_LONGTEXT)
change_safe()
add_float( CFG_PREFIX "fps", 5, RDP_FPS, RDP_FPS_LONGTEXT, true )
......
......@@ -371,7 +371,7 @@ vlc_module_begin()
set_category(CAT_INPUT)
set_subcategory(SUBCAT_INPUT_ACCESS)
add_string("smb-user", NULL, SMB_USER_TEXT, SMB_USER_LONGTEXT, false)
add_password("smb-pwd", NULL, SMB_PASS_TEXT, SMB_PASS_LONGTEXT, false)
add_password("smb-pwd", NULL, SMB_PASS_TEXT, SMB_PASS_LONGTEXT)
add_string("smb-domain", NULL, SMB_DOMAIN_TEXT, SMB_DOMAIN_LONGTEXT, false)
add_shortcut("smb")
set_callbacks(Open, Close)
......
......@@ -67,7 +67,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "sftp-port", 22, PORT_TEXT, PORT_LONGTEXT, true )
add_string( "sftp-user", NULL, USER_TEXT, USER_LONGTEXT, false )
add_password( "sftp-pwd", NULL, PASS_TEXT, PASS_LONGTEXT, false )
add_password("sftp-pwd", NULL, PASS_TEXT, PASS_LONGTEXT)
add_shortcut( "sftp" )
set_callbacks( Open, Close )
vlc_module_end ()
......
......@@ -393,7 +393,7 @@ vlc_module_begin ()
add_integer( "poll-timeout", SRT_DEFAULT_POLL_TIMEOUT,
N_("Return poll wait after timeout milliseconds (-1 = infinite)"), NULL, true )
add_integer( "latency", SRT_DEFAULT_LATENCY, N_("SRT latency (ms)"), NULL, true )
add_password( "passphrase", "", N_("Password for stream encryption"), NULL, false )
add_password("passphrase", "", N_("Password for stream encryption"), NULL)
add_integer( "key-length", SRT_DEFAULT_KEY_LENGTH,
SRT_KEY_LENGTH_TEXT, SRT_KEY_LENGTH_TEXT, false )
change_integer_list( srt_key_lengths, srt_key_length_names )
......
......@@ -378,7 +378,7 @@ vlc_module_begin()
set_category(CAT_INPUT)
set_subcategory(SUBCAT_INPUT_ACCESS)
add_string("smb-user", NULL, SMB_USER_TEXT, SMB_USER_LONGTEXT, false)
add_password("smb-pwd", NULL, SMB_PASS_TEXT, SMB_PASS_LONGTEXT, false)
add_password("smb-pwd", NULL, SMB_PASS_TEXT, SMB_PASS_LONGTEXT)
add_string("smb-domain", NULL, SMB_DOMAIN_TEXT, SMB_DOMAIN_LONGTEXT, false)
add_shortcut("smb")
set_callbacks(Open, Close)
......
......@@ -84,7 +84,7 @@ vlc_module_begin()
add_string( CFG_PREFIX "user", NULL, RFB_USER, RFB_USER, false )
change_safe()
add_password( CFG_PREFIX "password", NULL, RFB_PASSWORD, RFB_PASSWORD, false )
add_password(CFG_PREFIX "password", NULL, RFB_PASSWORD, RFB_PASSWORD)
change_safe()
add_loadfile( CFG_PREFIX "x509-ca", NULL, RFB_CA_TEXT, RFB_CA_LONGTEXT, true )
change_safe()
......
......@@ -72,8 +72,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_SOUT_ACO )
add_string( SOUT_CFG_PREFIX "user", "",
USER_TEXT, USER_LONGTEXT, true )
add_password( SOUT_CFG_PREFIX "pwd", "",
PASS_TEXT, PASS_LONGTEXT, true )
add_password(SOUT_CFG_PREFIX "pwd", "", PASS_TEXT, PASS_LONGTEXT)
add_string( SOUT_CFG_PREFIX "mime", "",
MIME_TEXT, MIME_LONGTEXT, true )
add_bool( SOUT_CFG_PREFIX "metacube", false,
......
......@@ -443,7 +443,7 @@ vlc_module_begin()
add_integer( "poll-timeout", SRT_DEFAULT_POLL_TIMEOUT,
N_("Return poll wait after timeout milliseconds (-1 = infinite)"), NULL, true )
add_integer( "latency", SRT_DEFAULT_LATENCY, N_("SRT latency (ms)"), NULL, true )
add_password( "passphrase", "", N_("Password for stream encryption"), NULL, false )
add_password("passphrase", "", N_("Password for stream encryption"), NULL)
add_integer( "key-length", SRT_DEFAULT_KEY_LENGTH,
SRT_KEY_LENGTH_TEXT, SRT_KEY_LENGTH_TEXT, false )
change_integer_list( srt_key_lengths, srt_key_length_names )
......
......@@ -95,7 +95,7 @@ vlc_module_begin ()
add_submodule ()
set_section( N_("Lua HTTP"), 0 )
add_password ( "http-password", NULL, PASS_TEXT, PASS_LONGTEXT, false )
add_password("http-password", NULL, PASS_TEXT, PASS_LONGTEXT)
add_string ( "http-src", NULL, SRC_TEXT, SRC_LONGTEXT, true )
add_bool ( "http-index", false, INDEX_TEXT, INDEX_LONGTEXT, true )
set_capability( "interface", 0 )
......@@ -123,9 +123,8 @@ vlc_module_begin ()
add_integer( "telnet-port", TELNETPORT_DEFAULT, TELNETPORT_TEXT,
TELNETPORT_LONGTEXT, true )
change_integer_range( 1, 65535 )
add_password( "telnet-password", NULL, TELNETPWD_TEXT,
TELNETPWD_LONGTEXT, true )
add_password("telnet-password", NULL, TELNETPWD_TEXT,
TELNETPWD_LONGTEXT)
set_capability( "interface", 0 )
set_callbacks( Open_LuaTelnet, Close_LuaIntf )
set_description( N_("Lua Telnet") )
......
......@@ -132,8 +132,7 @@ vlc_module_begin ()
set_description(N_("Submission of played songs to last.fm"))
add_string("lastfm-username", "",
USERNAME_TEXT, USERNAME_LONGTEXT, false)
add_password("lastfm-password", "",
PASSWORD_TEXT, PASSWORD_LONGTEXT, false)
add_password("lastfm-password", "", PASSWORD_TEXT, PASSWORD_LONGTEXT)
add_string("scrobbler-url", "post.audioscrobbler.com",
URL_TEXT, URL_LONGTEXT, false)
set_capability("interface", 0)
......
......@@ -125,8 +125,8 @@ vlc_module_begin ()
RMTOSD_HOST_LONGTEXT, false )
add_integer_with_range( RMTOSD_CFG "port", 20001, 1, 0xFFFF,
RMTOSD_PORT_TEXT, RMTOSD_PORT_LONGTEXT, false )
add_password( RMTOSD_CFG "password", "", RMTOSD_PASSWORD_TEXT,
RMTOSD_PASSWORD_LONGTEXT, false )
add_password(RMTOSD_CFG "password", "", RMTOSD_PASSWORD_TEXT,
RMTOSD_PASSWORD_LONGTEXT)
add_integer_with_range( RMTOSD_CFG "update", RMTOSD_UPDATE_DEFAULT,
RMTOSD_UPDATE_MIN, RMTOSD_UPDATE_MAX, RMTOSD_UPDATE_TEXT,
RMTOSD_UPDATE_LONGTEXT, true )
......
......@@ -252,8 +252,7 @@ vlc_module_begin ()
RTSP_TIMEOUT_LONGTEXT, true )
add_string( "sout-rtsp-user", "",
RTSP_USER_TEXT, RTSP_USER_LONGTEXT, true )
add_password( "sout-rtsp-pwd", "",
RTSP_PASS_TEXT, RTSP_PASS_LONGTEXT, true )
add_password("sout-rtsp-pwd", "", RTSP_PASS_TEXT, RTSP_PASS_LONGTEXT)
vlc_module_end ()
......
......@@ -1815,8 +1815,7 @@ vlc_module_begin ()
#ifdef _WIN32
add_string( "http-proxy", NULL, PROXY_TEXT, PROXY_LONGTEXT,
false )
add_password( "http-proxy-pwd", NULL,
PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT, false )
add_password("http-proxy-pwd", NULL, PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT)
#else
add_obsolete_string( "http-proxy" )
add_obsolete_string( "http-proxy-pwd" )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment