Rizin
unix-like reverse engineering framework and cli tools
uv-data-getter-setters.c File Reference
#include "uv.h"

Go to the source code of this file.

Macros

#define XX(uc, lc)   case UV_##uc: return #lc;
 
#define XX(uc, lc)   case UV_##uc: return #lc;
 

Functions

const char * uv_handle_type_name (uv_handle_type type)
 
uv_handle_type uv_handle_get_type (const uv_handle_t *handle)
 
void * uv_handle_get_data (const uv_handle_t *handle)
 
uv_loop_tuv_handle_get_loop (const uv_handle_t *handle)
 
void uv_handle_set_data (uv_handle_t *handle, void *data)
 
const char * uv_req_type_name (uv_req_type type)
 
uv_req_type uv_req_get_type (const uv_req_t *req)
 
void * uv_req_get_data (const uv_req_t *req)
 
void uv_req_set_data (uv_req_t *req, void *data)
 
size_t uv_stream_get_write_queue_size (const uv_stream_t *stream)
 
size_t uv_udp_get_send_queue_size (const uv_udp_t *handle)
 
size_t uv_udp_get_send_queue_count (const uv_udp_t *handle)
 
uv_pid_t uv_process_get_pid (const uv_process_t *proc)
 
uv_fs_type uv_fs_get_type (const uv_fs_t *req)
 
ssize_t uv_fs_get_result (const uv_fs_t *req)
 
void * uv_fs_get_ptr (const uv_fs_t *req)
 
const char * uv_fs_get_path (const uv_fs_t *req)
 
uv_stat_tuv_fs_get_statbuf (uv_fs_t *req)
 
void * uv_loop_get_data (const uv_loop_t *loop)
 
void uv_loop_set_data (uv_loop_t *loop, void *data)
 

Macro Definition Documentation

◆ XX [1/2]

#define XX (   uc,
  lc 
)    case UV_##uc: return #lc;

◆ XX [2/2]

#define XX (   uc,
  lc 
)    case UV_##uc: return #lc;

Function Documentation

◆ uv_fs_get_path()

const char* uv_fs_get_path ( const uv_fs_t req)

Definition at line 105 of file uv-data-getter-setters.c.

105  {
106  return req->path;
107 }
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
Definition: sflib.h:128

References req.

◆ uv_fs_get_ptr()

void* uv_fs_get_ptr ( const uv_fs_t req)

Definition at line 101 of file uv-data-getter-setters.c.

101  {
102  return req->ptr;
103 }

References req.

◆ uv_fs_get_result()

ssize_t uv_fs_get_result ( const uv_fs_t req)

Definition at line 97 of file uv-data-getter-setters.c.

97  {
98  return req->result;
99 }

References req.

◆ uv_fs_get_statbuf()

uv_stat_t* uv_fs_get_statbuf ( uv_fs_t req)

Definition at line 109 of file uv-data-getter-setters.c.

109  {
110  return &req->statbuf;
111 }

References req.

◆ uv_fs_get_type()

uv_fs_type uv_fs_get_type ( const uv_fs_t req)

Definition at line 93 of file uv-data-getter-setters.c.

93  {
94  return req->fs_type;
95 }

References req.

◆ uv_handle_get_data()

void* uv_handle_get_data ( const uv_handle_t handle)

Definition at line 40 of file uv-data-getter-setters.c.

40  {
41  return handle->data;
42 }
static mcore_handle handle
Definition: asm_mcore.c:8

References handle.

◆ uv_handle_get_loop()

uv_loop_t* uv_handle_get_loop ( const uv_handle_t handle)

Definition at line 44 of file uv-data-getter-setters.c.

44  {
45  return handle->loop;
46 }

References handle.

◆ uv_handle_get_type()

uv_handle_type uv_handle_get_type ( const uv_handle_t handle)

Definition at line 36 of file uv-data-getter-setters.c.

36  {
37  return handle->type;
38 }

References handle.

◆ uv_handle_set_data()

void uv_handle_set_data ( uv_handle_t handle,
void *  data 
)

Definition at line 48 of file uv-data-getter-setters.c.

48  {
49  handle->data = data;
50 }

References handle.

◆ uv_handle_type_name()

