+ set_shortname( N_("Lua Interface Module") )
+ set_description( N_("Interfaces implemented using lua scripts") )
+ add_shortcut( "luaintf" )
+ add_shortcut( "luahttp" )
+ /* add_shortcut( "http" ) */
+ add_shortcut( "luatelnet" )
+ add_shortcut( "telnet" )
+ add_shortcut( "luahotkeys" )
+ /* add_shortcut( "hotkeys" ) */
+ set_capability( "interface", 0 )
+ set_category( CAT_INTERFACE )
+ set_subcategory( SUBCAT_INTERFACE_CONTROL )
+ add_string( "lua-intf", "dummy",
+ INTF_TEXT, INTF_LONGTEXT, false )
+ add_string( "lua-config", "",
+ CONFIG_TEXT, CONFIG_LONGTEXT, false )
+ set_section( N_("Lua HTTP"), 0 )
+ add_string ( "http-host", NULL, HOST_TEXT, HOST_LONGTEXT, true )
+ add_string ( "http-src", NULL, SRC_TEXT, SRC_LONGTEXT, true )
+ add_bool ( "http-index", false, INDEX_TEXT, INDEX_LONGTEXT, true )
+ set_section( N_("Lua RC"), 0 )
+ add_string( "rc-host", NULL, RCHOST_TEXT, RCHOST_LONGTEXT, true )
+ set_section( N_("Lua Telnet"), 0 )
+ add_string( "telnet-host", "localhost", TELNETHOST_TEXT,
+ TELNETHOST_LONGTEXT, true )
+ add_integer( "telnet-port", TELNETPORT_DEFAULT, TELNETPORT_TEXT,
+ TELNETPORT_LONGTEXT, true )
+ add_password( "telnet-password", TELNETPWD_DEFAULT, TELNETPWD_TEXT,
+ TELNETPWD_LONGTEXT, true )
+
+ set_callbacks( Open_LuaIntf, Close_LuaIntf )