ubus/lua
Luka Perkov 4e82a1fabb lua: allow methods with no arguments
In C it is possible to have methods without arguments (UBUS_METHOD_NOARG).
Enable support for the same calls in Lua too.

This commit also fixes segfault which can be caused by passing non-table type
where table is expected. The lua_gettablelen() function is called after we have
made sure we are dealing with a table in the first place.

Signed-off-by: Luka Perkov <luka@openwrt.org>
2014-01-28 22:20:30 +00:00
..
CMakeLists.txt add INCLUDE_DIRECTORIES to subdirectories 2013-03-03 03:43:22 +01:00
test.lua add Lua bindings for ubus events 2013-11-07 16:23:30 +01:00
test_client.lua add Lua bindings for ubus events 2013-11-07 16:23:30 +01:00
ubus.c lua: allow methods with no arguments 2014-01-28 22:20:30 +00:00