ip.h 3.83 KB
Newer Older
1
2
#ifndef GENERATED_ASN1SCC_ip_H
#define GENERATED_ASN1SCC_ip_H
3
4
5
6
7
8
9
10
11
12
/*
Code automatically generated by asn1scc tool
*/
#include "asn1crt.h"

#ifdef  __cplusplus
extern "C" {
#endif


13
typedef asn1SccUint __po_hi_c_Port_T;
14
15


16
flag __po_hi_c_Port_T_Equal(const __po_hi_c_Port_T* pVal1, const __po_hi_c_Port_T* pVal2);
17
18
19

void __po_hi_c_Port_T_Initialize(__po_hi_c_Port_T* pVal);

20
21
#define ERR_PORT_T		1  /**/
flag __po_hi_c_Port_T_IsConstraintValid(const __po_hi_c_Port_T* pVal, int* pErrCode);
22
23
24
25
26
typedef enum {
    __po_hi_c_ipv4 = 0,
    __po_hi_c_ipv6 = 1
} __po_hi_c_Version_T;

27
flag __po_hi_c_Version_T_Equal(const __po_hi_c_Version_T* pVal1, const __po_hi_c_Version_T* pVal2);
28

yoogx's avatar
yoogx committed
29
30
void __po_hi_c_Version_T_Initialize(__po_hi_c_Version_T* pVal);

31
32
33
#define ERR_VERSION_T		8  /**/
flag __po_hi_c_Version_T_IsConstraintValid(const __po_hi_c_Version_T* pVal, int* pErrCode);
/*-- __po_hi_c_ip_conf_t --------------------------------------------*/
yoogx's avatar
yoogx committed
34
typedef char __po_hi_c_ip_conf_t_devname[21];
35
36
37
38
39
typedef char __po_hi_c_ip_conf_t_address[41];
typedef char __po_hi_c_ip_conf_t_broadcast[41];
typedef char __po_hi_c_ip_conf_t_netmask[41];
typedef char __po_hi_c_ip_conf_t_gateway[41];
typedef char __po_hi_c_ip_conf_t_dns[41];
40
41

typedef struct {
yoogx's avatar
yoogx committed
42
43
44
45
46
47
    __po_hi_c_ip_conf_t_devname devname;
    __po_hi_c_ip_conf_t_address address;
    __po_hi_c_ip_conf_t_broadcast broadcast;
    __po_hi_c_ip_conf_t_netmask netmask;
    __po_hi_c_ip_conf_t_gateway gateway;
    __po_hi_c_ip_conf_t_dns dns;
48
49
    __po_hi_c_Version_T version;
    __po_hi_c_Port_T port;
50

51
    struct {
jdelange's avatar
jdelange committed
52
53
54
55
        unsigned int broadcast:1;
        unsigned int netmask:1;
        unsigned int gateway:1;
        unsigned int dns:1;
56
57
        unsigned int version:1;
    } exist;
58

59
60
} __po_hi_c_ip_conf_t;

61
62
63
64
65
flag __po_hi_c_ip_conf_t_devname_Equal(const __po_hi_c_ip_conf_t_devname val1, const __po_hi_c_ip_conf_t_devname val2);

flag __po_hi_c_ip_conf_t_address_Equal(const __po_hi_c_ip_conf_t_address val1, const __po_hi_c_ip_conf_t_address val2);

flag __po_hi_c_ip_conf_t_broadcast_Equal(const __po_hi_c_ip_conf_t_broadcast val1, const __po_hi_c_ip_conf_t_broadcast val2);
66

67
68
69
70
71
72
73
74
75
76
77
78
79
80
flag __po_hi_c_ip_conf_t_netmask_Equal(const __po_hi_c_ip_conf_t_netmask val1, const __po_hi_c_ip_conf_t_netmask val2);

flag __po_hi_c_ip_conf_t_gateway_Equal(const __po_hi_c_ip_conf_t_gateway val1, const __po_hi_c_ip_conf_t_gateway val2);

flag __po_hi_c_ip_conf_t_dns_Equal(const __po_hi_c_ip_conf_t_dns val1, const __po_hi_c_ip_conf_t_dns val2);

flag __po_hi_c_ip_conf_t_Equal(const __po_hi_c_ip_conf_t* pVal1, const __po_hi_c_ip_conf_t* pVal2);

void __po_hi_c_ip_conf_t_devname_Initialize(__po_hi_c_ip_conf_t_devname val);
void __po_hi_c_ip_conf_t_address_Initialize(__po_hi_c_ip_conf_t_address val);
void __po_hi_c_ip_conf_t_broadcast_Initialize(__po_hi_c_ip_conf_t_broadcast val);
void __po_hi_c_ip_conf_t_netmask_Initialize(__po_hi_c_ip_conf_t_netmask val);
void __po_hi_c_ip_conf_t_gateway_Initialize(__po_hi_c_ip_conf_t_gateway val);
void __po_hi_c_ip_conf_t_dns_Initialize(__po_hi_c_ip_conf_t_dns val);
81
82
void __po_hi_c_ip_conf_t_Initialize(__po_hi_c_ip_conf_t* pVal);

83
84
85
86
87
88
89
90
91
#define ERR_IP_CONF_T_DEVNAME		15  /**/
#define ERR_IP_CONF_T_ADDRESS		22  /**/
#define ERR_IP_CONF_T_BROADCAST		29  /**/
#define ERR_IP_CONF_T_NETMASK		36  /**/
#define ERR_IP_CONF_T_GATEWAY		43  /**/
#define ERR_IP_CONF_T_DNS		50  /**/
#define ERR_IP_CONF_T_VERSION		57  /**/
#define ERR_IP_CONF_T_PORT		68  /**/
flag __po_hi_c_ip_conf_t_IsConstraintValid(const __po_hi_c_ip_conf_t* pVal, int* pErrCode);
92

yoogx's avatar
yoogx committed
93
94
95
96
97
98
99
100
101
102
extern const __po_hi_c_ip_conf_t localhost1;
extern const __po_hi_c_ip_conf_t localhost2; 

/* ================= Encoding/Decoding function prototypes =================
 * These functions are placed at the end of the file to make sure all types
 * have been declared first, in case of parameterized ACN encodings
 * ========================================================================= */

 

103
104
105

#ifdef  __cplusplus
}
yoogx's avatar
yoogx committed
106

107
108
#endif

109
#endif