Exemplo n.º 1
0
Arquivo: util.c Projeto: tarruda/luv
static uv_pipe_t* luv_get_pipe(lua_State* L, int index) {
  luv_handle_t* lhandle = luv_get_lhandle(L, index, LUV_PIPE);
  return (uv_pipe_t*)lhandle->handle;
}
Exemplo n.º 2
0
Arquivo: util.c Projeto: tarruda/luv
static uv_process_t* luv_get_process(lua_State* L, int index) {
  luv_handle_t* lhandle = luv_get_lhandle(L, index, LUV_PROCESS);
  return (uv_process_t*)lhandle->handle;
}
Exemplo n.º 3
0
Arquivo: util.c Projeto: tarruda/luv
static uv_tty_t* luv_get_tty(lua_State* L, int index) {
  luv_handle_t* lhandle = luv_get_lhandle(L, index, LUV_TTY);
  return (uv_tty_t*)lhandle->handle;
}
Exemplo n.º 4
0
Arquivo: util.c Projeto: tarruda/luv
static uv_stream_t* luv_get_stream(lua_State* L, int index) {
  luv_handle_t* lhandle = luv_get_lhandle(L, index, LUV_STREAM);
  return (uv_stream_t*)lhandle->handle;
}
Exemplo n.º 5
0
Arquivo: util.c Projeto: tarruda/luv
static uv_timer_t* luv_get_timer(lua_State* L, int index) {
  luv_handle_t* lhandle = luv_get_lhandle(L, index, LUV_TIMER);
  return (uv_timer_t*)lhandle->handle;
}
Exemplo n.º 6
0
Arquivo: common.c Projeto: dvv/luv
uv_tcp_t* luv_get_tcp(lua_State* L, int index) {
  luv_handle_t* lhandle = luv_get_lhandle(L, index, LUV_TCP);
  return (uv_tcp_t*)lhandle->handle;
}
Exemplo n.º 7
0
Arquivo: common.c Projeto: dvv/luv
uv_handle_t* luv_get_handle(lua_State* L, int index) {
  luv_handle_t* lhandle = luv_get_lhandle(L, index, LUV_HANDLE);
  return (uv_handle_t*)lhandle->handle;
}