-
Notifications
You must be signed in to change notification settings - Fork 0
/
inet_types.h
60 lines (49 loc) · 1019 Bytes
/
inet_types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef __EDL_TYPES_inet__
#define __EDL_TYPES_inet__
#include <arpa/inet.h>
typedef struct _oe_inet_addr_result_t
{
in_addr_t ret;
int error;
} oe_inet_addr_result_t;
typedef struct _oe_inet_network_result_t
{
in_addr_t ret;
int error;
} oe_inet_network_result_t;
typedef struct _oe_inet_ntoa_result_t
{
char * ret;
int error;
} oe_inet_ntoa_result_t;
typedef struct _oe_inet_pton_result_t
{
int ret;
int error;
} oe_inet_pton_result_t;
typedef struct _oe_inet_ntop_result_t
{
const char * ret;
int error;
} oe_inet_ntop_result_t;
typedef struct _oe_inet_aton_result_t
{
int ret;
int error;
} oe_inet_aton_result_t;
typedef struct _oe_inet_makeaddr_result_t
{
struct in_addr ret;
int error;
} oe_inet_makeaddr_result_t;
typedef struct _oe_inet_lnaof_result_t
{
in_addr_t ret;
int error;
} oe_inet_lnaof_result_t;
typedef struct _oe_inet_netof_result_t
{
in_addr_t ret;
int error;
} oe_inet_netof_result_t;
#endif // __EDL_TYPES_inet__