Define union uv_any_req
This commit is contained in:
parent
0ea4c87f8b
commit
2f83928b6f
10
include/uv.h
10
include/uv.h
@ -528,7 +528,7 @@ int uv_exepath(char* buffer, size_t* size);
|
||||
extern uint64_t uv_hrtime(void);
|
||||
|
||||
|
||||
/* the presence of this union forces similar struct layout */
|
||||
/* the presence of these unions force similar struct layout */
|
||||
union uv_any_handle {
|
||||
uv_tcp_t tcp;
|
||||
uv_pipe_t pipe;
|
||||
@ -540,6 +540,14 @@ union uv_any_handle {
|
||||
uv_getaddrinfo_t getaddrinfo;
|
||||
};
|
||||
|
||||
union uv_any_req {
|
||||
uv_req_t req;
|
||||
uv_write_t write;
|
||||
uv_connect_t connect;
|
||||
uv_shutdown_t shutdown;
|
||||
};
|
||||
|
||||
|
||||
/* Diagnostic counters */
|
||||
typedef struct {
|
||||
uint64_t req_init;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user