Commit 36376340 authored by Rémi Duraffort's avatar Rémi Duraffort

lua: factorize add_shortcut calls.

parent d965527a
...@@ -113,8 +113,7 @@ vlc_module_begin () ...@@ -113,8 +113,7 @@ vlc_module_begin ()
add_bool ( "http-index", false, INDEX_TEXT, INDEX_LONGTEXT, true ) add_bool ( "http-index", false, INDEX_TEXT, INDEX_LONGTEXT, true )
set_capability( "interface", 0 ) set_capability( "interface", 0 )
set_callbacks( Open_LuaHTTP, Close_LuaIntf ) set_callbacks( Open_LuaHTTP, Close_LuaIntf )
add_shortcut( "luahttp" ) add_shortcut( "luahttp", "http" )
add_shortcut( "http" )
add_submodule () add_submodule ()
set_section( N_("Lua CLI"), 0 ) set_section( N_("Lua CLI"), 0 )
...@@ -122,11 +121,10 @@ vlc_module_begin () ...@@ -122,11 +121,10 @@ vlc_module_begin ()
add_string( "cli-host", NULL, CLIHOST_TEXT, CLIHOST_LONGTEXT, true ) add_string( "cli-host", NULL, CLIHOST_TEXT, CLIHOST_LONGTEXT, true )
set_capability( "interface", 25 ) set_capability( "interface", 25 )
set_callbacks( Open_LuaCLI, Close_LuaIntf ) set_callbacks( Open_LuaCLI, Close_LuaIntf )
add_shortcut( "luacli" )
add_shortcut( "luarc" )
#ifndef WIN32 #ifndef WIN32
add_shortcut( "cli" ) add_shortcut( "luacli", "luarc", "cli", "rc" )
add_shortcut( "rc" ) #else
add_shortcut( "luacli", "luarc" )
#endif #endif
add_submodule () add_submodule ()
...@@ -140,8 +138,7 @@ vlc_module_begin () ...@@ -140,8 +138,7 @@ vlc_module_begin ()
TELNETPWD_LONGTEXT, true ) TELNETPWD_LONGTEXT, true )
set_capability( "interface", 0 ) set_capability( "interface", 0 )
set_callbacks( Open_LuaTelnet, Close_LuaIntf ) set_callbacks( Open_LuaTelnet, Close_LuaIntf )
add_shortcut( "luatelnet" ) add_shortcut( "luatelnet", "telnet" )
add_shortcut( "telnet" )
/* add_shortcut( "luahotkeys" ) */ /* add_shortcut( "luahotkeys" ) */
/* add_shortcut( "hotkeys" ) */ /* add_shortcut( "hotkeys" ) */
......
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