[vlc-commits] lua: factorize add_shortcut calls.

Rémi Duraffort git at videolan.org
Sun Jun 26 23:36:16 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jun 26 22:40:51 2011 +0200| [36376340c7cf542c11ab4373e95f2c4af51660c0] | committer: Rémi Duraffort

lua: factorize add_shortcut calls.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36376340c7cf542c11ab4373e95f2c4af51660c0
---

 modules/lua/vlc.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index df8ebd2..ca20d7a 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -113,8 +113,7 @@ vlc_module_begin ()
             add_bool   ( "http-index", false, INDEX_TEXT, INDEX_LONGTEXT, true )
         set_capability( "interface", 0 )
         set_callbacks( Open_LuaHTTP, Close_LuaIntf )
-        add_shortcut( "luahttp" )
-        add_shortcut( "http" )
+        add_shortcut( "luahttp", "http" )
 
     add_submodule ()
         set_section( N_("Lua CLI"), 0 )
@@ -122,11 +121,10 @@ vlc_module_begin ()
             add_string( "cli-host", NULL, CLIHOST_TEXT, CLIHOST_LONGTEXT, true )
         set_capability( "interface", 25 )
         set_callbacks( Open_LuaCLI, Close_LuaIntf )
-        add_shortcut( "luacli" )
-        add_shortcut( "luarc" )
 #ifndef WIN32
-        add_shortcut( "cli" )
-        add_shortcut( "rc" )
+        add_shortcut( "luacli", "luarc", "cli", "rc" )
+#else
+        add_shortcut( "luacli", "luarc" )
 #endif
 
     add_submodule ()
@@ -140,8 +138,7 @@ vlc_module_begin ()
                           TELNETPWD_LONGTEXT, true )
         set_capability( "interface", 0 )
         set_callbacks( Open_LuaTelnet, Close_LuaIntf )
-        add_shortcut( "luatelnet" )
-        add_shortcut( "telnet" )
+        add_shortcut( "luatelnet", "telnet" )
 
         /* add_shortcut( "luahotkeys" ) */
         /* add_shortcut( "hotkeys" ) */



More information about the vlc-commits mailing list