4e82a1fabb
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
test.lua | ||
test_client.lua | ||
ubus.c |