Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
uv.h: add members to any-union of handle and req
  • Loading branch information
Shigeki Ohtsu authored and bnoordhuis committed Jun 26, 2012
1 parent f3fd8e3 commit c6f2ef2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/uv.h
Expand Up @@ -1725,6 +1725,8 @@ UV_EXTERN int uv_thread_join(uv_thread_t *tid);

/* the presence of these unions force similar struct layout */
union uv_any_handle {
uv_handle_t handle;
uv_stream_t stream;
uv_tcp_t tcp;
uv_pipe_t pipe;
uv_prepare_t prepare;
Expand All @@ -1733,6 +1735,11 @@ union uv_any_handle {
uv_async_t async;
uv_timer_t timer;
uv_fs_event_t fs_event;
uv_fs_poll_t fs_poll;
uv_poll_t poll;
uv_process_t process;
uv_tty_t tty;
uv_udp_t udp;
};

union uv_any_req {
Expand All @@ -1742,6 +1749,8 @@ union uv_any_req {
uv_shutdown_t shutdown;
uv_fs_t fs_req;
uv_work_t work_req;
uv_udp_send_t udp_send_req;
uv_getaddrinfo_t getaddrinfo_req;
};


Expand Down

0 comments on commit c6f2ef2

Please sign in to comment.