ip.h 3.03 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
17


void __po_hi_c_Port_T_Initialize(__po_hi_c_Port_T* pVal);

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

Maxime Perrotin's avatar
Maxime Perrotin committed
25
26
27
// please use the following macros to avoid breaking code.
#define __po_hi_c_Version_T_ipv4 __po_hi_c_ipv4
#define __po_hi_c_Version_T_ipv6 __po_hi_c_ipv6
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
typedef struct {
yoogx's avatar
yoogx committed
41
42
43
44
45
46
    __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;
47
48
    __po_hi_c_Version_T version;
    __po_hi_c_Port_T port;
49

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

58
59
} __po_hi_c_ip_conf_t;

60
61
62
63
64
65
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);
66
67
void __po_hi_c_ip_conf_t_Initialize(__po_hi_c_ip_conf_t* pVal);

68
#define ERR_IP_CONF_T		79  /**/
69
70
71
72
73
74
#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  /**/
75
76
#define ERR_IP_CONF_T_VERSION		57  /**/
#define ERR_IP_CONF_T_PORT		68  /**/
77
flag __po_hi_c_ip_conf_t_IsConstraintValid(const __po_hi_c_ip_conf_t* pVal, int* pErrCode);
78

yoogx's avatar
yoogx committed
79
80
81
82
83
84
85
86
87
88
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
 * ========================================================================= */

 

89
90
91

#ifdef  __cplusplus
}
yoogx's avatar
yoogx committed
92

93
94
#endif

Maxime Perrotin's avatar
Maxime Perrotin committed
95
#endif