[vlc-commits] Lua: provide descriptions for submodules

Jean-Baptiste Kempf git at videolan.org
Tue Jan 31 23:44:17 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 31 23:44:03 2012 +0100| [b2393f00b7518b98de92537c1fbb481be97e35ac] | committer: Jean-Baptiste Kempf

Lua: provide descriptions for submodules

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

 modules/lua/vlc.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index d9af3a2..b88d055 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -84,10 +84,9 @@ vlc_module_begin ()
         set_description( N_("Lua interpreter") )
         set_category( CAT_INTERFACE )
         set_subcategory( SUBCAT_INTERFACE_MAIN )
-        add_string( "lua-intf", "dummy",
-                    INTF_TEXT, INTF_LONGTEXT, false )
-        add_string( "lua-config", "",
-                    CONFIG_TEXT, CONFIG_LONGTEXT, false )
+
+        add_string( "lua-intf", "dummy", INTF_TEXT, INTF_LONGTEXT, false )
+        add_string( "lua-config", "", CONFIG_TEXT, CONFIG_LONGTEXT, false )
         set_capability( "interface", 0 )
         set_callbacks( Open_LuaIntf, Close_LuaIntf )
         add_shortcut( "luaintf" )
@@ -99,12 +98,14 @@ vlc_module_begin ()
         set_capability( "interface", 0 )
         set_callbacks( Open_LuaHTTP, Close_LuaIntf )
         add_shortcut( "luahttp", "http" )
+        set_description( N_("Lua HTTP") )
 
     add_submodule ()
         set_section( N_("Lua CLI"), 0 )
             add_string( "rc-host", NULL, RCHOST_TEXT, RCHOST_LONGTEXT, true )
             add_string( "cli-host", NULL, CLIHOST_TEXT, CLIHOST_LONGTEXT, true )
         set_capability( "interface", 25 )
+        set_description( N_("Remote control interface") )
         set_callbacks( Open_LuaCLI, Close_LuaIntf )
 #ifndef WIN32
         add_shortcut( "luacli", "luarc", "cli", "rc" )
@@ -123,6 +124,7 @@ vlc_module_begin ()
                           TELNETPWD_LONGTEXT, true )
         set_capability( "interface", 0 )
         set_callbacks( Open_LuaTelnet, Close_LuaIntf )
+        set_description( N_("Lua Telnet") )
         add_shortcut( "luatelnet", "telnet" )
 
         /* add_shortcut( "luahotkeys" ) */
@@ -155,6 +157,7 @@ vlc_module_begin ()
 
     add_submodule ()
         set_shortname( N_("Lua Extension") )
+        set_description( N_("Lua Extension") )
         add_shortcut( "luaextension" )
         set_capability( "extension", 1 )
         set_callbacks( Open_Extension, Close_Extension )



More information about the vlc-commits mailing list