+ 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", NULL,
+ INTF_TEXT, INTF_LONGTEXT, false )
+ add_string( "lua-config", "", NULL,
+ CONFIG_TEXT, CONFIG_LONGTEXT, false )
+ set_section( N_("Lua HTTP"), 0 )
+ add_string ( "http-host", NULL, NULL, HOST_TEXT, HOST_LONGTEXT, true )
+ add_string ( "http-src", NULL, NULL, SRC_TEXT, SRC_LONGTEXT, true )
+ add_bool ( "http-index", false, NULL, INDEX_TEXT, INDEX_LONGTEXT, true )
+ set_section( N_("Lua Telnet"), 0 )
+ add_string( "telnet-host", "localhost", NULL, TELNETHOST_TEXT,
+ TELNETHOST_LONGTEXT, true )
+ add_integer( "telnet-port", TELNETPORT_DEFAULT, NULL, TELNETPORT_TEXT,
+ TELNETPORT_LONGTEXT, true )
+ add_password( "telnet-password", TELNETPWD_DEFAULT, NULL, TELNETPWD_TEXT,
+ TELNETPWD_LONGTEXT, true )
+
+ set_callbacks( Open_LuaIntf, Close_LuaIntf )