[vlc-commits] Lua: provide descriptions for submodules

Jean-Baptiste Kempf git at videolan.org
Wed Feb 1 22:42:36 CET 2012


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

Lua: provide descriptions for submodules
(cherry picked from commit b2393f00b7518b98de92537c1fbb481be97e35ac)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 c3d427d..30d4039 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -92,10 +92,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" )
@@ -107,12 +106,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" )
@@ -131,6 +132,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" ) */
@@ -163,6 +165,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