lua: add uloop support
This commit is contained in:
parent
115b7a8c73
commit
0371c8f5fd
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ ubus_lua_connect(lua_State *L)
|
||||||
if ((c = lua_newuserdata(L, sizeof(*c))) != NULL &&
|
if ((c = lua_newuserdata(L, sizeof(*c))) != NULL &&
|
||||||
(c->ctx = ubus_connect(sockpath)) != NULL)
|
(c->ctx = ubus_connect(sockpath)) != NULL)
|
||||||
{
|
{
|
||||||
|
ubus_add_uloop(c->ctx);
|
||||||
c->timeout = timeout;
|
c->timeout = timeout;
|
||||||
memset(&c->buf, 0, sizeof(c->buf));
|
memset(&c->buf, 0, sizeof(c->buf));
|
||||||
luaL_getmetatable(L, METANAME);
|
luaL_getmetatable(L, METANAME);
|
||||||
|
|
Loading…
Add table
Reference in a new issue