SIM-115: update simulator to use latest E2SM KPM version 3
[sim/e2-interface.git] / e2sim / asn1c / EXTERNAL.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "ASN1C-UsefulInformationObjectClasses"
4  *      found in "/usr/local/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1"
5  *      `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -no-gen-example -no-gen-OER -D /tmp/workspace/oransim-gerrit/e2sim/asn1c/`
6  */
7
8 #include "EXTERNAL.h"
9
10 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
11 static asn_per_constraints_t asn_PER_type_encoding_constr_5 CC_NOTUSED = {
12         { APC_CONSTRAINED,       2,  2,  0,  2 }        /* (0..2) */,
13         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
14         0, 0    /* No PER value map */
15 };
16 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
17 static asn_TYPE_member_t asn_MBR_encoding_5[] = {
18         { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.single_ASN1_type),
19                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
20                 +1,     /* EXPLICIT tag at current level */
21                 &asn_DEF_ANY,
22                 0,
23                 {
24 #if !defined(ASN_DISABLE_OER_SUPPORT)
25                         0,
26 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
27 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
28                         0,
29 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
30                         0
31                 },
32                 0, 0, /* No default value */
33                 "single-ASN1-type"
34                 },
35         { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.octet_aligned),
36                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
37                 -1,     /* IMPLICIT tag at current level */
38                 &asn_DEF_OCTET_STRING,
39                 0,
40                 {
41 #if !defined(ASN_DISABLE_OER_SUPPORT)
42                         0,
43 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
44 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
45                         0,
46 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
47                         0
48                 },
49                 0, 0, /* No default value */
50                 "octet-aligned"
51                 },
52         { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL__encoding, choice.arbitrary),
53                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
54                 -1,     /* IMPLICIT tag at current level */
55                 &asn_DEF_BIT_STRING,
56                 0,
57                 {
58 #if !defined(ASN_DISABLE_OER_SUPPORT)
59                         0,
60 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
61 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
62                         0,
63 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
64                         0
65                 },
66                 0, 0, /* No default value */
67                 "arbitrary"
68                 },
69 };
70 static const asn_TYPE_tag2member_t asn_MAP_encoding_tag2el_5[] = {
71     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* single-ASN1-type */
72     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* octet-aligned */
73     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* arbitrary */
74 };
75 static asn_CHOICE_specifics_t asn_SPC_encoding_specs_5 = {
76         sizeof(struct EXTERNAL__encoding),
77         offsetof(struct EXTERNAL__encoding, _asn_ctx),
78         offsetof(struct EXTERNAL__encoding, present),
79         sizeof(((struct EXTERNAL__encoding *)0)->present),
80         asn_MAP_encoding_tag2el_5,
81         3,      /* Count of tags in the map */
82         0, 0,
83         -1      /* Extensions start */
84 };
85 static /* Use -fall-defs-global to expose */
86 asn_TYPE_descriptor_t asn_DEF_encoding_5 = {
87         "encoding",
88         "encoding",
89         &asn_OP_CHOICE,
90         0,      /* No effective tags (pointer) */
91         0,      /* No effective tags (count) */
92         0,      /* No tags (pointer) */
93         0,      /* No tags (count) */
94         {
95 #if !defined(ASN_DISABLE_OER_SUPPORT)
96                 0,
97 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
98 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
99                 &asn_PER_type_encoding_constr_5,
100 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
101                 CHOICE_constraint
102         },
103         asn_MBR_encoding_5,
104         3,      /* Elements count */
105         &asn_SPC_encoding_specs_5       /* Additional specs */
106 };
107
108 static asn_TYPE_member_t asn_MBR_EXTERNAL_1[] = {
109         { ATF_POINTER, 3, offsetof(struct EXTERNAL, direct_reference),
110                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
111                 0,
112                 &asn_DEF_OBJECT_IDENTIFIER,
113                 0,
114                 {
115 #if !defined(ASN_DISABLE_OER_SUPPORT)
116                         0,
117 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
118 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
119                         0,
120 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
121                         0
122                 },
123                 0, 0, /* No default value */
124                 "direct-reference"
125                 },
126         { ATF_POINTER, 2, offsetof(struct EXTERNAL, indirect_reference),
127                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
128                 0,
129                 &asn_DEF_NativeInteger,
130                 0,
131                 {
132 #if !defined(ASN_DISABLE_OER_SUPPORT)
133                         0,
134 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
135 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
136                         0,
137 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
138                         0
139                 },
140                 0, 0, /* No default value */
141                 "indirect-reference"
142                 },
143         { ATF_POINTER, 1, offsetof(struct EXTERNAL, data_value_descriptor),
144                 (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)),
145                 0,
146                 &asn_DEF_ObjectDescriptor,
147                 0,
148                 {
149 #if !defined(ASN_DISABLE_OER_SUPPORT)
150                         0,
151 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
152 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
153                         0,
154 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
155                         0
156                 },
157                 0, 0, /* No default value */
158                 "data-value-descriptor"
159                 },
160         { ATF_NOFLAGS, 0, offsetof(struct EXTERNAL, encoding),
161                 -1 /* Ambiguous tag (CHOICE?) */,
162                 0,
163                 &asn_DEF_encoding_5,
164                 0,
165                 {
166 #if !defined(ASN_DISABLE_OER_SUPPORT)
167                         0,
168 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
169 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
170                         0,
171 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
172                         0
173                 },
174                 0, 0, /* No default value */
175                 "encoding"
176                 },
177 };
178 static const int asn_MAP_EXTERNAL_oms_1[] = { 0, 1, 2 };
179 static const ber_tlv_tag_t asn_DEF_EXTERNAL_tags_1[] = {
180         (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
181         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
182 };
183 static const asn_TYPE_tag2member_t asn_MAP_EXTERNAL_tag2el_1[] = {
184     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* indirect-reference */
185     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* direct-reference */
186     { (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), 2, 0, 0 }, /* data-value-descriptor */
187     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 3, 0, 0 }, /* single-ASN1-type */
188     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* octet-aligned */
189     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* arbitrary */
190 };
191 static asn_SEQUENCE_specifics_t asn_SPC_EXTERNAL_specs_1 = {
192         sizeof(struct EXTERNAL),
193         offsetof(struct EXTERNAL, _asn_ctx),
194         asn_MAP_EXTERNAL_tag2el_1,
195         6,      /* Count of tags in the map */
196         asn_MAP_EXTERNAL_oms_1, /* Optional members */
197         3, 0,   /* Root/Additions */
198         -1,     /* First extension addition */
199 };
200 asn_TYPE_descriptor_t asn_DEF_EXTERNAL = {
201         "EXTERNAL",
202         "EXTERNAL",
203         &asn_OP_SEQUENCE,
204         asn_DEF_EXTERNAL_tags_1,
205         sizeof(asn_DEF_EXTERNAL_tags_1)
206                 /sizeof(asn_DEF_EXTERNAL_tags_1[0]) - 1, /* 1 */
207         asn_DEF_EXTERNAL_tags_1,        /* Same as above */
208         sizeof(asn_DEF_EXTERNAL_tags_1)
209                 /sizeof(asn_DEF_EXTERNAL_tags_1[0]), /* 2 */
210         {
211 #if !defined(ASN_DISABLE_OER_SUPPORT)
212                 0,
213 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
214 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
215                 0,
216 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
217                 SEQUENCE_constraint
218         },
219         asn_MBR_EXTERNAL_1,
220         4,      /* Elements count */
221         &asn_SPC_EXTERNAL_specs_1       /* Additional specs */
222 };
223