diff options
| author | ruki <[email protected]> | 2019-11-06 00:43:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-11-05 22:23:24 +0800 |
| commit | 8e6b73d2016fd3a3bf658698e4eb10f82fbcc6f7 (patch) | |
| tree | 36ad703480f39117dfc6f60515b911c0f8190b2b /core/src/xmake/machine.c | |
| parent | 3d8d86c9056c2ed4ba57e61ff0030f2749c847aa (diff) | |
register poller apis
Diffstat (limited to 'core/src/xmake/machine.c')
| -rw-r--r-- | core/src/xmake/machine.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 835e10b73..faeadfe4f 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -124,6 +124,12 @@ tb_int_t xm_io_socket_recv(lua_State* lua); tb_int_t xm_io_socket_recvfrom(lua_State* lua); tb_int_t xm_io_socket_close(lua_State* lua); +// the io/poller functions +tb_int_t xm_io_poller_insert(lua_State* lua); +tb_int_t xm_io_poller_modify(lua_State* lua); +tb_int_t xm_io_poller_remove(lua_State* lua); +tb_int_t xm_io_poller_wait(lua_State* lua); + // the path functions tb_int_t xm_path_relative(lua_State* lua); tb_int_t xm_path_absolute(lua_State* lua); @@ -269,6 +275,10 @@ static luaL_Reg const g_io_functions[] = , { "socket_recv", xm_io_socket_recv } , { "socket_recvfrom", xm_io_socket_recvfrom } , { "socket_close", xm_io_socket_close } +, { "poller_insert", xm_io_poller_insert } +, { "poller_modify", xm_io_poller_modify } +, { "poller_remove", xm_io_poller_remove } +, { "poller_wait", xm_io_poller_wait } , { tb_null, tb_null } }; |
