blob: 9a9c007b7452231733f4183836754e60b679a453 [file] [log] [blame]
Lev Walkincee931e2005-08-16 16:56:59 +00001
2/*** <<< INCLUDES [Everything] >>> ***/
3
Lev Walkin22b5ed42006-09-13 02:51:20 +00004#include "Set.h"
5#include "Alpha.h"
6#include "Beta.h"
7#include "Gamma.h"
8#include "OneTwo.h"
9#include "TwoThree.h"
10#include "ThreeOne.h"
Lev Walkincee931e2005-08-16 16:56:59 +000011#include <constr_SEQUENCE.h>
12
Lev Walkinb85a8132005-08-18 13:38:19 +000013/*** <<< FWD-DECLS [Everything] >>> ***/
14
15struct Choice1;
16struct Choice2;
17struct Choice3;
18
Lev Walkincee931e2005-08-16 16:56:59 +000019/*** <<< TYPE-DECLS [Everything] >>> ***/
20
21typedef struct Everything {
Lev Walkinb85a8132005-08-18 13:38:19 +000022 struct Choice1 *ch1;
23 struct Choice2 *ch2;
24 struct Choice3 *ch3;
Lev Walkincee931e2005-08-16 16:56:59 +000025 Set_t set;
Lev Walkinb85a8132005-08-18 13:38:19 +000026 Alpha_t a;
27 Beta_t b;
28 Gamma_t g;
29 OneTwo_t ot;
30 TwoThree_t tt;
31 ThreeOne_t to;
Lev Walkincee931e2005-08-16 16:56:59 +000032
33 /* Context for parsing across buffer boundaries */
34 asn_struct_ctx_t _asn_ctx;
35} Everything_t;
36
37/*** <<< FUNC-DECLS [Everything] >>> ***/
38
39extern asn_TYPE_descriptor_t asn_DEF_Everything;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080040extern asn_SEQUENCE_specifics_t asn_SPC_Everything_specs_1;
41extern asn_TYPE_member_t asn_MBR_Everything_1[10];
Lev Walkincee931e2005-08-16 16:56:59 +000042
Lev Walkinb85a8132005-08-18 13:38:19 +000043/*** <<< POST-INCLUDE [Everything] >>> ***/
44
Lev Walkin22b5ed42006-09-13 02:51:20 +000045#include "Choice1.h"
46#include "Choice2.h"
47#include "Choice3.h"
Lev Walkinb85a8132005-08-18 13:38:19 +000048
Lev Walkincee931e2005-08-16 16:56:59 +000049/*** <<< STAT-DEFS [Everything] >>> ***/
50
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080051asn_TYPE_member_t asn_MBR_Everything_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +000052 { ATF_POINTER, 0, offsetof(struct Everything, ch1),
Lev Walkincee931e2005-08-16 16:56:59 +000053 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
54 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000055 .type = &asn_DEF_Choice1,
Lev Walkincee931e2005-08-16 16:56:59 +000056 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040057 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000058 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
59 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000060 .name = "ch1"
61 },
Lev Walkinb85a8132005-08-18 13:38:19 +000062 { ATF_POINTER, 0, offsetof(struct Everything, ch2),
Lev Walkincee931e2005-08-16 16:56:59 +000063 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
64 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000065 .type = &asn_DEF_Choice2,
Lev Walkincee931e2005-08-16 16:56:59 +000066 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040067 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000068 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
69 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000070 .name = "ch2"
71 },
Lev Walkinb85a8132005-08-18 13:38:19 +000072 { ATF_POINTER, 0, offsetof(struct Everything, ch3),
Lev Walkincee931e2005-08-16 16:56:59 +000073 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkinb85a8132005-08-18 13:38:19 +000074 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000075 .type = &asn_DEF_Choice3,
Lev Walkinb85a8132005-08-18 13:38:19 +000076 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040077 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000078 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
79 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +000080 .name = "ch3"
81 },
82 { ATF_NOFLAGS, 0, offsetof(struct Everything, set),
83 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
Lev Walkincee931e2005-08-16 16:56:59 +000084 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000085 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +000086 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040087 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000088 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
89 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000090 .name = "set"
91 },
Lev Walkinb85a8132005-08-18 13:38:19 +000092 { ATF_NOFLAGS, 0, offsetof(struct Everything, a),
93 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
94 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000095 .type = &asn_DEF_Alpha,
Lev Walkinb85a8132005-08-18 13:38:19 +000096 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040097 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000098 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
99 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000100 .name = "a"
101 },
102 { ATF_NOFLAGS, 0, offsetof(struct Everything, b),
103 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
104 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000105 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +0000106 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400107 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000108 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
109 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000110 .name = "b"
111 },
112 { ATF_NOFLAGS, 0, offsetof(struct Everything, g),
113 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
114 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000115 .type = &asn_DEF_Gamma,
Lev Walkinb85a8132005-08-18 13:38:19 +0000116 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400117 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000118 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
119 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000120 .name = "g"
121 },
122 { ATF_NOFLAGS, 0, offsetof(struct Everything, ot),
123 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
124 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000125 .type = &asn_DEF_OneTwo,
Lev Walkinb85a8132005-08-18 13:38:19 +0000126 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400127 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000128 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
129 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000130 .name = "ot"
131 },
132 { ATF_NOFLAGS, 0, offsetof(struct Everything, tt),
133 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
134 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000135 .type = &asn_DEF_TwoThree,
Lev Walkinb85a8132005-08-18 13:38:19 +0000136 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400137 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000138 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
139 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000140 .name = "tt"
141 },
142 { ATF_NOFLAGS, 0, offsetof(struct Everything, to),
143 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
144 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000145 .type = &asn_DEF_ThreeOne,
Lev Walkinb85a8132005-08-18 13:38:19 +0000146 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400147 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000148 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
149 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000150 .name = "to"
151 },
Lev Walkincee931e2005-08-16 16:56:59 +0000152};
Lev Walkina7591b52014-10-12 18:37:35 -0700153static const ber_tlv_tag_t asn_DEF_Everything_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000154 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
155};
Lev Walkina7591b52014-10-12 18:37:35 -0700156static const asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700157 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */
158 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */
159 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */
160 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set */
161 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* a */
162 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* b */
163 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* g */
164 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ot */
165 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* tt */
166 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* to */
Lev Walkincee931e2005-08-16 16:56:59 +0000167};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800168asn_SEQUENCE_specifics_t asn_SPC_Everything_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000169 sizeof(struct Everything),
170 offsetof(struct Everything, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000171 asn_MAP_Everything_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000172 10, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000173 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000174 -1, /* Start extensions */
175 -1 /* Stop extensions */
176};
177asn_TYPE_descriptor_t asn_DEF_Everything = {
178 "Everything",
179 "Everything",
180 SEQUENCE_free,
181 SEQUENCE_print,
182 SEQUENCE_constraint,
183 SEQUENCE_decode_ber,
184 SEQUENCE_encode_der,
185 SEQUENCE_decode_xer,
186 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700187 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400188 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000189 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000190 asn_DEF_Everything_tags_1,
191 sizeof(asn_DEF_Everything_tags_1)
192 /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */
193 asn_DEF_Everything_tags_1, /* Same as above */
194 sizeof(asn_DEF_Everything_tags_1)
195 /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400196 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000197 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000198 asn_MBR_Everything_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000199 10, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000200 &asn_SPC_Everything_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000201};
202
203
204/*** <<< INCLUDES [Choice1] >>> ***/
205
206#include <constr_CHOICE.h>
207
208/*** <<< DEPS [Choice1] >>> ***/
209
210typedef enum Choice1_PR {
211 Choice1_PR_NOTHING, /* No components present */
212 Choice1_PR_something,
213 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000214 Choice1_PR_some2
Lev Walkincee931e2005-08-16 16:56:59 +0000215} Choice1_PR;
216
217/*** <<< FWD-DECLS [Choice1] >>> ***/
218
219struct Everything;
220
221/*** <<< TYPE-DECLS [Choice1] >>> ***/
222
223typedef struct Choice1 {
224 Choice1_PR present;
225 union Choice1_u {
226 struct Everything *something;
227 /*
228 * This type is extensible,
229 * possible extensions are below.
230 */
231 struct Everything *some2;
232 } choice;
233
234 /* Context for parsing across buffer boundaries */
235 asn_struct_ctx_t _asn_ctx;
236} Choice1_t;
237
238/*** <<< FUNC-DECLS [Choice1] >>> ***/
239
240extern asn_TYPE_descriptor_t asn_DEF_Choice1;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800241extern asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1;
242extern asn_TYPE_member_t asn_MBR_Choice1_1[2];
Lev Walkincee931e2005-08-16 16:56:59 +0000243
244/*** <<< POST-INCLUDE [Choice1] >>> ***/
245
Lev Walkin22b5ed42006-09-13 02:51:20 +0000246#include "Everything.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000247
248/*** <<< STAT-DEFS [Choice1] >>> ***/
249
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800250asn_TYPE_member_t asn_MBR_Choice1_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000251 { ATF_POINTER, 0, offsetof(struct Choice1, choice.something),
252 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
253 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000254 .type = &asn_DEF_Everything,
Lev Walkincee931e2005-08-16 16:56:59 +0000255 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400256 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000257 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
258 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000259 .name = "something"
260 },
261 { ATF_POINTER, 0, offsetof(struct Choice1, choice.some2),
262 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
263 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000264 .type = &asn_DEF_Everything,
Lev Walkincee931e2005-08-16 16:56:59 +0000265 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400266 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000267 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
268 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000269 .name = "some2"
270 },
271};
Lev Walkina7591b52014-10-12 18:37:35 -0700272static const asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700273 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* something */
274 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some2 */
Lev Walkincee931e2005-08-16 16:56:59 +0000275};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800276asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000277 sizeof(struct Choice1),
278 offsetof(struct Choice1, _asn_ctx),
279 offsetof(struct Choice1, present),
280 sizeof(((struct Choice1 *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000281 asn_MAP_Choice1_tag2el_1,
Lev Walkincee931e2005-08-16 16:56:59 +0000282 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000283 .canonical_order = 0,
284 .ext_start = 1 /* Extensions start */
Lev Walkincee931e2005-08-16 16:56:59 +0000285};
286asn_TYPE_descriptor_t asn_DEF_Choice1 = {
287 "Choice1",
288 "Choice1",
289 CHOICE_free,
290 CHOICE_print,
291 CHOICE_constraint,
292 CHOICE_decode_ber,
293 CHOICE_encode_der,
294 CHOICE_decode_xer,
295 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700296 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400297 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000298 CHOICE_outmost_tag,
299 0, /* No effective tags (pointer) */
300 0, /* No effective tags (count) */
301 0, /* No tags (pointer) */
302 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400303 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000304 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000305 asn_MBR_Choice1_1,
306 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000307 &asn_SPC_Choice1_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000308};
309
310
311/*** <<< INCLUDES [Choice2] >>> ***/
312
313#include <constr_CHOICE.h>
314
315/*** <<< DEPS [Choice2] >>> ***/
316
317typedef enum Choice2_PR {
318 Choice2_PR_NOTHING, /* No components present */
Lev Walkinb85a8132005-08-18 13:38:19 +0000319 Choice2_PR_typeref,
Lev Walkincee931e2005-08-16 16:56:59 +0000320 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000321 Choice2_PR_some3
Lev Walkincee931e2005-08-16 16:56:59 +0000322} Choice2_PR;
323
324/*** <<< FWD-DECLS [Choice2] >>> ***/
325
Lev Walkinb85a8132005-08-18 13:38:19 +0000326struct Sequence;
Lev Walkincee931e2005-08-16 16:56:59 +0000327struct Everything;
328
329/*** <<< TYPE-DECLS [Choice2] >>> ***/
330
331typedef struct Choice2 {
332 Choice2_PR present;
333 union Choice2_u {
Lev Walkinb85a8132005-08-18 13:38:19 +0000334 struct Sequence *typeref;
Lev Walkincee931e2005-08-16 16:56:59 +0000335 /*
336 * This type is extensible,
337 * possible extensions are below.
338 */
339 struct Everything *some3;
340 } choice;
341
342 /* Context for parsing across buffer boundaries */
343 asn_struct_ctx_t _asn_ctx;
344} Choice2_t;
345
346/*** <<< FUNC-DECLS [Choice2] >>> ***/
347
348extern asn_TYPE_descriptor_t asn_DEF_Choice2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800349extern asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1;
350extern asn_TYPE_member_t asn_MBR_Choice2_1[2];
Lev Walkincee931e2005-08-16 16:56:59 +0000351
352/*** <<< POST-INCLUDE [Choice2] >>> ***/
353
Lev Walkin22b5ed42006-09-13 02:51:20 +0000354#include "TypeRef.h"
355#include "Everything.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000356
357/*** <<< STAT-DEFS [Choice2] >>> ***/
358
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800359asn_TYPE_member_t asn_MBR_Choice2_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000360 { ATF_POINTER, 0, offsetof(struct Choice2, choice.typeref),
Lev Walkincee931e2005-08-16 16:56:59 +0000361 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
362 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000363 .type = &asn_DEF_TypeRef,
Lev Walkinb85a8132005-08-18 13:38:19 +0000364 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400365 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000366 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
367 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000368 .name = "typeref"
369 },
370 { ATF_POINTER, 0, offsetof(struct Choice2, choice.some3),
371 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
372 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000373 .type = &asn_DEF_Everything,
Lev Walkincee931e2005-08-16 16:56:59 +0000374 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400375 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000376 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
377 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000378 .name = "some3"
379 },
380};
Lev Walkina7591b52014-10-12 18:37:35 -0700381static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700382 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* typeref */
383 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some3 */
Lev Walkincee931e2005-08-16 16:56:59 +0000384};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800385asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000386 sizeof(struct Choice2),
387 offsetof(struct Choice2, _asn_ctx),
388 offsetof(struct Choice2, present),
389 sizeof(((struct Choice2 *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000390 asn_MAP_Choice2_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000391 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000392 .canonical_order = 0,
393 .ext_start = 1 /* Extensions start */
Lev Walkincee931e2005-08-16 16:56:59 +0000394};
395asn_TYPE_descriptor_t asn_DEF_Choice2 = {
396 "Choice2",
397 "Choice2",
398 CHOICE_free,
399 CHOICE_print,
400 CHOICE_constraint,
401 CHOICE_decode_ber,
402 CHOICE_encode_der,
403 CHOICE_decode_xer,
404 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700405 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400406 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000407 CHOICE_outmost_tag,
408 0, /* No effective tags (pointer) */
409 0, /* No effective tags (count) */
410 0, /* No tags (pointer) */
411 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400412 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000413 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000414 asn_MBR_Choice2_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000415 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000416 &asn_SPC_Choice2_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000417};
418
419
Lev Walkinb85a8132005-08-18 13:38:19 +0000420/*** <<< INCLUDES [Choice3] >>> ***/
421
422#include <constr_SEQUENCE.h>
423#include <asn_SEQUENCE_OF.h>
424#include <constr_SEQUENCE_OF.h>
425#include <constr_CHOICE.h>
426
427/*** <<< DEPS [Choice3] >>> ***/
428
429typedef enum Choice3_PR {
430 Choice3_PR_NOTHING, /* No components present */
431 Choice3_PR_a,
432 Choice3_PR_b,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000433 Choice3_PR_c
Lev Walkinb85a8132005-08-18 13:38:19 +0000434} Choice3_PR;
435
436/*** <<< FWD-DECLS [Choice3] >>> ***/
437
438struct Everything;
439struct Choice3;
440
441/*** <<< TYPE-DECLS [Choice3] >>> ***/
442
443typedef struct Choice3 {
444 Choice3_PR present;
445 union Choice3_u {
446 struct a {
447 struct Everything *aa;
448
449 /* Context for parsing across buffer boundaries */
450 asn_struct_ctx_t _asn_ctx;
451 } *a;
452 struct Everything *b;
453 struct c {
454 A_SEQUENCE_OF(struct Choice3) list;
455
456 /* Context for parsing across buffer boundaries */
457 asn_struct_ctx_t _asn_ctx;
458 } *c;
459 } choice;
460
461 /* Context for parsing across buffer boundaries */
462 asn_struct_ctx_t _asn_ctx;
463} Choice3_t;
464
465/*** <<< FUNC-DECLS [Choice3] >>> ***/
466
467extern asn_TYPE_descriptor_t asn_DEF_Choice3;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800468extern asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1;
469extern asn_TYPE_member_t asn_MBR_Choice3_1[3];
Lev Walkinb85a8132005-08-18 13:38:19 +0000470
471/*** <<< POST-INCLUDE [Choice3] >>> ***/
472
Lev Walkin22b5ed42006-09-13 02:51:20 +0000473#include "Everything.h"
474#include "Choice3.h"
Lev Walkinb85a8132005-08-18 13:38:19 +0000475
476/*** <<< STAT-DEFS [Choice3] >>> ***/
477
478static asn_TYPE_member_t asn_MBR_a_2[] = {
479 { ATF_POINTER, 0, offsetof(struct a, aa),
480 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
481 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000482 .type = &asn_DEF_Everything,
Lev Walkinb85a8132005-08-18 13:38:19 +0000483 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400484 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000485 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
486 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000487 .name = "aa"
488 },
489};
Lev Walkina7591b52014-10-12 18:37:35 -0700490static const ber_tlv_tag_t asn_DEF_a_tags_2[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000491 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
492 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
493};
Lev Walkina7591b52014-10-12 18:37:35 -0700494static const asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700495 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aa */
Lev Walkinb85a8132005-08-18 13:38:19 +0000496};
Lev Walkin59b176e2005-11-26 11:25:14 +0000497static asn_SEQUENCE_specifics_t asn_SPC_a_specs_2 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000498 sizeof(struct a),
499 offsetof(struct a, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000500 asn_MAP_a_tag2el_2,
Lev Walkinb85a8132005-08-18 13:38:19 +0000501 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000502 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +0000503 -1, /* Start extensions */
504 -1 /* Stop extensions */
505};
506static /* Use -fall-defs-global to expose */
507asn_TYPE_descriptor_t asn_DEF_a_2 = {
508 "a",
509 "a",
510 SEQUENCE_free,
511 SEQUENCE_print,
512 SEQUENCE_constraint,
513 SEQUENCE_decode_ber,
514 SEQUENCE_encode_der,
515 SEQUENCE_decode_xer,
516 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700517 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400518 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +0000519 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000520 asn_DEF_a_tags_2,
521 sizeof(asn_DEF_a_tags_2)
522 /sizeof(asn_DEF_a_tags_2[0]) - 1, /* 1 */
523 asn_DEF_a_tags_2, /* Same as above */
524 sizeof(asn_DEF_a_tags_2)
525 /sizeof(asn_DEF_a_tags_2[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400526 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000527 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000528 asn_MBR_a_2,
529 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000530 &asn_SPC_a_specs_2 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000531};
532
533static asn_TYPE_member_t asn_MBR_c_5[] = {
534 { ATF_POINTER, 0, 0,
535 .tag = -1 /* Ambiguous tag (CHOICE?) */,
536 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000537 .type = &asn_DEF_Choice3,
Lev Walkinb85a8132005-08-18 13:38:19 +0000538 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400539 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000540 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
541 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000542 .name = ""
543 },
544};
Lev Walkina7591b52014-10-12 18:37:35 -0700545static const ber_tlv_tag_t asn_DEF_c_tags_5[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000546 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
547 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
548};
Lev Walkin59b176e2005-11-26 11:25:14 +0000549static asn_SET_OF_specifics_t asn_SPC_c_specs_5 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000550 sizeof(struct c),
551 offsetof(struct c, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000552 2, /* XER encoding is XMLValueList */
Lev Walkinb85a8132005-08-18 13:38:19 +0000553};
554static /* Use -fall-defs-global to expose */
555asn_TYPE_descriptor_t asn_DEF_c_5 = {
556 "c",
557 "c",
558 SEQUENCE_OF_free,
559 SEQUENCE_OF_print,
560 SEQUENCE_OF_constraint,
561 SEQUENCE_OF_decode_ber,
562 SEQUENCE_OF_encode_der,
563 SEQUENCE_OF_decode_xer,
564 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700565 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400566 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +0000567 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000568 asn_DEF_c_tags_5,
569 sizeof(asn_DEF_c_tags_5)
570 /sizeof(asn_DEF_c_tags_5[0]) - 1, /* 1 */
571 asn_DEF_c_tags_5, /* Same as above */
572 sizeof(asn_DEF_c_tags_5)
573 /sizeof(asn_DEF_c_tags_5[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400574 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000575 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000576 asn_MBR_c_5,
577 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000578 &asn_SPC_c_specs_5 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000579};
580
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800581asn_TYPE_member_t asn_MBR_Choice3_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000582 { ATF_POINTER, 0, offsetof(struct Choice3, choice.a),
583 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000584 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000585 .type = &asn_DEF_a_2,
Lev Walkinb85a8132005-08-18 13:38:19 +0000586 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400587 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000588 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
589 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000590 .name = "a"
591 },
592 { ATF_POINTER, 0, offsetof(struct Choice3, choice.b),
593 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
594 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000595 .type = &asn_DEF_Everything,
Lev Walkinb85a8132005-08-18 13:38:19 +0000596 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400597 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000598 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
599 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000600 .name = "b"
601 },
602 { ATF_POINTER, 0, offsetof(struct Choice3, choice.c),
603 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000604 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000605 .type = &asn_DEF_c_5,
Lev Walkinb85a8132005-08-18 13:38:19 +0000606 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400607 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000608 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
609 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000610 .name = "c"
611 },
612};
Lev Walkina7591b52014-10-12 18:37:35 -0700613static const asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700614 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
615 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b */
616 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* c */
Lev Walkinb85a8132005-08-18 13:38:19 +0000617};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800618asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000619 sizeof(struct Choice3),
620 offsetof(struct Choice3, _asn_ctx),
621 offsetof(struct Choice3, present),
622 sizeof(((struct Choice3 *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000623 asn_MAP_Choice3_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000624 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000625 .canonical_order = 0,
626 .ext_start = -1 /* Extensions start */
Lev Walkinb85a8132005-08-18 13:38:19 +0000627};
628asn_TYPE_descriptor_t asn_DEF_Choice3 = {
629 "Choice3",
630 "Choice3",
631 CHOICE_free,
632 CHOICE_print,
633 CHOICE_constraint,
634 CHOICE_decode_ber,
635 CHOICE_encode_der,
636 CHOICE_decode_xer,
637 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700638 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400639 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +0000640 CHOICE_outmost_tag,
641 0, /* No effective tags (pointer) */
642 0, /* No effective tags (count) */
643 0, /* No tags (pointer) */
644 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400645 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000646 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000647 asn_MBR_Choice3_1,
648 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000649 &asn_SPC_Choice3_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000650};
651
652
Lev Walkincee931e2005-08-16 16:56:59 +0000653/*** <<< INCLUDES [Set] >>> ***/
654
655#include <asn_SET_OF.h>
Lev Walkin2a744a72013-03-27 01:56:23 -0700656#include <NativeInteger.h>
Lev Walkincee931e2005-08-16 16:56:59 +0000657#include <constr_SEQUENCE.h>
658#include <constr_SET_OF.h>
659
660/*** <<< FWD-DECLS [Set] >>> ***/
661
662struct Set;
Lev Walkinb85a8132005-08-18 13:38:19 +0000663struct Sequence;
Lev Walkincee931e2005-08-16 16:56:59 +0000664
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800665/*** <<< FWD-DEFS [Set] >>> ***/
666
667typedef struct Member {
668 long Int;
669 struct Set *set;
670 struct Sequence *seq;
671 struct Set *set2 /* OPTIONAL */;
672 /*
673 * This type is extensible,
674 * possible extensions are below.
675 */
676 struct Set *set3;
677
678 /* Context for parsing across buffer boundaries */
679 asn_struct_ctx_t _asn_ctx;
680} Member;
681
Lev Walkincee931e2005-08-16 16:56:59 +0000682/*** <<< TYPE-DECLS [Set] >>> ***/
683
684typedef struct Set {
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800685 A_SET_OF(Member) list;
Lev Walkincee931e2005-08-16 16:56:59 +0000686
687 /* Context for parsing across buffer boundaries */
688 asn_struct_ctx_t _asn_ctx;
689} Set_t;
690
691/*** <<< FUNC-DECLS [Set] >>> ***/
692
693extern asn_TYPE_descriptor_t asn_DEF_Set;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800694extern asn_SET_OF_specifics_t asn_SPC_Set_specs_1;
695extern asn_TYPE_member_t asn_MBR_Set_1[1];
Lev Walkincee931e2005-08-16 16:56:59 +0000696
697/*** <<< POST-INCLUDE [Set] >>> ***/
698
Lev Walkin22b5ed42006-09-13 02:51:20 +0000699#include "Set.h"
700#include "Sequence.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000701
702/*** <<< STAT-DEFS [Set] >>> ***/
703
704static asn_TYPE_member_t asn_MBR_Member_2[] = {
705 { ATF_NOFLAGS, 0, offsetof(struct Member, Int),
706 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
707 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700708 .type = &asn_DEF_NativeInteger,
Lev Walkincee931e2005-08-16 16:56:59 +0000709 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400710 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000711 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
712 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000713 .name = "int"
714 },
715 { ATF_POINTER, 0, offsetof(struct Member, set),
716 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
717 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000718 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000719 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400720 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000721 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
722 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000723 .name = "set"
724 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000725 { ATF_POINTER, 0, offsetof(struct Member, seq),
Lev Walkincee931e2005-08-16 16:56:59 +0000726 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
727 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000728 .type = &asn_DEF_Sequence,
Lev Walkincee931e2005-08-16 16:56:59 +0000729 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400730 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000731 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
732 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000733 .name = "seq"
734 },
735 { ATF_POINTER, 2, offsetof(struct Member, set2),
736 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
737 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000738 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000739 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400740 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000741 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
742 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000743 .name = "set2"
744 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000745 { ATF_POINTER, 1, offsetof(struct Member, set3),
Lev Walkincee931e2005-08-16 16:56:59 +0000746 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
747 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000748 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000749 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400750 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000751 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
752 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000753 .name = "set3"
754 },
755};
Lev Walkina7591b52014-10-12 18:37:35 -0700756static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000757 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
758};
Lev Walkina7591b52014-10-12 18:37:35 -0700759static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700760 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* int */
761 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
762 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seq */
763 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set2 */
764 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* set3 */
Lev Walkincee931e2005-08-16 16:56:59 +0000765};
Lev Walkin59b176e2005-11-26 11:25:14 +0000766static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000767 sizeof(struct Member),
768 offsetof(struct Member, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000769 asn_MAP_Member_tag2el_2,
Lev Walkincee931e2005-08-16 16:56:59 +0000770 5, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000771 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000772 3, /* Start extensions */
773 6 /* Stop extensions */
774};
775static /* Use -fall-defs-global to expose */
776asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000777 "SEQUENCE",
778 "SEQUENCE",
Lev Walkincee931e2005-08-16 16:56:59 +0000779 SEQUENCE_free,
780 SEQUENCE_print,
781 SEQUENCE_constraint,
782 SEQUENCE_decode_ber,
783 SEQUENCE_encode_der,
784 SEQUENCE_decode_xer,
785 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700786 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400787 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000788 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000789 asn_DEF_Member_tags_2,
790 sizeof(asn_DEF_Member_tags_2)
791 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
792 asn_DEF_Member_tags_2, /* Same as above */
793 sizeof(asn_DEF_Member_tags_2)
794 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400795 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000796 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000797 asn_MBR_Member_2,
798 5, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000799 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000800};
801
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800802asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000803 { ATF_POINTER, 0, 0,
804 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
805 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000806 .type = &asn_DEF_Member_2,
Lev Walkincee931e2005-08-16 16:56:59 +0000807 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400808 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000809 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
810 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000811 .name = ""
812 },
813};
Lev Walkina7591b52014-10-12 18:37:35 -0700814static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000815 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
816};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800817asn_SET_OF_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000818 sizeof(struct Set),
819 offsetof(struct Set, _asn_ctx),
820 0, /* XER encoding is XMLDelimitedItemList */
821};
822asn_TYPE_descriptor_t asn_DEF_Set = {
823 "Set",
824 "Set",
825 SET_OF_free,
826 SET_OF_print,
827 SET_OF_constraint,
828 SET_OF_decode_ber,
829 SET_OF_encode_der,
830 SET_OF_decode_xer,
831 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700832 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400833 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000834 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000835 asn_DEF_Set_tags_1,
836 sizeof(asn_DEF_Set_tags_1)
837 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
838 asn_DEF_Set_tags_1, /* Same as above */
839 sizeof(asn_DEF_Set_tags_1)
840 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400841 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000842 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000843 asn_MBR_Set_1,
844 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000845 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000846};
847
848
849/*** <<< INCLUDES [Sequence] >>> ***/
850
Lev Walkin2a744a72013-03-27 01:56:23 -0700851#include <NativeInteger.h>
Lev Walkincee931e2005-08-16 16:56:59 +0000852#include <constr_SEQUENCE.h>
853
854/*** <<< FWD-DECLS [Sequence] >>> ***/
855
856struct Sequence;
857struct Set;
858
859/*** <<< TYPE-DECLS [Sequence] >>> ***/
860
861typedef struct Sequence {
Lev Walkin2a744a72013-03-27 01:56:23 -0700862 long a;
Lev Walkincee931e2005-08-16 16:56:59 +0000863 struct Sequence *seq /* OPTIONAL */;
864 /*
865 * This type is extensible,
866 * possible extensions are below.
867 */
Lev Walkin2a744a72013-03-27 01:56:23 -0700868 long *b;
Lev Walkincee931e2005-08-16 16:56:59 +0000869 struct Set *set /* OPTIONAL */;
870
871 /* Context for parsing across buffer boundaries */
872 asn_struct_ctx_t _asn_ctx;
873} Sequence_t;
874
875/*** <<< FUNC-DECLS [Sequence] >>> ***/
876
877extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800878extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
879extern asn_TYPE_member_t asn_MBR_Sequence_1[4];
Lev Walkincee931e2005-08-16 16:56:59 +0000880
881/*** <<< POST-INCLUDE [Sequence] >>> ***/
882
Lev Walkin22b5ed42006-09-13 02:51:20 +0000883#include "Sequence.h"
884#include "Set.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000885
886/*** <<< STAT-DEFS [Sequence] >>> ***/
887
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800888asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000889 { ATF_NOFLAGS, 0, offsetof(struct Sequence, a),
890 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
891 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700892 .type = &asn_DEF_NativeInteger,
Lev Walkincee931e2005-08-16 16:56:59 +0000893 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400894 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000895 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
896 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000897 .name = "a"
898 },
899 { ATF_POINTER, 3, offsetof(struct Sequence, seq),
900 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
901 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000902 .type = &asn_DEF_Sequence,
Lev Walkincee931e2005-08-16 16:56:59 +0000903 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400904 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000905 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
906 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000907 .name = "seq"
908 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000909 { ATF_POINTER, 2, offsetof(struct Sequence, b),
Lev Walkincee931e2005-08-16 16:56:59 +0000910 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
911 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700912 .type = &asn_DEF_NativeInteger,
Lev Walkincee931e2005-08-16 16:56:59 +0000913 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400914 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000915 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
916 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000917 .name = "b"
918 },
919 { ATF_POINTER, 1, offsetof(struct Sequence, set),
920 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
921 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000922 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000923 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400924 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000925 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
926 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000927 .name = "set"
928 },
929};
Lev Walkina7591b52014-10-12 18:37:35 -0700930static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000931 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
932};
Lev Walkina7591b52014-10-12 18:37:35 -0700933static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700934 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
935 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* seq */
936 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b */
937 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* set */
Lev Walkincee931e2005-08-16 16:56:59 +0000938};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800939asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000940 sizeof(struct Sequence),
941 offsetof(struct Sequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000942 asn_MAP_Sequence_tag2el_1,
Lev Walkincee931e2005-08-16 16:56:59 +0000943 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000944 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000945 1, /* Start extensions */
946 5 /* Stop extensions */
947};
948asn_TYPE_descriptor_t asn_DEF_Sequence = {
949 "Sequence",
950 "Sequence",
951 SEQUENCE_free,
952 SEQUENCE_print,
953 SEQUENCE_constraint,
954 SEQUENCE_decode_ber,
955 SEQUENCE_encode_der,
956 SEQUENCE_decode_xer,
957 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700958 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400959 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000960 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000961 asn_DEF_Sequence_tags_1,
962 sizeof(asn_DEF_Sequence_tags_1)
963 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
964 asn_DEF_Sequence_tags_1, /* Same as above */
965 sizeof(asn_DEF_Sequence_tags_1)
966 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400967 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000968 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000969 asn_MBR_Sequence_1,
970 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000971 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000972};
973
Lev Walkinb85a8132005-08-18 13:38:19 +0000974
975/*** <<< INCLUDES [TypeRef] >>> ***/
976
Lev Walkin22b5ed42006-09-13 02:51:20 +0000977#include "Sequence.h"
Lev Walkinb85a8132005-08-18 13:38:19 +0000978
979/*** <<< TYPE-DECLS [TypeRef] >>> ***/
980
981typedef Sequence_t TypeRef_t;
982
983/*** <<< FUNC-DECLS [TypeRef] >>> ***/
984
985extern asn_TYPE_descriptor_t asn_DEF_TypeRef;
986asn_struct_free_f TypeRef_free;
987asn_struct_print_f TypeRef_print;
988asn_constr_check_f TypeRef_constraint;
989ber_type_decoder_f TypeRef_decode_ber;
990der_type_encoder_f TypeRef_encode_der;
991xer_type_decoder_f TypeRef_decode_xer;
992xer_type_encoder_f TypeRef_encode_xer;
993
994/*** <<< CODE [TypeRef] >>> ***/
995
Lev Walkinb85a8132005-08-18 13:38:19 +0000996/*
997 * This type is implemented using Sequence,
998 * so here we adjust the DEF accordingly.
999 */
Lev Walkinb85a8132005-08-18 13:38:19 +00001000
1001/*** <<< STAT-DEFS [TypeRef] >>> ***/
1002
Lev Walkina7591b52014-10-12 18:37:35 -07001003static const ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001004 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1005};
1006asn_TYPE_descriptor_t asn_DEF_TypeRef = {
1007 "TypeRef",
1008 "TypeRef",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001009 SEQUENCE_free,
1010 SEQUENCE_print,
1011 SEQUENCE_constraint,
1012 SEQUENCE_decode_ber,
1013 SEQUENCE_encode_der,
1014 SEQUENCE_decode_xer,
1015 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001016 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001017 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001018 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001019 asn_DEF_TypeRef_tags_1,
1020 sizeof(asn_DEF_TypeRef_tags_1)
1021 /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */
1022 asn_DEF_TypeRef_tags_1, /* Same as above */
1023 sizeof(asn_DEF_TypeRef_tags_1)
1024 /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001025 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001026 0, /* No PER visible constraints */
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001027 asn_MBR_Sequence_1,
1028 4, /* Elements count */
1029 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001030};
1031
1032
1033/*** <<< INCLUDES [Alpha] >>> ***/
1034
1035#include <constr_SEQUENCE.h>
1036
1037/*** <<< FWD-DECLS [Alpha] >>> ***/
1038
1039struct Beta;
1040
1041/*** <<< TYPE-DECLS [Alpha] >>> ***/
1042
1043typedef struct Alpha {
1044 struct Beta *a;
1045 struct b {
1046 struct Beta *b /* OPTIONAL */;
1047
1048 /* Context for parsing across buffer boundaries */
1049 asn_struct_ctx_t _asn_ctx;
1050 } b;
1051
1052 /* Context for parsing across buffer boundaries */
1053 asn_struct_ctx_t _asn_ctx;
1054} Alpha_t;
1055
1056/*** <<< FUNC-DECLS [Alpha] >>> ***/
1057
1058extern asn_TYPE_descriptor_t asn_DEF_Alpha;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001059extern asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1;
1060extern asn_TYPE_member_t asn_MBR_Alpha_1[2];
Lev Walkinb85a8132005-08-18 13:38:19 +00001061
1062/*** <<< POST-INCLUDE [Alpha] >>> ***/
1063
Lev Walkin22b5ed42006-09-13 02:51:20 +00001064#include "Beta.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001065
1066/*** <<< STAT-DEFS [Alpha] >>> ***/
1067
1068static asn_TYPE_member_t asn_MBR_b_3[] = {
1069 { ATF_POINTER, 1, offsetof(struct b, b),
1070 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1071 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001072 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +00001073 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001074 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001075 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1076 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001077 .name = "b"
1078 },
1079};
Lev Walkina7591b52014-10-12 18:37:35 -07001080static const ber_tlv_tag_t asn_DEF_b_tags_3[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001081 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1082 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1083};
Lev Walkina7591b52014-10-12 18:37:35 -07001084static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001085 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001086};
Lev Walkin59b176e2005-11-26 11:25:14 +00001087static asn_SEQUENCE_specifics_t asn_SPC_b_specs_3 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001088 sizeof(struct b),
1089 offsetof(struct b, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +00001090 asn_MAP_b_tag2el_3,
Lev Walkinb85a8132005-08-18 13:38:19 +00001091 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001092 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001093 -1, /* Start extensions */
1094 -1 /* Stop extensions */
1095};
1096static /* Use -fall-defs-global to expose */
1097asn_TYPE_descriptor_t asn_DEF_b_3 = {
1098 "b",
1099 "b",
1100 SEQUENCE_free,
1101 SEQUENCE_print,
1102 SEQUENCE_constraint,
1103 SEQUENCE_decode_ber,
1104 SEQUENCE_encode_der,
1105 SEQUENCE_decode_xer,
1106 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001107 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001108 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001109 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001110 asn_DEF_b_tags_3,
1111 sizeof(asn_DEF_b_tags_3)
1112 /sizeof(asn_DEF_b_tags_3[0]) - 1, /* 1 */
1113 asn_DEF_b_tags_3, /* Same as above */
1114 sizeof(asn_DEF_b_tags_3)
1115 /sizeof(asn_DEF_b_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001116 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001117 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001118 asn_MBR_b_3,
1119 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001120 &asn_SPC_b_specs_3 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001121};
1122
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001123asn_TYPE_member_t asn_MBR_Alpha_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001124 { ATF_POINTER, 0, offsetof(struct Alpha, a),
1125 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1126 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001127 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +00001128 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001129 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001130 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1131 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001132 .name = "a"
1133 },
1134 { ATF_NOFLAGS, 0, offsetof(struct Alpha, b),
1135 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +00001136 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001137 .type = &asn_DEF_b_3,
Lev Walkinb85a8132005-08-18 13:38:19 +00001138 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001139 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001140 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1141 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001142 .name = "b"
1143 },
1144};
Lev Walkina7591b52014-10-12 18:37:35 -07001145static const ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001146 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1147};
Lev Walkina7591b52014-10-12 18:37:35 -07001148static const asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001149 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1150 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001151};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001152asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001153 sizeof(struct Alpha),
1154 offsetof(struct Alpha, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +00001155 asn_MAP_Alpha_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001156 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001157 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001158 -1, /* Start extensions */
1159 -1 /* Stop extensions */
1160};
1161asn_TYPE_descriptor_t asn_DEF_Alpha = {
1162 "Alpha",
1163 "Alpha",
1164 SEQUENCE_free,
1165 SEQUENCE_print,
1166 SEQUENCE_constraint,
1167 SEQUENCE_decode_ber,
1168 SEQUENCE_encode_der,
1169 SEQUENCE_decode_xer,
1170 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001171 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001172 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001173 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001174 asn_DEF_Alpha_tags_1,
1175 sizeof(asn_DEF_Alpha_tags_1)
1176 /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */
1177 asn_DEF_Alpha_tags_1, /* Same as above */
1178 sizeof(asn_DEF_Alpha_tags_1)
1179 /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001180 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001181 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001182 asn_MBR_Alpha_1,
1183 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001184 &asn_SPC_Alpha_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001185};
1186
1187
1188/*** <<< INCLUDES [Beta] >>> ***/
1189
1190#include <constr_SEQUENCE.h>
1191
1192/*** <<< FWD-DECLS [Beta] >>> ***/
1193
1194struct Alpha;
1195struct Gamma;
1196
1197/*** <<< TYPE-DECLS [Beta] >>> ***/
1198
1199typedef struct Beta {
1200 struct Alpha *b /* OPTIONAL */;
1201 struct Gamma *g /* OPTIONAL */;
1202
1203 /* Context for parsing across buffer boundaries */
1204 asn_struct_ctx_t _asn_ctx;
1205} Beta_t;
1206
1207/*** <<< FUNC-DECLS [Beta] >>> ***/
1208
1209extern asn_TYPE_descriptor_t asn_DEF_Beta;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001210extern asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1;
1211extern asn_TYPE_member_t asn_MBR_Beta_1[2];
Lev Walkinb85a8132005-08-18 13:38:19 +00001212
1213/*** <<< POST-INCLUDE [Beta] >>> ***/
1214
Lev Walkin22b5ed42006-09-13 02:51:20 +00001215#include "Alpha.h"
1216#include "Gamma.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001217
1218/*** <<< STAT-DEFS [Beta] >>> ***/
1219
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001220asn_TYPE_member_t asn_MBR_Beta_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001221 { ATF_POINTER, 2, offsetof(struct Beta, b),
1222 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1223 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001224 .type = &asn_DEF_Alpha,
Lev Walkinb85a8132005-08-18 13:38:19 +00001225 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001226 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001227 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1228 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001229 .name = "b"
1230 },
1231 { ATF_POINTER, 1, offsetof(struct Beta, g),
1232 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1233 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001234 .type = &asn_DEF_Gamma,
Lev Walkinb85a8132005-08-18 13:38:19 +00001235 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001236 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001237 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1238 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001239 .name = "g"
1240 },
1241};
Lev Walkina7591b52014-10-12 18:37:35 -07001242static const ber_tlv_tag_t asn_DEF_Beta_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001243 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1244};
Lev Walkina7591b52014-10-12 18:37:35 -07001245static const asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001246 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b */
1247 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
Lev Walkinb85a8132005-08-18 13:38:19 +00001248};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001249asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001250 sizeof(struct Beta),
1251 offsetof(struct Beta, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +00001252 asn_MAP_Beta_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001253 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001254 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001255 -1, /* Start extensions */
1256 -1 /* Stop extensions */
1257};
1258asn_TYPE_descriptor_t asn_DEF_Beta = {
1259 "Beta",
1260 "Beta",
1261 SEQUENCE_free,
1262 SEQUENCE_print,
1263 SEQUENCE_constraint,
1264 SEQUENCE_decode_ber,
1265 SEQUENCE_encode_der,
1266 SEQUENCE_decode_xer,
1267 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001268 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001269 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001270 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001271 asn_DEF_Beta_tags_1,
1272 sizeof(asn_DEF_Beta_tags_1)
1273 /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */
1274 asn_DEF_Beta_tags_1, /* Same as above */
1275 sizeof(asn_DEF_Beta_tags_1)
1276 /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001277 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001278 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001279 asn_MBR_Beta_1,
1280 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001281 &asn_SPC_Beta_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001282};
1283
1284
1285/*** <<< INCLUDES [Gamma] >>> ***/
1286
1287#include <constr_SEQUENCE.h>
1288
1289/*** <<< FWD-DECLS [Gamma] >>> ***/
1290
1291struct TwoThree;
1292struct Alpha;
1293struct Beta;
1294
1295/*** <<< TYPE-DECLS [Gamma] >>> ***/
1296
1297typedef struct Gamma {
1298 struct TwoThree *o;
1299 struct Alpha *a;
1300 struct Beta *b;
1301
1302 /* Context for parsing across buffer boundaries */
1303 asn_struct_ctx_t _asn_ctx;
1304} Gamma_t;
1305
1306/*** <<< FUNC-DECLS [Gamma] >>> ***/
1307
1308extern asn_TYPE_descriptor_t asn_DEF_Gamma;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001309extern asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1;
1310extern asn_TYPE_member_t asn_MBR_Gamma_1[3];
Lev Walkinb85a8132005-08-18 13:38:19 +00001311
1312/*** <<< POST-INCLUDE [Gamma] >>> ***/
1313
Lev Walkin22b5ed42006-09-13 02:51:20 +00001314#include "TwoThree.h"
1315#include "Alpha.h"
1316#include "Beta.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001317
1318/*** <<< STAT-DEFS [Gamma] >>> ***/
1319
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001320asn_TYPE_member_t asn_MBR_Gamma_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001321 { ATF_POINTER, 0, offsetof(struct Gamma, o),
1322 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1323 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001324 .type = &asn_DEF_TwoThree,
Lev Walkinb85a8132005-08-18 13:38:19 +00001325 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001326 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001327 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1328 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001329 .name = "o"
1330 },
1331 { ATF_POINTER, 0, offsetof(struct Gamma, a),
1332 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1333 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001334 .type = &asn_DEF_Alpha,
Lev Walkinb85a8132005-08-18 13:38:19 +00001335 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001336 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001337 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1338 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001339 .name = "a"
1340 },
1341 { ATF_POINTER, 0, offsetof(struct Gamma, b),
1342 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
1343 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001344 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +00001345 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001346 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001347 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1348 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001349 .name = "b"
1350 },
1351};
Lev Walkina7591b52014-10-12 18:37:35 -07001352static const ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001353 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1354};
Lev Walkina7591b52014-10-12 18:37:35 -07001355static const asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001356 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* o */
1357 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a */
1358 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001359};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001360asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001361 sizeof(struct Gamma),
1362 offsetof(struct Gamma, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +00001363 asn_MAP_Gamma_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001364 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001365 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001366 -1, /* Start extensions */
1367 -1 /* Stop extensions */
1368};
1369asn_TYPE_descriptor_t asn_DEF_Gamma = {
1370 "Gamma",
1371 "Gamma",
1372 SEQUENCE_free,
1373 SEQUENCE_print,
1374 SEQUENCE_constraint,
1375 SEQUENCE_decode_ber,
1376 SEQUENCE_encode_der,
1377 SEQUENCE_decode_xer,
1378 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001379 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001380 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001381 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001382 asn_DEF_Gamma_tags_1,
1383 sizeof(asn_DEF_Gamma_tags_1)
1384 /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */
1385 asn_DEF_Gamma_tags_1, /* Same as above */
1386 sizeof(asn_DEF_Gamma_tags_1)
1387 /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001388 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001389 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001390 asn_MBR_Gamma_1,
1391 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001392 &asn_SPC_Gamma_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001393};
1394
1395
1396/*** <<< INCLUDES [OneTwo] >>> ***/
1397
1398#include <constr_SET.h>
1399
1400/*** <<< DEPS [OneTwo] >>> ***/
1401
1402
1403/*
1404 * Method of determining the components presence
1405 */
1406typedef enum OneTwo_PR {
1407 OneTwo_PR_m12, /* Member m12 is present */
1408} OneTwo_PR;
1409
1410/*** <<< FWD-DECLS [OneTwo] >>> ***/
1411
1412struct TwoThree;
1413
1414/*** <<< TYPE-DECLS [OneTwo] >>> ***/
1415
1416typedef struct OneTwo {
1417 struct TwoThree *m12;
1418
1419 /* Presence bitmask: ASN_SET_ISPRESENT(pOneTwo, OneTwo_PR_x) */
1420 unsigned int _presence_map
1421 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1422
1423 /* Context for parsing across buffer boundaries */
1424 asn_struct_ctx_t _asn_ctx;
1425} OneTwo_t;
1426
1427/*** <<< FUNC-DECLS [OneTwo] >>> ***/
1428
1429extern asn_TYPE_descriptor_t asn_DEF_OneTwo;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001430extern asn_SET_specifics_t asn_SPC_OneTwo_specs_1;
1431extern asn_TYPE_member_t asn_MBR_OneTwo_1[1];
Lev Walkinb85a8132005-08-18 13:38:19 +00001432
1433/*** <<< POST-INCLUDE [OneTwo] >>> ***/
1434
Lev Walkin22b5ed42006-09-13 02:51:20 +00001435#include "TwoThree.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001436
1437/*** <<< STAT-DEFS [OneTwo] >>> ***/
1438
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001439asn_TYPE_member_t asn_MBR_OneTwo_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001440 { ATF_POINTER, 0, offsetof(struct OneTwo, m12),
1441 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1442 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001443 .type = &asn_DEF_TwoThree,
Lev Walkinb85a8132005-08-18 13:38:19 +00001444 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001445 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001446 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1447 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001448 .name = "m12"
1449 },
1450};
Lev Walkina7591b52014-10-12 18:37:35 -07001451static const ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001452 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1453};
Lev Walkina7591b52014-10-12 18:37:35 -07001454static const asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001455 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m12 */
Lev Walkinb85a8132005-08-18 13:38:19 +00001456};
Lev Walkina7591b52014-10-12 18:37:35 -07001457static const uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001458 (1 << 7)
1459};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001460asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001461 sizeof(struct OneTwo),
1462 offsetof(struct OneTwo, _asn_ctx),
1463 offsetof(struct OneTwo, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +00001464 asn_MAP_OneTwo_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001465 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001466 asn_MAP_OneTwo_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001467 1, /* Count of tags in the CXER map */
1468 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -07001469 (const unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001470};
1471asn_TYPE_descriptor_t asn_DEF_OneTwo = {
1472 "OneTwo",
1473 "OneTwo",
1474 SET_free,
1475 SET_print,
1476 SET_constraint,
1477 SET_decode_ber,
1478 SET_encode_der,
1479 SET_decode_xer,
1480 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001481 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001482 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001483 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001484 asn_DEF_OneTwo_tags_1,
1485 sizeof(asn_DEF_OneTwo_tags_1)
1486 /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */
1487 asn_DEF_OneTwo_tags_1, /* Same as above */
1488 sizeof(asn_DEF_OneTwo_tags_1)
1489 /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001490 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001491 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001492 asn_MBR_OneTwo_1,
1493 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001494 &asn_SPC_OneTwo_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001495};
1496
1497
1498/*** <<< INCLUDES [TwoThree] >>> ***/
1499
1500#include <constr_SET.h>
1501
1502/*** <<< DEPS [TwoThree] >>> ***/
1503
1504
1505/*
1506 * Method of determining the components presence
1507 */
1508typedef enum TwoThree_PR {
1509 TwoThree_PR_m23, /* Member m23 is present */
1510} TwoThree_PR;
1511
1512/*** <<< FWD-DECLS [TwoThree] >>> ***/
1513
1514struct ThreeOne;
1515
1516/*** <<< TYPE-DECLS [TwoThree] >>> ***/
1517
1518typedef struct TwoThree {
1519 struct ThreeOne *m23;
1520
1521 /* Presence bitmask: ASN_SET_ISPRESENT(pTwoThree, TwoThree_PR_x) */
1522 unsigned int _presence_map
1523 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1524
1525 /* Context for parsing across buffer boundaries */
1526 asn_struct_ctx_t _asn_ctx;
1527} TwoThree_t;
1528
1529/*** <<< FUNC-DECLS [TwoThree] >>> ***/
1530
1531extern asn_TYPE_descriptor_t asn_DEF_TwoThree;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001532extern asn_SET_specifics_t asn_SPC_TwoThree_specs_1;
1533extern asn_TYPE_member_t asn_MBR_TwoThree_1[1];
Lev Walkinb85a8132005-08-18 13:38:19 +00001534
1535/*** <<< POST-INCLUDE [TwoThree] >>> ***/
1536
Lev Walkin22b5ed42006-09-13 02:51:20 +00001537#include "ThreeOne.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001538
1539/*** <<< STAT-DEFS [TwoThree] >>> ***/
1540
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001541asn_TYPE_member_t asn_MBR_TwoThree_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001542 { ATF_POINTER, 0, offsetof(struct TwoThree, m23),
1543 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1544 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001545 .type = &asn_DEF_ThreeOne,
Lev Walkinb85a8132005-08-18 13:38:19 +00001546 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001547 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001548 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1549 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001550 .name = "m23"
1551 },
1552};
Lev Walkina7591b52014-10-12 18:37:35 -07001553static const ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001554 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1555};
Lev Walkina7591b52014-10-12 18:37:35 -07001556static const asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001557 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m23 */
Lev Walkinb85a8132005-08-18 13:38:19 +00001558};
Lev Walkina7591b52014-10-12 18:37:35 -07001559static const uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001560 (1 << 7)
1561};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001562asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001563 sizeof(struct TwoThree),
1564 offsetof(struct TwoThree, _asn_ctx),
1565 offsetof(struct TwoThree, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +00001566 asn_MAP_TwoThree_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001567 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001568 asn_MAP_TwoThree_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001569 1, /* Count of tags in the CXER map */
1570 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -07001571 (const unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001572};
1573asn_TYPE_descriptor_t asn_DEF_TwoThree = {
1574 "TwoThree",
1575 "TwoThree",
1576 SET_free,
1577 SET_print,
1578 SET_constraint,
1579 SET_decode_ber,
1580 SET_encode_der,
1581 SET_decode_xer,
1582 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001583 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001584 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001585 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001586 asn_DEF_TwoThree_tags_1,
1587 sizeof(asn_DEF_TwoThree_tags_1)
1588 /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */
1589 asn_DEF_TwoThree_tags_1, /* Same as above */
1590 sizeof(asn_DEF_TwoThree_tags_1)
1591 /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001592 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001593 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001594 asn_MBR_TwoThree_1,
1595 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001596 &asn_SPC_TwoThree_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001597};
1598
1599
1600/*** <<< INCLUDES [ThreeOne] >>> ***/
1601
1602#include <constr_SET.h>
1603
1604/*** <<< DEPS [ThreeOne] >>> ***/
1605
1606
1607/*
1608 * Method of determining the components presence
1609 */
1610typedef enum ThreeOne_PR {
1611 ThreeOne_PR_m31, /* Member m31 is present */
1612 ThreeOne_PR_g, /* Member g is present */
1613} ThreeOne_PR;
1614
1615/*** <<< FWD-DECLS [ThreeOne] >>> ***/
1616
1617struct OneTwo;
1618struct Gamma;
1619
1620/*** <<< TYPE-DECLS [ThreeOne] >>> ***/
1621
1622typedef struct ThreeOne {
1623 struct OneTwo *m31;
1624 struct Gamma *g;
1625
1626 /* Presence bitmask: ASN_SET_ISPRESENT(pThreeOne, ThreeOne_PR_x) */
1627 unsigned int _presence_map
1628 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1629
1630 /* Context for parsing across buffer boundaries */
1631 asn_struct_ctx_t _asn_ctx;
1632} ThreeOne_t;
1633
1634/*** <<< FUNC-DECLS [ThreeOne] >>> ***/
1635
1636extern asn_TYPE_descriptor_t asn_DEF_ThreeOne;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001637extern asn_SET_specifics_t asn_SPC_ThreeOne_specs_1;
1638extern asn_TYPE_member_t asn_MBR_ThreeOne_1[2];
Lev Walkinb85a8132005-08-18 13:38:19 +00001639
1640/*** <<< POST-INCLUDE [ThreeOne] >>> ***/
1641
Lev Walkin22b5ed42006-09-13 02:51:20 +00001642#include "OneTwo.h"
1643#include "Gamma.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001644
1645/*** <<< STAT-DEFS [ThreeOne] >>> ***/
1646
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001647asn_TYPE_member_t asn_MBR_ThreeOne_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001648 { ATF_POINTER, 0, offsetof(struct ThreeOne, m31),
1649 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1650 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001651 .type = &asn_DEF_OneTwo,
Lev Walkinb85a8132005-08-18 13:38:19 +00001652 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001653 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001654 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1655 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001656 .name = "m31"
1657 },
1658 { ATF_POINTER, 0, offsetof(struct ThreeOne, g),
1659 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1660 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001661 .type = &asn_DEF_Gamma,
Lev Walkinb85a8132005-08-18 13:38:19 +00001662 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001663 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001664 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1665 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001666 .name = "g"
1667 },
1668};
Lev Walkina7591b52014-10-12 18:37:35 -07001669static const ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001670 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1671};
Lev Walkina7591b52014-10-12 18:37:35 -07001672static const asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001673 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m31 */
1674 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
Lev Walkinb85a8132005-08-18 13:38:19 +00001675};
Lev Walkina7591b52014-10-12 18:37:35 -07001676static const uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001677 (1 << 7) | (1 << 6)
1678};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001679asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001680 sizeof(struct ThreeOne),
1681 offsetof(struct ThreeOne, _asn_ctx),
1682 offsetof(struct ThreeOne, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +00001683 asn_MAP_ThreeOne_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001684 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001685 asn_MAP_ThreeOne_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001686 2, /* Count of tags in the CXER map */
1687 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -07001688 (const unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001689};
1690asn_TYPE_descriptor_t asn_DEF_ThreeOne = {
1691 "ThreeOne",
1692 "ThreeOne",
1693 SET_free,
1694 SET_print,
1695 SET_constraint,
1696 SET_decode_ber,
1697 SET_encode_der,
1698 SET_decode_xer,
1699 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001700 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001701 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001702 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001703 asn_DEF_ThreeOne_tags_1,
1704 sizeof(asn_DEF_ThreeOne_tags_1)
1705 /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */
1706 asn_DEF_ThreeOne_tags_1, /* Same as above */
1707 sizeof(asn_DEF_ThreeOne_tags_1)
1708 /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001709 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001710 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001711 asn_MBR_ThreeOne_1,
1712 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001713 &asn_SPC_ThreeOne_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001714};
1715