const char* uv_handle_type_name ( uv_handle_type  type)

Definition at line 24 of file uv-data-getter-setters.c.

24  {
25  switch (type) {
26 #define XX(uc,lc) case UV_##uc: return #lc;
28 #undef XX
29  case UV_FILE: return "file";
30  case UV_HANDLE_TYPE_MAX:
31  case UV_UNKNOWN_HANDLE: return NULL;
32  }
33  return NULL;
34 }
#define NULL
Definition: cris-opc.c:27
int type
Definition: mipsasm.c:17
#define XX(uc, lc)
@ UV_FILE
Definition: uv.h:194
@ UV_HANDLE_TYPE_MAX
Definition: uv.h:195
@ UV_UNKNOWN_HANDLE
Definition: uv.h:190
#define UV_HANDLE_TYPE_MAP(XX)
Definition: uv.h:152

References NULL, type, UV_FILE, UV_HANDLE_TYPE_MAP, UV_HANDLE_TYPE_MAX, UV_UNKNOWN_HANDLE, and XX.

◆ uv_loop_get_data()

void* uv_loop_get_data ( const uv_loop_t loop)

Definition at line 113 of file uv-data-getter-setters.c.

113  {
114  return loop->data;
115 }
void * data
Definition: uv.h:1782
uv_loop_t * loop
Definition: main.c:7

References uv_loop_s::data, and loop.

◆ uv_loop_set_data()

void uv_loop_set_data ( uv_loop_t loop,
void *  data 
)

Definition at line 117 of file uv-data-getter-setters.c.

117  {
118  loop->data = data;
119 }

References uv_loop_s::data, and loop.

◆ uv_process_get_pid()

uv_pid_t uv_process_get_pid ( const uv_process_t proc)

Definition at line 89 of file uv-data-getter-setters.c.

89  {
90  return proc->pid;
91 }
struct Proc * proc

References proc.

◆ uv_req_get_data()

void* uv_req_get_data ( const uv_req_t req)

Definition at line 69 of file uv-data-getter-setters.c.

69  {
70  return req->data;
71 }

References req.

◆ uv_req_get_type()

uv_req_type uv_req_get_type ( const uv_req_t req)

Definition at line 65 of file uv-data-getter-setters.c.

65  {
66  return req->type;
67 }

References req.

◆ uv_req_set_data()

void uv_req_set_data ( uv_req_t req,
void *  data 
)

Definition at line 73 of file uv-data-getter-setters.c.

73  {
74  req->data = data;
75 }

References req.

◆ uv_req_type_name()

const char* uv_req_type_name ( uv_req_type  type)

Definition at line 52 of file uv-data-getter-setters.c.

52  {
53  switch (type) {
54 #define XX(uc,lc) case UV_##uc: return #lc;
56 #undef XX
57  case UV_REQ_TYPE_MAX:
58  case UV_UNKNOWN_REQ:
59  default: /* UV_REQ_TYPE_PRIVATE */
60  break;
61  }
62  return NULL;
63 }
#define UV_REQ_TYPE_MAP(XX)
Definition: uv.h:170
@ UV_REQ_TYPE_MAX
Definition: uv.h:204
@ UV_UNKNOWN_REQ
Definition: uv.h:199

References NULL, type, UV_REQ_TYPE_MAP, UV_REQ_TYPE_MAX, UV_UNKNOWN_REQ, and XX.

◆ uv_stream_get_write_queue_size()

size_t uv_stream_get_write_queue_size ( const uv_stream_t stream)

Definition at line 77 of file uv-data-getter-setters.c.

77  {
78  return stream->write_queue_size;
79 }
voidpf stream
Definition: ioapi.h:138

◆ uv_udp_get_send_queue_count()

size_t uv_udp_get_send_queue_count ( const uv_udp_t handle)

Definition at line 85 of file uv-data-getter-setters.c.

85  {
86  return handle->send_queue_count;
87 }

References handle.

◆ uv_udp_get_send_queue_size()

size_t uv_udp_get_send_queue_size ( const uv_udp_t handle)

Definition at line 81 of file uv-data-getter-setters.c.

81  {
82  return handle->send_queue_size;
83 }

References handle.