blob: b4d1ff68e1ba2823079a1edcc53c971a36a8733b [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 Walkin67a30122017-08-10 05:48:54 -070056 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000057 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040058 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000059 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
60 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000061 .name = "ch1"
62 },
Lev Walkinb85a8132005-08-18 13:38:19 +000063 { ATF_POINTER, 0, offsetof(struct Everything, ch2),
Lev Walkincee931e2005-08-16 16:56:59 +000064 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
65 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000066 .type = &asn_DEF_Choice2,
Lev Walkin67a30122017-08-10 05:48:54 -070067 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000068 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040069 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000070 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
71 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000072 .name = "ch2"
73 },
Lev Walkinb85a8132005-08-18 13:38:19 +000074 { ATF_POINTER, 0, offsetof(struct Everything, ch3),
Lev Walkincee931e2005-08-16 16:56:59 +000075 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkinb85a8132005-08-18 13:38:19 +000076 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000077 .type = &asn_DEF_Choice3,
Lev Walkin67a30122017-08-10 05:48:54 -070078 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +000079 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040080 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000081 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
82 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +000083 .name = "ch3"
84 },
85 { ATF_NOFLAGS, 0, offsetof(struct Everything, set),
86 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
Lev Walkincee931e2005-08-16 16:56:59 +000087 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000088 .type = &asn_DEF_Set,
Lev Walkin67a30122017-08-10 05:48:54 -070089 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000090 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040091 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000092 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
93 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000094 .name = "set"
95 },
Lev Walkinb85a8132005-08-18 13:38:19 +000096 { ATF_NOFLAGS, 0, offsetof(struct Everything, a),
97 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
98 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000099 .type = &asn_DEF_Alpha,
Lev Walkin67a30122017-08-10 05:48:54 -0700100 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000101 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400102 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000103 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
104 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000105 .name = "a"
106 },
107 { ATF_NOFLAGS, 0, offsetof(struct Everything, b),
108 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
109 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000110 .type = &asn_DEF_Beta,
Lev Walkin67a30122017-08-10 05:48:54 -0700111 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000112 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400113 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000114 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
115 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000116 .name = "b"
117 },
118 { ATF_NOFLAGS, 0, offsetof(struct Everything, g),
119 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
120 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000121 .type = &asn_DEF_Gamma,
Lev Walkin67a30122017-08-10 05:48:54 -0700122 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000123 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400124 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000125 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
126 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000127 .name = "g"
128 },
129 { ATF_NOFLAGS, 0, offsetof(struct Everything, ot),
130 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
131 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000132 .type = &asn_DEF_OneTwo,
Lev Walkin67a30122017-08-10 05:48:54 -0700133 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000134 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400135 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000136 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
137 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000138 .name = "ot"
139 },
140 { ATF_NOFLAGS, 0, offsetof(struct Everything, tt),
141 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
142 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000143 .type = &asn_DEF_TwoThree,
Lev Walkin67a30122017-08-10 05:48:54 -0700144 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000145 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400146 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000147 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
148 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000149 .name = "tt"
150 },
151 { ATF_NOFLAGS, 0, offsetof(struct Everything, to),
152 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
153 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000154 .type = &asn_DEF_ThreeOne,
Lev Walkin67a30122017-08-10 05:48:54 -0700155 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000156 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400157 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000158 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
159 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000160 .name = "to"
161 },
Lev Walkincee931e2005-08-16 16:56:59 +0000162};
Lev Walkina7591b52014-10-12 18:37:35 -0700163static const ber_tlv_tag_t asn_DEF_Everything_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000164 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
165};
Lev Walkina7591b52014-10-12 18:37:35 -0700166static const asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700167 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */
168 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */
169 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */
170 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set */
171 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* a */
172 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* b */
173 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* g */
174 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ot */
175 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* tt */
176 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* to */
Lev Walkincee931e2005-08-16 16:56:59 +0000177};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800178asn_SEQUENCE_specifics_t asn_SPC_Everything_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000179 sizeof(struct Everything),
180 offsetof(struct Everything, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700181 .tag2el = asn_MAP_Everything_tag2el_1,
182 .tag2el_count = 10, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000183 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000184 -1, /* Start extensions */
185 -1 /* Stop extensions */
186};
187asn_TYPE_descriptor_t asn_DEF_Everything = {
188 "Everything",
189 "Everything",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800190 &asn_OP_SEQUENCE,
Lev Walkincee931e2005-08-16 16:56:59 +0000191 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000192 asn_DEF_Everything_tags_1,
193 sizeof(asn_DEF_Everything_tags_1)
194 /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */
195 asn_DEF_Everything_tags_1, /* Same as above */
196 sizeof(asn_DEF_Everything_tags_1)
197 /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400198 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000199 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000200 asn_MBR_Everything_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000201 10, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000202 &asn_SPC_Everything_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000203};
204
205
206/*** <<< INCLUDES [Choice1] >>> ***/
207
208#include <constr_CHOICE.h>
209
210/*** <<< DEPS [Choice1] >>> ***/
211
212typedef enum Choice1_PR {
213 Choice1_PR_NOTHING, /* No components present */
214 Choice1_PR_something,
215 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000216 Choice1_PR_some2
Lev Walkincee931e2005-08-16 16:56:59 +0000217} Choice1_PR;
218
219/*** <<< FWD-DECLS [Choice1] >>> ***/
220
221struct Everything;
222
223/*** <<< TYPE-DECLS [Choice1] >>> ***/
224
225typedef struct Choice1 {
226 Choice1_PR present;
227 union Choice1_u {
228 struct Everything *something;
229 /*
230 * This type is extensible,
231 * possible extensions are below.
232 */
233 struct Everything *some2;
234 } choice;
235
236 /* Context for parsing across buffer boundaries */
237 asn_struct_ctx_t _asn_ctx;
238} Choice1_t;
239
240/*** <<< FUNC-DECLS [Choice1] >>> ***/
241
242extern asn_TYPE_descriptor_t asn_DEF_Choice1;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800243extern asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1;
244extern asn_TYPE_member_t asn_MBR_Choice1_1[2];
Lev Walkincee931e2005-08-16 16:56:59 +0000245
246/*** <<< POST-INCLUDE [Choice1] >>> ***/
247
Lev Walkin22b5ed42006-09-13 02:51:20 +0000248#include "Everything.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000249
250/*** <<< STAT-DEFS [Choice1] >>> ***/
251
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800252asn_TYPE_member_t asn_MBR_Choice1_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000253 { ATF_POINTER, 0, offsetof(struct Choice1, choice.something),
254 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
255 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000256 .type = &asn_DEF_Everything,
Lev Walkin67a30122017-08-10 05:48:54 -0700257 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000258 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400259 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000260 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
261 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000262 .name = "something"
263 },
264 { ATF_POINTER, 0, offsetof(struct Choice1, choice.some2),
265 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
266 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000267 .type = &asn_DEF_Everything,
Lev Walkin67a30122017-08-10 05:48:54 -0700268 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000269 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400270 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000271 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
272 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000273 .name = "some2"
274 },
275};
Lev Walkina7591b52014-10-12 18:37:35 -0700276static const asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700277 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* something */
278 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some2 */
Lev Walkincee931e2005-08-16 16:56:59 +0000279};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800280asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000281 sizeof(struct Choice1),
282 offsetof(struct Choice1, _asn_ctx),
283 offsetof(struct Choice1, present),
284 sizeof(((struct Choice1 *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700285 .tag2el = asn_MAP_Choice1_tag2el_1,
286 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000287 .canonical_order = 0,
288 .ext_start = 1 /* Extensions start */
Lev Walkincee931e2005-08-16 16:56:59 +0000289};
290asn_TYPE_descriptor_t asn_DEF_Choice1 = {
291 "Choice1",
292 "Choice1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800293 &asn_OP_CHOICE,
Lev Walkincee931e2005-08-16 16:56:59 +0000294 CHOICE_constraint,
Lev Walkincee931e2005-08-16 16:56:59 +0000295 0, /* No effective tags (pointer) */
296 0, /* No effective tags (count) */
297 0, /* No tags (pointer) */
298 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400299 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000300 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000301 asn_MBR_Choice1_1,
302 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000303 &asn_SPC_Choice1_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000304};
305
306
307/*** <<< INCLUDES [Choice2] >>> ***/
308
309#include <constr_CHOICE.h>
310
311/*** <<< DEPS [Choice2] >>> ***/
312
313typedef enum Choice2_PR {
314 Choice2_PR_NOTHING, /* No components present */
Lev Walkinb85a8132005-08-18 13:38:19 +0000315 Choice2_PR_typeref,
Lev Walkincee931e2005-08-16 16:56:59 +0000316 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000317 Choice2_PR_some3
Lev Walkincee931e2005-08-16 16:56:59 +0000318} Choice2_PR;
319
320/*** <<< FWD-DECLS [Choice2] >>> ***/
321
Lev Walkinb85a8132005-08-18 13:38:19 +0000322struct Sequence;
Lev Walkincee931e2005-08-16 16:56:59 +0000323struct Everything;
324
325/*** <<< TYPE-DECLS [Choice2] >>> ***/
326
327typedef struct Choice2 {
328 Choice2_PR present;
329 union Choice2_u {
Lev Walkinb85a8132005-08-18 13:38:19 +0000330 struct Sequence *typeref;
Lev Walkincee931e2005-08-16 16:56:59 +0000331 /*
332 * This type is extensible,
333 * possible extensions are below.
334 */
335 struct Everything *some3;
336 } choice;
337
338 /* Context for parsing across buffer boundaries */
339 asn_struct_ctx_t _asn_ctx;
340} Choice2_t;
341
342/*** <<< FUNC-DECLS [Choice2] >>> ***/
343
344extern asn_TYPE_descriptor_t asn_DEF_Choice2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800345extern asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1;
346extern asn_TYPE_member_t asn_MBR_Choice2_1[2];
Lev Walkincee931e2005-08-16 16:56:59 +0000347
348/*** <<< POST-INCLUDE [Choice2] >>> ***/
349
Lev Walkin22b5ed42006-09-13 02:51:20 +0000350#include "TypeRef.h"
351#include "Everything.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000352
353/*** <<< STAT-DEFS [Choice2] >>> ***/
354
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800355asn_TYPE_member_t asn_MBR_Choice2_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000356 { ATF_POINTER, 0, offsetof(struct Choice2, choice.typeref),
Lev Walkincee931e2005-08-16 16:56:59 +0000357 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
358 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000359 .type = &asn_DEF_TypeRef,
Lev Walkin67a30122017-08-10 05:48:54 -0700360 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000361 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400362 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000363 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
364 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000365 .name = "typeref"
366 },
367 { ATF_POINTER, 0, offsetof(struct Choice2, choice.some3),
368 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
369 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000370 .type = &asn_DEF_Everything,
Lev Walkin67a30122017-08-10 05:48:54 -0700371 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000372 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400373 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000374 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
375 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000376 .name = "some3"
377 },
378};
Lev Walkina7591b52014-10-12 18:37:35 -0700379static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700380 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* typeref */
381 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some3 */
Lev Walkincee931e2005-08-16 16:56:59 +0000382};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800383asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000384 sizeof(struct Choice2),
385 offsetof(struct Choice2, _asn_ctx),
386 offsetof(struct Choice2, present),
387 sizeof(((struct Choice2 *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700388 .tag2el = asn_MAP_Choice2_tag2el_1,
389 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000390 .canonical_order = 0,
391 .ext_start = 1 /* Extensions start */
Lev Walkincee931e2005-08-16 16:56:59 +0000392};
393asn_TYPE_descriptor_t asn_DEF_Choice2 = {
394 "Choice2",
395 "Choice2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800396 &asn_OP_CHOICE,
Lev Walkincee931e2005-08-16 16:56:59 +0000397 CHOICE_constraint,
Lev Walkincee931e2005-08-16 16:56:59 +0000398 0, /* No effective tags (pointer) */
399 0, /* No effective tags (count) */
400 0, /* No tags (pointer) */
401 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400402 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000403 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000404 asn_MBR_Choice2_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000405 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000406 &asn_SPC_Choice2_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000407};
408
409
Lev Walkinb85a8132005-08-18 13:38:19 +0000410/*** <<< INCLUDES [Choice3] >>> ***/
411
412#include <constr_SEQUENCE.h>
413#include <asn_SEQUENCE_OF.h>
414#include <constr_SEQUENCE_OF.h>
415#include <constr_CHOICE.h>
416
417/*** <<< DEPS [Choice3] >>> ***/
418
419typedef enum Choice3_PR {
420 Choice3_PR_NOTHING, /* No components present */
421 Choice3_PR_a,
422 Choice3_PR_b,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000423 Choice3_PR_c
Lev Walkinb85a8132005-08-18 13:38:19 +0000424} Choice3_PR;
425
426/*** <<< FWD-DECLS [Choice3] >>> ***/
427
428struct Everything;
429struct Choice3;
430
431/*** <<< TYPE-DECLS [Choice3] >>> ***/
432
433typedef struct Choice3 {
434 Choice3_PR present;
435 union Choice3_u {
436 struct a {
437 struct Everything *aa;
438
439 /* Context for parsing across buffer boundaries */
440 asn_struct_ctx_t _asn_ctx;
441 } *a;
442 struct Everything *b;
443 struct c {
444 A_SEQUENCE_OF(struct Choice3) list;
445
446 /* Context for parsing across buffer boundaries */
447 asn_struct_ctx_t _asn_ctx;
448 } *c;
449 } choice;
450
451 /* Context for parsing across buffer boundaries */
452 asn_struct_ctx_t _asn_ctx;
453} Choice3_t;
454
455/*** <<< FUNC-DECLS [Choice3] >>> ***/
456
457extern asn_TYPE_descriptor_t asn_DEF_Choice3;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800458extern asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1;
459extern asn_TYPE_member_t asn_MBR_Choice3_1[3];
Lev Walkinb85a8132005-08-18 13:38:19 +0000460
461/*** <<< POST-INCLUDE [Choice3] >>> ***/
462
Lev Walkin22b5ed42006-09-13 02:51:20 +0000463#include "Everything.h"
464#include "Choice3.h"
Lev Walkinb85a8132005-08-18 13:38:19 +0000465
466/*** <<< STAT-DEFS [Choice3] >>> ***/
467
468static asn_TYPE_member_t asn_MBR_a_2[] = {
469 { ATF_POINTER, 0, offsetof(struct a, aa),
470 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
471 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000472 .type = &asn_DEF_Everything,
Lev Walkin67a30122017-08-10 05:48:54 -0700473 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000474 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400475 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000476 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
477 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000478 .name = "aa"
479 },
480};
Lev Walkina7591b52014-10-12 18:37:35 -0700481static const ber_tlv_tag_t asn_DEF_a_tags_2[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000482 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
483 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
484};
Lev Walkina7591b52014-10-12 18:37:35 -0700485static const asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700486 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aa */
Lev Walkinb85a8132005-08-18 13:38:19 +0000487};
Lev Walkin59b176e2005-11-26 11:25:14 +0000488static asn_SEQUENCE_specifics_t asn_SPC_a_specs_2 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000489 sizeof(struct a),
490 offsetof(struct a, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700491 .tag2el = asn_MAP_a_tag2el_2,
492 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000493 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +0000494 -1, /* Start extensions */
495 -1 /* Stop extensions */
496};
497static /* Use -fall-defs-global to expose */
498asn_TYPE_descriptor_t asn_DEF_a_2 = {
499 "a",
500 "a",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800501 &asn_OP_SEQUENCE,
Lev Walkinb85a8132005-08-18 13:38:19 +0000502 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000503 asn_DEF_a_tags_2,
504 sizeof(asn_DEF_a_tags_2)
505 /sizeof(asn_DEF_a_tags_2[0]) - 1, /* 1 */
506 asn_DEF_a_tags_2, /* Same as above */
507 sizeof(asn_DEF_a_tags_2)
508 /sizeof(asn_DEF_a_tags_2[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400509 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000510 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000511 asn_MBR_a_2,
512 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000513 &asn_SPC_a_specs_2 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000514};
515
516static asn_TYPE_member_t asn_MBR_c_5[] = {
517 { ATF_POINTER, 0, 0,
518 .tag = -1 /* Ambiguous tag (CHOICE?) */,
519 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000520 .type = &asn_DEF_Choice3,
Lev Walkin67a30122017-08-10 05:48:54 -0700521 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000522 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400523 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000524 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
525 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000526 .name = ""
527 },
528};
Lev Walkina7591b52014-10-12 18:37:35 -0700529static const ber_tlv_tag_t asn_DEF_c_tags_5[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000530 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
531 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
532};
Lev Walkin59b176e2005-11-26 11:25:14 +0000533static asn_SET_OF_specifics_t asn_SPC_c_specs_5 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000534 sizeof(struct c),
535 offsetof(struct c, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000536 2, /* XER encoding is XMLValueList */
Lev Walkinb85a8132005-08-18 13:38:19 +0000537};
538static /* Use -fall-defs-global to expose */
539asn_TYPE_descriptor_t asn_DEF_c_5 = {
540 "c",
541 "c",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800542 &asn_OP_SEQUENCE_OF,
Lev Walkinb85a8132005-08-18 13:38:19 +0000543 SEQUENCE_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000544 asn_DEF_c_tags_5,
545 sizeof(asn_DEF_c_tags_5)
546 /sizeof(asn_DEF_c_tags_5[0]) - 1, /* 1 */
547 asn_DEF_c_tags_5, /* Same as above */
548 sizeof(asn_DEF_c_tags_5)
549 /sizeof(asn_DEF_c_tags_5[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400550 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000551 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000552 asn_MBR_c_5,
553 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000554 &asn_SPC_c_specs_5 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000555};
556
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800557asn_TYPE_member_t asn_MBR_Choice3_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000558 { ATF_POINTER, 0, offsetof(struct Choice3, choice.a),
559 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000560 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000561 .type = &asn_DEF_a_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700562 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000563 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400564 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000565 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
566 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000567 .name = "a"
568 },
569 { ATF_POINTER, 0, offsetof(struct Choice3, choice.b),
570 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
571 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000572 .type = &asn_DEF_Everything,
Lev Walkin67a30122017-08-10 05:48:54 -0700573 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000574 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400575 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000576 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
577 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000578 .name = "b"
579 },
580 { ATF_POINTER, 0, offsetof(struct Choice3, choice.c),
581 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000582 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000583 .type = &asn_DEF_c_5,
Lev Walkin67a30122017-08-10 05:48:54 -0700584 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000585 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400586 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000587 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
588 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000589 .name = "c"
590 },
591};
Lev Walkina7591b52014-10-12 18:37:35 -0700592static const asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700593 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
594 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b */
595 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* c */
Lev Walkinb85a8132005-08-18 13:38:19 +0000596};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800597asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000598 sizeof(struct Choice3),
599 offsetof(struct Choice3, _asn_ctx),
600 offsetof(struct Choice3, present),
601 sizeof(((struct Choice3 *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700602 .tag2el = asn_MAP_Choice3_tag2el_1,
603 .tag2el_count = 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000604 .canonical_order = 0,
605 .ext_start = -1 /* Extensions start */
Lev Walkinb85a8132005-08-18 13:38:19 +0000606};
607asn_TYPE_descriptor_t asn_DEF_Choice3 = {
608 "Choice3",
609 "Choice3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800610 &asn_OP_CHOICE,
Lev Walkinb85a8132005-08-18 13:38:19 +0000611 CHOICE_constraint,
Lev Walkinb85a8132005-08-18 13:38:19 +0000612 0, /* No effective tags (pointer) */
613 0, /* No effective tags (count) */
614 0, /* No tags (pointer) */
615 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400616 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000617 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000618 asn_MBR_Choice3_1,
619 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000620 &asn_SPC_Choice3_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000621};
622
623
Lev Walkincee931e2005-08-16 16:56:59 +0000624/*** <<< INCLUDES [Set] >>> ***/
625
626#include <asn_SET_OF.h>
Lev Walkin2a744a72013-03-27 01:56:23 -0700627#include <NativeInteger.h>
Lev Walkincee931e2005-08-16 16:56:59 +0000628#include <constr_SEQUENCE.h>
629#include <constr_SET_OF.h>
630
631/*** <<< FWD-DECLS [Set] >>> ***/
632
633struct Set;
Lev Walkinb85a8132005-08-18 13:38:19 +0000634struct Sequence;
Lev Walkincee931e2005-08-16 16:56:59 +0000635
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800636/*** <<< FWD-DEFS [Set] >>> ***/
637
638typedef struct Member {
639 long Int;
640 struct Set *set;
641 struct Sequence *seq;
642 struct Set *set2 /* OPTIONAL */;
643 /*
644 * This type is extensible,
645 * possible extensions are below.
646 */
647 struct Set *set3;
648
649 /* Context for parsing across buffer boundaries */
650 asn_struct_ctx_t _asn_ctx;
651} Member;
652
Lev Walkincee931e2005-08-16 16:56:59 +0000653/*** <<< TYPE-DECLS [Set] >>> ***/
654
655typedef struct Set {
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800656 A_SET_OF(Member) list;
Lev Walkincee931e2005-08-16 16:56:59 +0000657
658 /* Context for parsing across buffer boundaries */
659 asn_struct_ctx_t _asn_ctx;
660} Set_t;
661
662/*** <<< FUNC-DECLS [Set] >>> ***/
663
664extern asn_TYPE_descriptor_t asn_DEF_Set;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800665extern asn_SET_OF_specifics_t asn_SPC_Set_specs_1;
666extern asn_TYPE_member_t asn_MBR_Set_1[1];
Lev Walkincee931e2005-08-16 16:56:59 +0000667
668/*** <<< POST-INCLUDE [Set] >>> ***/
669
Lev Walkin22b5ed42006-09-13 02:51:20 +0000670#include "Set.h"
671#include "Sequence.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000672
673/*** <<< STAT-DEFS [Set] >>> ***/
674
675static asn_TYPE_member_t asn_MBR_Member_2[] = {
676 { ATF_NOFLAGS, 0, offsetof(struct Member, Int),
677 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
678 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700679 .type = &asn_DEF_NativeInteger,
Lev Walkin67a30122017-08-10 05:48:54 -0700680 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000681 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400682 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000683 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
684 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000685 .name = "int"
686 },
687 { ATF_POINTER, 0, offsetof(struct Member, set),
688 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
689 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000690 .type = &asn_DEF_Set,
Lev Walkin67a30122017-08-10 05:48:54 -0700691 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000692 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400693 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000694 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
695 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000696 .name = "set"
697 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000698 { ATF_POINTER, 0, offsetof(struct Member, seq),
Lev Walkincee931e2005-08-16 16:56:59 +0000699 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
700 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000701 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700702 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000703 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400704 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000705 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
706 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000707 .name = "seq"
708 },
709 { ATF_POINTER, 2, offsetof(struct Member, set2),
710 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
711 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000712 .type = &asn_DEF_Set,
Lev Walkin67a30122017-08-10 05:48:54 -0700713 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000714 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400715 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000716 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
717 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000718 .name = "set2"
719 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000720 { ATF_POINTER, 1, offsetof(struct Member, set3),
Lev Walkincee931e2005-08-16 16:56:59 +0000721 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
722 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000723 .type = &asn_DEF_Set,
Lev Walkin67a30122017-08-10 05:48:54 -0700724 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000725 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400726 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000727 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
728 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000729 .name = "set3"
730 },
731};
Lev Walkina7591b52014-10-12 18:37:35 -0700732static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000733 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
734};
Lev Walkina7591b52014-10-12 18:37:35 -0700735static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700736 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* int */
737 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
738 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seq */
739 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set2 */
740 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* set3 */
Lev Walkincee931e2005-08-16 16:56:59 +0000741};
Lev Walkin59b176e2005-11-26 11:25:14 +0000742static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000743 sizeof(struct Member),
744 offsetof(struct Member, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700745 .tag2el = asn_MAP_Member_tag2el_2,
746 .tag2el_count = 5, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000747 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000748 3, /* Start extensions */
749 6 /* Stop extensions */
750};
751static /* Use -fall-defs-global to expose */
752asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000753 "SEQUENCE",
754 "SEQUENCE",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800755 &asn_OP_SEQUENCE,
Lev Walkincee931e2005-08-16 16:56:59 +0000756 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000757 asn_DEF_Member_tags_2,
758 sizeof(asn_DEF_Member_tags_2)
759 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
760 asn_DEF_Member_tags_2, /* Same as above */
761 sizeof(asn_DEF_Member_tags_2)
762 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400763 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000764 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000765 asn_MBR_Member_2,
766 5, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000767 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000768};
769
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800770asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000771 { ATF_POINTER, 0, 0,
772 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
773 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000774 .type = &asn_DEF_Member_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700775 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000776 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400777 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000778 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
779 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000780 .name = ""
781 },
782};
Lev Walkina7591b52014-10-12 18:37:35 -0700783static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000784 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
785};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800786asn_SET_OF_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000787 sizeof(struct Set),
788 offsetof(struct Set, _asn_ctx),
789 0, /* XER encoding is XMLDelimitedItemList */
790};
791asn_TYPE_descriptor_t asn_DEF_Set = {
792 "Set",
793 "Set",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800794 &asn_OP_SET_OF,
Lev Walkincee931e2005-08-16 16:56:59 +0000795 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000796 asn_DEF_Set_tags_1,
797 sizeof(asn_DEF_Set_tags_1)
798 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
799 asn_DEF_Set_tags_1, /* Same as above */
800 sizeof(asn_DEF_Set_tags_1)
801 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400802 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000803 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000804 asn_MBR_Set_1,
805 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000806 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000807};
808
809
810/*** <<< INCLUDES [Sequence] >>> ***/
811
Lev Walkin2a744a72013-03-27 01:56:23 -0700812#include <NativeInteger.h>
Lev Walkincee931e2005-08-16 16:56:59 +0000813#include <constr_SEQUENCE.h>
814
815/*** <<< FWD-DECLS [Sequence] >>> ***/
816
817struct Sequence;
818struct Set;
819
820/*** <<< TYPE-DECLS [Sequence] >>> ***/
821
822typedef struct Sequence {
Lev Walkin2a744a72013-03-27 01:56:23 -0700823 long a;
Lev Walkincee931e2005-08-16 16:56:59 +0000824 struct Sequence *seq /* OPTIONAL */;
825 /*
826 * This type is extensible,
827 * possible extensions are below.
828 */
Lev Walkin2a744a72013-03-27 01:56:23 -0700829 long *b;
Lev Walkincee931e2005-08-16 16:56:59 +0000830 struct Set *set /* OPTIONAL */;
831
832 /* Context for parsing across buffer boundaries */
833 asn_struct_ctx_t _asn_ctx;
834} Sequence_t;
835
836/*** <<< FUNC-DECLS [Sequence] >>> ***/
837
838extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800839extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
840extern asn_TYPE_member_t asn_MBR_Sequence_1[4];
Lev Walkincee931e2005-08-16 16:56:59 +0000841
842/*** <<< POST-INCLUDE [Sequence] >>> ***/
843
Lev Walkin22b5ed42006-09-13 02:51:20 +0000844#include "Sequence.h"
845#include "Set.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000846
847/*** <<< STAT-DEFS [Sequence] >>> ***/
848
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800849asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000850 { ATF_NOFLAGS, 0, offsetof(struct Sequence, a),
851 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
852 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700853 .type = &asn_DEF_NativeInteger,
Lev Walkin67a30122017-08-10 05:48:54 -0700854 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000855 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400856 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000857 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
858 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000859 .name = "a"
860 },
861 { ATF_POINTER, 3, offsetof(struct Sequence, seq),
862 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
863 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000864 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700865 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000866 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400867 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000868 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
869 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000870 .name = "seq"
871 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000872 { ATF_POINTER, 2, offsetof(struct Sequence, b),
Lev Walkincee931e2005-08-16 16:56:59 +0000873 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
874 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700875 .type = &asn_DEF_NativeInteger,
Lev Walkin67a30122017-08-10 05:48:54 -0700876 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000877 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400878 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000879 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
880 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000881 .name = "b"
882 },
883 { ATF_POINTER, 1, offsetof(struct Sequence, set),
884 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
885 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000886 .type = &asn_DEF_Set,
Lev Walkin67a30122017-08-10 05:48:54 -0700887 .type_selector = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000888 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400889 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000890 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
891 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000892 .name = "set"
893 },
894};
Lev Walkina7591b52014-10-12 18:37:35 -0700895static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000896 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
897};
Lev Walkina7591b52014-10-12 18:37:35 -0700898static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700899 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
900 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* seq */
901 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b */
902 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* set */
Lev Walkincee931e2005-08-16 16:56:59 +0000903};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800904asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000905 sizeof(struct Sequence),
906 offsetof(struct Sequence, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700907 .tag2el = asn_MAP_Sequence_tag2el_1,
908 .tag2el_count = 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000909 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000910 1, /* Start extensions */
911 5 /* Stop extensions */
912};
913asn_TYPE_descriptor_t asn_DEF_Sequence = {
914 "Sequence",
915 "Sequence",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800916 &asn_OP_SEQUENCE,
Lev Walkincee931e2005-08-16 16:56:59 +0000917 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000918 asn_DEF_Sequence_tags_1,
919 sizeof(asn_DEF_Sequence_tags_1)
920 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
921 asn_DEF_Sequence_tags_1, /* Same as above */
922 sizeof(asn_DEF_Sequence_tags_1)
923 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400924 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000925 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000926 asn_MBR_Sequence_1,
927 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000928 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000929};
930
Lev Walkinb85a8132005-08-18 13:38:19 +0000931
932/*** <<< INCLUDES [TypeRef] >>> ***/
933
Lev Walkin22b5ed42006-09-13 02:51:20 +0000934#include "Sequence.h"
Lev Walkinb85a8132005-08-18 13:38:19 +0000935
936/*** <<< TYPE-DECLS [TypeRef] >>> ***/
937
938typedef Sequence_t TypeRef_t;
939
940/*** <<< FUNC-DECLS [TypeRef] >>> ***/
941
942extern asn_TYPE_descriptor_t asn_DEF_TypeRef;
943asn_struct_free_f TypeRef_free;
944asn_struct_print_f TypeRef_print;
945asn_constr_check_f TypeRef_constraint;
946ber_type_decoder_f TypeRef_decode_ber;
947der_type_encoder_f TypeRef_encode_der;
948xer_type_decoder_f TypeRef_decode_xer;
949xer_type_encoder_f TypeRef_encode_xer;
950
951/*** <<< CODE [TypeRef] >>> ***/
952
Lev Walkinb85a8132005-08-18 13:38:19 +0000953/*
954 * This type is implemented using Sequence,
955 * so here we adjust the DEF accordingly.
956 */
Lev Walkinb85a8132005-08-18 13:38:19 +0000957
958/*** <<< STAT-DEFS [TypeRef] >>> ***/
959
Lev Walkina7591b52014-10-12 18:37:35 -0700960static const ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000961 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
962};
963asn_TYPE_descriptor_t asn_DEF_TypeRef = {
964 "TypeRef",
965 "TypeRef",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800966 &asn_OP_SEQUENCE,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800967 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000968 asn_DEF_TypeRef_tags_1,
969 sizeof(asn_DEF_TypeRef_tags_1)
970 /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */
971 asn_DEF_TypeRef_tags_1, /* Same as above */
972 sizeof(asn_DEF_TypeRef_tags_1)
973 /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400974 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000975 0, /* No PER visible constraints */
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800976 asn_MBR_Sequence_1,
977 4, /* Elements count */
978 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000979};
980
981
982/*** <<< INCLUDES [Alpha] >>> ***/
983
984#include <constr_SEQUENCE.h>
985
986/*** <<< FWD-DECLS [Alpha] >>> ***/
987
988struct Beta;
989
990/*** <<< TYPE-DECLS [Alpha] >>> ***/
991
992typedef struct Alpha {
993 struct Beta *a;
994 struct b {
995 struct Beta *b /* OPTIONAL */;
996
997 /* Context for parsing across buffer boundaries */
998 asn_struct_ctx_t _asn_ctx;
999 } b;
1000
1001 /* Context for parsing across buffer boundaries */
1002 asn_struct_ctx_t _asn_ctx;
1003} Alpha_t;
1004
1005/*** <<< FUNC-DECLS [Alpha] >>> ***/
1006
1007extern asn_TYPE_descriptor_t asn_DEF_Alpha;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001008extern asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1;
1009extern asn_TYPE_member_t asn_MBR_Alpha_1[2];
Lev Walkinb85a8132005-08-18 13:38:19 +00001010
1011/*** <<< POST-INCLUDE [Alpha] >>> ***/
1012
Lev Walkin22b5ed42006-09-13 02:51:20 +00001013#include "Beta.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001014
1015/*** <<< STAT-DEFS [Alpha] >>> ***/
1016
1017static asn_TYPE_member_t asn_MBR_b_3[] = {
1018 { ATF_POINTER, 1, offsetof(struct b, b),
1019 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1020 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001021 .type = &asn_DEF_Beta,
Lev Walkin67a30122017-08-10 05:48:54 -07001022 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001023 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001024 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001025 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1026 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001027 .name = "b"
1028 },
1029};
Lev Walkina7591b52014-10-12 18:37:35 -07001030static const ber_tlv_tag_t asn_DEF_b_tags_3[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001031 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1032 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1033};
Lev Walkina7591b52014-10-12 18:37:35 -07001034static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001035 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001036};
Lev Walkin59b176e2005-11-26 11:25:14 +00001037static asn_SEQUENCE_specifics_t asn_SPC_b_specs_3 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001038 sizeof(struct b),
1039 offsetof(struct b, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -07001040 .tag2el = asn_MAP_b_tag2el_3,
1041 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001042 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001043 -1, /* Start extensions */
1044 -1 /* Stop extensions */
1045};
1046static /* Use -fall-defs-global to expose */
1047asn_TYPE_descriptor_t asn_DEF_b_3 = {
1048 "b",
1049 "b",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001050 &asn_OP_SEQUENCE,
Lev Walkinb85a8132005-08-18 13:38:19 +00001051 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001052 asn_DEF_b_tags_3,
1053 sizeof(asn_DEF_b_tags_3)
1054 /sizeof(asn_DEF_b_tags_3[0]) - 1, /* 1 */
1055 asn_DEF_b_tags_3, /* Same as above */
1056 sizeof(asn_DEF_b_tags_3)
1057 /sizeof(asn_DEF_b_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001058 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001059 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001060 asn_MBR_b_3,
1061 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001062 &asn_SPC_b_specs_3 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001063};
1064
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001065asn_TYPE_member_t asn_MBR_Alpha_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001066 { ATF_POINTER, 0, offsetof(struct Alpha, a),
1067 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1068 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001069 .type = &asn_DEF_Beta,
Lev Walkin67a30122017-08-10 05:48:54 -07001070 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001071 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001072 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001073 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1074 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001075 .name = "a"
1076 },
1077 { ATF_NOFLAGS, 0, offsetof(struct Alpha, b),
1078 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +00001079 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001080 .type = &asn_DEF_b_3,
Lev Walkin67a30122017-08-10 05:48:54 -07001081 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001082 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001083 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001084 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1085 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001086 .name = "b"
1087 },
1088};
Lev Walkina7591b52014-10-12 18:37:35 -07001089static const ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001090 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1091};
Lev Walkina7591b52014-10-12 18:37:35 -07001092static const asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001093 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1094 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001095};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001096asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001097 sizeof(struct Alpha),
1098 offsetof(struct Alpha, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -07001099 .tag2el = asn_MAP_Alpha_tag2el_1,
1100 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001101 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001102 -1, /* Start extensions */
1103 -1 /* Stop extensions */
1104};
1105asn_TYPE_descriptor_t asn_DEF_Alpha = {
1106 "Alpha",
1107 "Alpha",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001108 &asn_OP_SEQUENCE,
Lev Walkinb85a8132005-08-18 13:38:19 +00001109 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001110 asn_DEF_Alpha_tags_1,
1111 sizeof(asn_DEF_Alpha_tags_1)
1112 /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */
1113 asn_DEF_Alpha_tags_1, /* Same as above */
1114 sizeof(asn_DEF_Alpha_tags_1)
1115 /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */
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_Alpha_1,
1119 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001120 &asn_SPC_Alpha_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001121};
1122
1123
1124/*** <<< INCLUDES [Beta] >>> ***/
1125
1126#include <constr_SEQUENCE.h>
1127
1128/*** <<< FWD-DECLS [Beta] >>> ***/
1129
1130struct Alpha;
1131struct Gamma;
1132
1133/*** <<< TYPE-DECLS [Beta] >>> ***/
1134
1135typedef struct Beta {
1136 struct Alpha *b /* OPTIONAL */;
1137 struct Gamma *g /* OPTIONAL */;
1138
1139 /* Context for parsing across buffer boundaries */
1140 asn_struct_ctx_t _asn_ctx;
1141} Beta_t;
1142
1143/*** <<< FUNC-DECLS [Beta] >>> ***/
1144
1145extern asn_TYPE_descriptor_t asn_DEF_Beta;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001146extern asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1;
1147extern asn_TYPE_member_t asn_MBR_Beta_1[2];
Lev Walkinb85a8132005-08-18 13:38:19 +00001148
1149/*** <<< POST-INCLUDE [Beta] >>> ***/
1150
Lev Walkin22b5ed42006-09-13 02:51:20 +00001151#include "Alpha.h"
1152#include "Gamma.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001153
1154/*** <<< STAT-DEFS [Beta] >>> ***/
1155
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001156asn_TYPE_member_t asn_MBR_Beta_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001157 { ATF_POINTER, 2, offsetof(struct Beta, b),
1158 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1159 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001160 .type = &asn_DEF_Alpha,
Lev Walkin67a30122017-08-10 05:48:54 -07001161 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001162 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001163 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001164 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1165 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001166 .name = "b"
1167 },
1168 { ATF_POINTER, 1, offsetof(struct Beta, g),
1169 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1170 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001171 .type = &asn_DEF_Gamma,
Lev Walkin67a30122017-08-10 05:48:54 -07001172 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001173 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001174 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001175 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1176 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001177 .name = "g"
1178 },
1179};
Lev Walkina7591b52014-10-12 18:37:35 -07001180static const ber_tlv_tag_t asn_DEF_Beta_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001181 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1182};
Lev Walkina7591b52014-10-12 18:37:35 -07001183static const asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001184 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b */
1185 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
Lev Walkinb85a8132005-08-18 13:38:19 +00001186};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001187asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001188 sizeof(struct Beta),
1189 offsetof(struct Beta, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -07001190 .tag2el = asn_MAP_Beta_tag2el_1,
1191 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001192 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001193 -1, /* Start extensions */
1194 -1 /* Stop extensions */
1195};
1196asn_TYPE_descriptor_t asn_DEF_Beta = {
1197 "Beta",
1198 "Beta",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001199 &asn_OP_SEQUENCE,
Lev Walkinb85a8132005-08-18 13:38:19 +00001200 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001201 asn_DEF_Beta_tags_1,
1202 sizeof(asn_DEF_Beta_tags_1)
1203 /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */
1204 asn_DEF_Beta_tags_1, /* Same as above */
1205 sizeof(asn_DEF_Beta_tags_1)
1206 /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001207 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001208 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001209 asn_MBR_Beta_1,
1210 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001211 &asn_SPC_Beta_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001212};
1213
1214
1215/*** <<< INCLUDES [Gamma] >>> ***/
1216
1217#include <constr_SEQUENCE.h>
1218
1219/*** <<< FWD-DECLS [Gamma] >>> ***/
1220
1221struct TwoThree;
1222struct Alpha;
1223struct Beta;
1224
1225/*** <<< TYPE-DECLS [Gamma] >>> ***/
1226
1227typedef struct Gamma {
1228 struct TwoThree *o;
1229 struct Alpha *a;
1230 struct Beta *b;
1231
1232 /* Context for parsing across buffer boundaries */
1233 asn_struct_ctx_t _asn_ctx;
1234} Gamma_t;
1235
1236/*** <<< FUNC-DECLS [Gamma] >>> ***/
1237
1238extern asn_TYPE_descriptor_t asn_DEF_Gamma;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001239extern asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1;
1240extern asn_TYPE_member_t asn_MBR_Gamma_1[3];
Lev Walkinb85a8132005-08-18 13:38:19 +00001241
1242/*** <<< POST-INCLUDE [Gamma] >>> ***/
1243
Lev Walkin22b5ed42006-09-13 02:51:20 +00001244#include "TwoThree.h"
1245#include "Alpha.h"
1246#include "Beta.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001247
1248/*** <<< STAT-DEFS [Gamma] >>> ***/
1249
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001250asn_TYPE_member_t asn_MBR_Gamma_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001251 { ATF_POINTER, 0, offsetof(struct Gamma, o),
1252 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1253 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001254 .type = &asn_DEF_TwoThree,
Lev Walkin67a30122017-08-10 05:48:54 -07001255 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001256 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001257 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001258 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1259 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001260 .name = "o"
1261 },
1262 { ATF_POINTER, 0, offsetof(struct Gamma, a),
1263 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1264 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001265 .type = &asn_DEF_Alpha,
Lev Walkin67a30122017-08-10 05:48:54 -07001266 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001267 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001268 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001269 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1270 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001271 .name = "a"
1272 },
1273 { ATF_POINTER, 0, offsetof(struct Gamma, b),
1274 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
1275 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001276 .type = &asn_DEF_Beta,
Lev Walkin67a30122017-08-10 05:48:54 -07001277 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001278 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001279 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001280 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1281 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001282 .name = "b"
1283 },
1284};
Lev Walkina7591b52014-10-12 18:37:35 -07001285static const ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001286 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1287};
Lev Walkina7591b52014-10-12 18:37:35 -07001288static const asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001289 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* o */
1290 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a */
1291 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001292};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001293asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001294 sizeof(struct Gamma),
1295 offsetof(struct Gamma, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -07001296 .tag2el = asn_MAP_Gamma_tag2el_1,
1297 .tag2el_count = 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001298 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001299 -1, /* Start extensions */
1300 -1 /* Stop extensions */
1301};
1302asn_TYPE_descriptor_t asn_DEF_Gamma = {
1303 "Gamma",
1304 "Gamma",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001305 &asn_OP_SEQUENCE,
Lev Walkinb85a8132005-08-18 13:38:19 +00001306 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001307 asn_DEF_Gamma_tags_1,
1308 sizeof(asn_DEF_Gamma_tags_1)
1309 /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */
1310 asn_DEF_Gamma_tags_1, /* Same as above */
1311 sizeof(asn_DEF_Gamma_tags_1)
1312 /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001313 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001314 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001315 asn_MBR_Gamma_1,
1316 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001317 &asn_SPC_Gamma_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001318};
1319
1320
1321/*** <<< INCLUDES [OneTwo] >>> ***/
1322
1323#include <constr_SET.h>
1324
1325/*** <<< DEPS [OneTwo] >>> ***/
1326
1327
1328/*
1329 * Method of determining the components presence
1330 */
1331typedef enum OneTwo_PR {
1332 OneTwo_PR_m12, /* Member m12 is present */
1333} OneTwo_PR;
1334
1335/*** <<< FWD-DECLS [OneTwo] >>> ***/
1336
1337struct TwoThree;
1338
1339/*** <<< TYPE-DECLS [OneTwo] >>> ***/
1340
1341typedef struct OneTwo {
1342 struct TwoThree *m12;
1343
1344 /* Presence bitmask: ASN_SET_ISPRESENT(pOneTwo, OneTwo_PR_x) */
1345 unsigned int _presence_map
1346 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1347
1348 /* Context for parsing across buffer boundaries */
1349 asn_struct_ctx_t _asn_ctx;
1350} OneTwo_t;
1351
1352/*** <<< FUNC-DECLS [OneTwo] >>> ***/
1353
1354extern asn_TYPE_descriptor_t asn_DEF_OneTwo;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001355extern asn_SET_specifics_t asn_SPC_OneTwo_specs_1;
1356extern asn_TYPE_member_t asn_MBR_OneTwo_1[1];
Lev Walkinb85a8132005-08-18 13:38:19 +00001357
1358/*** <<< POST-INCLUDE [OneTwo] >>> ***/
1359
Lev Walkin22b5ed42006-09-13 02:51:20 +00001360#include "TwoThree.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001361
1362/*** <<< STAT-DEFS [OneTwo] >>> ***/
1363
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001364asn_TYPE_member_t asn_MBR_OneTwo_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001365 { ATF_POINTER, 0, offsetof(struct OneTwo, m12),
1366 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1367 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001368 .type = &asn_DEF_TwoThree,
Lev Walkin67a30122017-08-10 05:48:54 -07001369 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001370 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001371 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001372 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1373 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001374 .name = "m12"
1375 },
1376};
Lev Walkina7591b52014-10-12 18:37:35 -07001377static const ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001378 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1379};
Lev Walkina7591b52014-10-12 18:37:35 -07001380static const asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001381 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m12 */
Lev Walkinb85a8132005-08-18 13:38:19 +00001382};
Lev Walkina7591b52014-10-12 18:37:35 -07001383static const uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001384 (1 << 7)
1385};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001386asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001387 sizeof(struct OneTwo),
1388 offsetof(struct OneTwo, _asn_ctx),
1389 offsetof(struct OneTwo, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -07001390 .tag2el = asn_MAP_OneTwo_tag2el_1,
1391 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001392 asn_MAP_OneTwo_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001393 1, /* Count of tags in the CXER map */
1394 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -07001395 (const unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001396};
1397asn_TYPE_descriptor_t asn_DEF_OneTwo = {
1398 "OneTwo",
1399 "OneTwo",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001400 &asn_OP_SET,
Lev Walkinb85a8132005-08-18 13:38:19 +00001401 SET_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001402 asn_DEF_OneTwo_tags_1,
1403 sizeof(asn_DEF_OneTwo_tags_1)
1404 /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */
1405 asn_DEF_OneTwo_tags_1, /* Same as above */
1406 sizeof(asn_DEF_OneTwo_tags_1)
1407 /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001408 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001409 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001410 asn_MBR_OneTwo_1,
1411 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001412 &asn_SPC_OneTwo_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001413};
1414
1415
1416/*** <<< INCLUDES [TwoThree] >>> ***/
1417
1418#include <constr_SET.h>
1419
1420/*** <<< DEPS [TwoThree] >>> ***/
1421
1422
1423/*
1424 * Method of determining the components presence
1425 */
1426typedef enum TwoThree_PR {
1427 TwoThree_PR_m23, /* Member m23 is present */
1428} TwoThree_PR;
1429
1430/*** <<< FWD-DECLS [TwoThree] >>> ***/
1431
1432struct ThreeOne;
1433
1434/*** <<< TYPE-DECLS [TwoThree] >>> ***/
1435
1436typedef struct TwoThree {
1437 struct ThreeOne *m23;
1438
1439 /* Presence bitmask: ASN_SET_ISPRESENT(pTwoThree, TwoThree_PR_x) */
1440 unsigned int _presence_map
1441 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1442
1443 /* Context for parsing across buffer boundaries */
1444 asn_struct_ctx_t _asn_ctx;
1445} TwoThree_t;
1446
1447/*** <<< FUNC-DECLS [TwoThree] >>> ***/
1448
1449extern asn_TYPE_descriptor_t asn_DEF_TwoThree;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001450extern asn_SET_specifics_t asn_SPC_TwoThree_specs_1;
1451extern asn_TYPE_member_t asn_MBR_TwoThree_1[1];
Lev Walkinb85a8132005-08-18 13:38:19 +00001452
1453/*** <<< POST-INCLUDE [TwoThree] >>> ***/
1454
Lev Walkin22b5ed42006-09-13 02:51:20 +00001455#include "ThreeOne.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001456
1457/*** <<< STAT-DEFS [TwoThree] >>> ***/
1458
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001459asn_TYPE_member_t asn_MBR_TwoThree_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001460 { ATF_POINTER, 0, offsetof(struct TwoThree, m23),
1461 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1462 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001463 .type = &asn_DEF_ThreeOne,
Lev Walkin67a30122017-08-10 05:48:54 -07001464 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001465 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001466 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001467 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1468 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001469 .name = "m23"
1470 },
1471};
Lev Walkina7591b52014-10-12 18:37:35 -07001472static const ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001473 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1474};
Lev Walkina7591b52014-10-12 18:37:35 -07001475static const asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001476 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m23 */
Lev Walkinb85a8132005-08-18 13:38:19 +00001477};
Lev Walkina7591b52014-10-12 18:37:35 -07001478static const uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001479 (1 << 7)
1480};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001481asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001482 sizeof(struct TwoThree),
1483 offsetof(struct TwoThree, _asn_ctx),
1484 offsetof(struct TwoThree, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -07001485 .tag2el = asn_MAP_TwoThree_tag2el_1,
1486 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001487 asn_MAP_TwoThree_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001488 1, /* Count of tags in the CXER map */
1489 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -07001490 (const unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001491};
1492asn_TYPE_descriptor_t asn_DEF_TwoThree = {
1493 "TwoThree",
1494 "TwoThree",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001495 &asn_OP_SET,
Lev Walkinb85a8132005-08-18 13:38:19 +00001496 SET_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001497 asn_DEF_TwoThree_tags_1,
1498 sizeof(asn_DEF_TwoThree_tags_1)
1499 /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */
1500 asn_DEF_TwoThree_tags_1, /* Same as above */
1501 sizeof(asn_DEF_TwoThree_tags_1)
1502 /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001503 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001504 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001505 asn_MBR_TwoThree_1,
1506 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001507 &asn_SPC_TwoThree_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001508};
1509
1510
1511/*** <<< INCLUDES [ThreeOne] >>> ***/
1512
1513#include <constr_SET.h>
1514
1515/*** <<< DEPS [ThreeOne] >>> ***/
1516
1517
1518/*
1519 * Method of determining the components presence
1520 */
1521typedef enum ThreeOne_PR {
1522 ThreeOne_PR_m31, /* Member m31 is present */
1523 ThreeOne_PR_g, /* Member g is present */
1524} ThreeOne_PR;
1525
1526/*** <<< FWD-DECLS [ThreeOne] >>> ***/
1527
1528struct OneTwo;
1529struct Gamma;
1530
1531/*** <<< TYPE-DECLS [ThreeOne] >>> ***/
1532
1533typedef struct ThreeOne {
1534 struct OneTwo *m31;
1535 struct Gamma *g;
1536
1537 /* Presence bitmask: ASN_SET_ISPRESENT(pThreeOne, ThreeOne_PR_x) */
1538 unsigned int _presence_map
1539 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1540
1541 /* Context for parsing across buffer boundaries */
1542 asn_struct_ctx_t _asn_ctx;
1543} ThreeOne_t;
1544
1545/*** <<< FUNC-DECLS [ThreeOne] >>> ***/
1546
1547extern asn_TYPE_descriptor_t asn_DEF_ThreeOne;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001548extern asn_SET_specifics_t asn_SPC_ThreeOne_specs_1;
1549extern asn_TYPE_member_t asn_MBR_ThreeOne_1[2];
Lev Walkinb85a8132005-08-18 13:38:19 +00001550
1551/*** <<< POST-INCLUDE [ThreeOne] >>> ***/
1552
Lev Walkin22b5ed42006-09-13 02:51:20 +00001553#include "OneTwo.h"
1554#include "Gamma.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001555
1556/*** <<< STAT-DEFS [ThreeOne] >>> ***/
1557
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001558asn_TYPE_member_t asn_MBR_ThreeOne_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001559 { ATF_POINTER, 0, offsetof(struct ThreeOne, m31),
1560 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1561 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001562 .type = &asn_DEF_OneTwo,
Lev Walkin67a30122017-08-10 05:48:54 -07001563 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001564 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001565 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001566 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1567 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001568 .name = "m31"
1569 },
1570 { ATF_POINTER, 0, offsetof(struct ThreeOne, g),
1571 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1572 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001573 .type = &asn_DEF_Gamma,
Lev Walkin67a30122017-08-10 05:48:54 -07001574 .type_selector = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001575 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001576 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001577 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1578 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001579 .name = "g"
1580 },
1581};
Lev Walkina7591b52014-10-12 18:37:35 -07001582static const ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001583 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1584};
Lev Walkina7591b52014-10-12 18:37:35 -07001585static const asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001586 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m31 */
1587 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
Lev Walkinb85a8132005-08-18 13:38:19 +00001588};
Lev Walkina7591b52014-10-12 18:37:35 -07001589static const uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001590 (1 << 7) | (1 << 6)
1591};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001592asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001593 sizeof(struct ThreeOne),
1594 offsetof(struct ThreeOne, _asn_ctx),
1595 offsetof(struct ThreeOne, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -07001596 .tag2el = asn_MAP_ThreeOne_tag2el_1,
1597 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001598 asn_MAP_ThreeOne_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001599 2, /* Count of tags in the CXER map */
1600 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -07001601 (const unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001602};
1603asn_TYPE_descriptor_t asn_DEF_ThreeOne = {
1604 "ThreeOne",
1605 "ThreeOne",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001606 &asn_OP_SET,
Lev Walkinb85a8132005-08-18 13:38:19 +00001607 SET_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001608 asn_DEF_ThreeOne_tags_1,
1609 sizeof(asn_DEF_ThreeOne_tags_1)
1610 /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */
1611 asn_DEF_ThreeOne_tags_1, /* Same as above */
1612 sizeof(asn_DEF_ThreeOne_tags_1)
1613 /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001614 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001615 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001616 asn_MBR_ThreeOne_1,
1617 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001618 &asn_SPC_ThreeOne_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001619};
1620