blob: db43474ffbc7a1ed6017a1951c1ab62fb04ea885 [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;
40
Lev Walkinb85a8132005-08-18 13:38:19 +000041/*** <<< POST-INCLUDE [Everything] >>> ***/
42
Lev Walkin22b5ed42006-09-13 02:51:20 +000043#include "Choice1.h"
44#include "Choice2.h"
45#include "Choice3.h"
Lev Walkinb85a8132005-08-18 13:38:19 +000046
Lev Walkincee931e2005-08-16 16:56:59 +000047/*** <<< STAT-DEFS [Everything] >>> ***/
48
49static asn_TYPE_member_t asn_MBR_Everything_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +000050 { ATF_POINTER, 0, offsetof(struct Everything, ch1),
Lev Walkincee931e2005-08-16 16:56:59 +000051 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
52 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000053 .type = &asn_DEF_Choice1,
Lev Walkincee931e2005-08-16 16:56:59 +000054 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000055 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
56 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000057 .name = "ch1"
58 },
Lev Walkinb85a8132005-08-18 13:38:19 +000059 { ATF_POINTER, 0, offsetof(struct Everything, ch2),
Lev Walkincee931e2005-08-16 16:56:59 +000060 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
61 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000062 .type = &asn_DEF_Choice2,
Lev Walkincee931e2005-08-16 16:56:59 +000063 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000064 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
65 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000066 .name = "ch2"
67 },
Lev Walkinb85a8132005-08-18 13:38:19 +000068 { ATF_POINTER, 0, offsetof(struct Everything, ch3),
Lev Walkincee931e2005-08-16 16:56:59 +000069 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkinb85a8132005-08-18 13:38:19 +000070 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000071 .type = &asn_DEF_Choice3,
Lev Walkinb85a8132005-08-18 13:38:19 +000072 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000073 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
74 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +000075 .name = "ch3"
76 },
77 { ATF_NOFLAGS, 0, offsetof(struct Everything, set),
78 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
Lev Walkincee931e2005-08-16 16:56:59 +000079 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000080 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +000081 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000082 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
83 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +000084 .name = "set"
85 },
Lev Walkinb85a8132005-08-18 13:38:19 +000086 { ATF_NOFLAGS, 0, offsetof(struct Everything, a),
87 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
88 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000089 .type = &asn_DEF_Alpha,
Lev Walkinb85a8132005-08-18 13:38:19 +000090 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000091 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
92 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +000093 .name = "a"
94 },
95 { ATF_NOFLAGS, 0, offsetof(struct Everything, b),
96 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
97 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000098 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +000099 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000100 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
101 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000102 .name = "b"
103 },
104 { ATF_NOFLAGS, 0, offsetof(struct Everything, g),
105 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
106 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000107 .type = &asn_DEF_Gamma,
Lev Walkinb85a8132005-08-18 13:38:19 +0000108 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000109 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
110 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000111 .name = "g"
112 },
113 { ATF_NOFLAGS, 0, offsetof(struct Everything, ot),
114 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
115 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000116 .type = &asn_DEF_OneTwo,
Lev Walkinb85a8132005-08-18 13:38:19 +0000117 .memb_constraints = 0, /* Defer constraints checking to the member type */
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 = "ot"
121 },
122 { ATF_NOFLAGS, 0, offsetof(struct Everything, tt),
123 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
124 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000125 .type = &asn_DEF_TwoThree,
Lev Walkinb85a8132005-08-18 13:38:19 +0000126 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000127 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
128 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000129 .name = "tt"
130 },
131 { ATF_NOFLAGS, 0, offsetof(struct Everything, to),
132 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
133 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000134 .type = &asn_DEF_ThreeOne,
Lev Walkinb85a8132005-08-18 13:38:19 +0000135 .memb_constraints = 0, /* Defer constraints checking to the member type */
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 = "to"
139 },
Lev Walkincee931e2005-08-16 16:56:59 +0000140};
Lev Walkin59b176e2005-11-26 11:25:14 +0000141static ber_tlv_tag_t asn_DEF_Everything_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000142 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
143};
Lev Walkin59b176e2005-11-26 11:25:14 +0000144static asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700145 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 */
146 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 */
147 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 */
148 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set */
149 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* a */
150 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* b */
151 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* g */
152 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ot */
153 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* tt */
154 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* to */
Lev Walkincee931e2005-08-16 16:56:59 +0000155};
Lev Walkin59b176e2005-11-26 11:25:14 +0000156static asn_SEQUENCE_specifics_t asn_SPC_Everything_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000157 sizeof(struct Everything),
158 offsetof(struct Everything, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000159 asn_MAP_Everything_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000160 10, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000161 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000162 -1, /* Start extensions */
163 -1 /* Stop extensions */
164};
165asn_TYPE_descriptor_t asn_DEF_Everything = {
166 "Everything",
167 "Everything",
168 SEQUENCE_free,
169 SEQUENCE_print,
170 SEQUENCE_constraint,
171 SEQUENCE_decode_ber,
172 SEQUENCE_encode_der,
173 SEQUENCE_decode_xer,
174 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000175 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000176 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000177 asn_DEF_Everything_tags_1,
178 sizeof(asn_DEF_Everything_tags_1)
179 /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */
180 asn_DEF_Everything_tags_1, /* Same as above */
181 sizeof(asn_DEF_Everything_tags_1)
182 /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */
183 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000184 asn_MBR_Everything_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000185 10, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000186 &asn_SPC_Everything_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000187};
188
189
190/*** <<< INCLUDES [Choice1] >>> ***/
191
192#include <constr_CHOICE.h>
193
194/*** <<< DEPS [Choice1] >>> ***/
195
196typedef enum Choice1_PR {
197 Choice1_PR_NOTHING, /* No components present */
198 Choice1_PR_something,
199 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000200 Choice1_PR_some2
Lev Walkincee931e2005-08-16 16:56:59 +0000201} Choice1_PR;
202
203/*** <<< FWD-DECLS [Choice1] >>> ***/
204
205struct Everything;
206
207/*** <<< TYPE-DECLS [Choice1] >>> ***/
208
209typedef struct Choice1 {
210 Choice1_PR present;
211 union Choice1_u {
212 struct Everything *something;
213 /*
214 * This type is extensible,
215 * possible extensions are below.
216 */
217 struct Everything *some2;
218 } choice;
219
220 /* Context for parsing across buffer boundaries */
221 asn_struct_ctx_t _asn_ctx;
222} Choice1_t;
223
224/*** <<< FUNC-DECLS [Choice1] >>> ***/
225
226extern asn_TYPE_descriptor_t asn_DEF_Choice1;
227
228/*** <<< POST-INCLUDE [Choice1] >>> ***/
229
Lev Walkin22b5ed42006-09-13 02:51:20 +0000230#include "Everything.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000231
232/*** <<< STAT-DEFS [Choice1] >>> ***/
233
234static asn_TYPE_member_t asn_MBR_Choice1_1[] = {
235 { ATF_POINTER, 0, offsetof(struct Choice1, choice.something),
236 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
237 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000238 .type = &asn_DEF_Everything,
Lev Walkincee931e2005-08-16 16:56:59 +0000239 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000240 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
241 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000242 .name = "something"
243 },
244 { ATF_POINTER, 0, offsetof(struct Choice1, choice.some2),
245 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
246 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000247 .type = &asn_DEF_Everything,
Lev Walkincee931e2005-08-16 16:56:59 +0000248 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000249 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
250 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000251 .name = "some2"
252 },
253};
Lev Walkin59b176e2005-11-26 11:25:14 +0000254static asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700255 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* something */
256 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some2 */
Lev Walkincee931e2005-08-16 16:56:59 +0000257};
Lev Walkin59b176e2005-11-26 11:25:14 +0000258static asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000259 sizeof(struct Choice1),
260 offsetof(struct Choice1, _asn_ctx),
261 offsetof(struct Choice1, present),
262 sizeof(((struct Choice1 *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000263 asn_MAP_Choice1_tag2el_1,
Lev Walkincee931e2005-08-16 16:56:59 +0000264 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000265 .canonical_order = 0,
266 .ext_start = 1 /* Extensions start */
Lev Walkincee931e2005-08-16 16:56:59 +0000267};
268asn_TYPE_descriptor_t asn_DEF_Choice1 = {
269 "Choice1",
270 "Choice1",
271 CHOICE_free,
272 CHOICE_print,
273 CHOICE_constraint,
274 CHOICE_decode_ber,
275 CHOICE_encode_der,
276 CHOICE_decode_xer,
277 CHOICE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000278 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000279 CHOICE_outmost_tag,
280 0, /* No effective tags (pointer) */
281 0, /* No effective tags (count) */
282 0, /* No tags (pointer) */
283 0, /* No tags (count) */
Lev Walkin59b176e2005-11-26 11:25:14 +0000284 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000285 asn_MBR_Choice1_1,
286 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000287 &asn_SPC_Choice1_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000288};
289
290
291/*** <<< INCLUDES [Choice2] >>> ***/
292
293#include <constr_CHOICE.h>
294
295/*** <<< DEPS [Choice2] >>> ***/
296
297typedef enum Choice2_PR {
298 Choice2_PR_NOTHING, /* No components present */
Lev Walkinb85a8132005-08-18 13:38:19 +0000299 Choice2_PR_typeref,
Lev Walkincee931e2005-08-16 16:56:59 +0000300 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000301 Choice2_PR_some3
Lev Walkincee931e2005-08-16 16:56:59 +0000302} Choice2_PR;
303
304/*** <<< FWD-DECLS [Choice2] >>> ***/
305
Lev Walkinb85a8132005-08-18 13:38:19 +0000306struct Sequence;
Lev Walkincee931e2005-08-16 16:56:59 +0000307struct Everything;
308
309/*** <<< TYPE-DECLS [Choice2] >>> ***/
310
311typedef struct Choice2 {
312 Choice2_PR present;
313 union Choice2_u {
Lev Walkinb85a8132005-08-18 13:38:19 +0000314 struct Sequence *typeref;
Lev Walkincee931e2005-08-16 16:56:59 +0000315 /*
316 * This type is extensible,
317 * possible extensions are below.
318 */
319 struct Everything *some3;
320 } choice;
321
322 /* Context for parsing across buffer boundaries */
323 asn_struct_ctx_t _asn_ctx;
324} Choice2_t;
325
326/*** <<< FUNC-DECLS [Choice2] >>> ***/
327
328extern asn_TYPE_descriptor_t asn_DEF_Choice2;
329
330/*** <<< POST-INCLUDE [Choice2] >>> ***/
331
Lev Walkin22b5ed42006-09-13 02:51:20 +0000332#include "TypeRef.h"
333#include "Everything.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000334
335/*** <<< STAT-DEFS [Choice2] >>> ***/
336
337static asn_TYPE_member_t asn_MBR_Choice2_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000338 { ATF_POINTER, 0, offsetof(struct Choice2, choice.typeref),
Lev Walkincee931e2005-08-16 16:56:59 +0000339 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
340 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000341 .type = &asn_DEF_TypeRef,
Lev Walkinb85a8132005-08-18 13:38:19 +0000342 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000343 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
344 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000345 .name = "typeref"
346 },
347 { ATF_POINTER, 0, offsetof(struct Choice2, choice.some3),
348 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
349 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000350 .type = &asn_DEF_Everything,
Lev Walkincee931e2005-08-16 16:56:59 +0000351 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000352 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
353 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000354 .name = "some3"
355 },
356};
Lev Walkin59b176e2005-11-26 11:25:14 +0000357static asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700358 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* typeref */
359 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some3 */
Lev Walkincee931e2005-08-16 16:56:59 +0000360};
Lev Walkin59b176e2005-11-26 11:25:14 +0000361static asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000362 sizeof(struct Choice2),
363 offsetof(struct Choice2, _asn_ctx),
364 offsetof(struct Choice2, present),
365 sizeof(((struct Choice2 *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000366 asn_MAP_Choice2_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000367 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000368 .canonical_order = 0,
369 .ext_start = 1 /* Extensions start */
Lev Walkincee931e2005-08-16 16:56:59 +0000370};
371asn_TYPE_descriptor_t asn_DEF_Choice2 = {
372 "Choice2",
373 "Choice2",
374 CHOICE_free,
375 CHOICE_print,
376 CHOICE_constraint,
377 CHOICE_decode_ber,
378 CHOICE_encode_der,
379 CHOICE_decode_xer,
380 CHOICE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000381 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000382 CHOICE_outmost_tag,
383 0, /* No effective tags (pointer) */
384 0, /* No effective tags (count) */
385 0, /* No tags (pointer) */
386 0, /* No tags (count) */
Lev Walkin59b176e2005-11-26 11:25:14 +0000387 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000388 asn_MBR_Choice2_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000389 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000390 &asn_SPC_Choice2_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000391};
392
393
Lev Walkinb85a8132005-08-18 13:38:19 +0000394/*** <<< INCLUDES [Choice3] >>> ***/
395
396#include <constr_SEQUENCE.h>
397#include <asn_SEQUENCE_OF.h>
398#include <constr_SEQUENCE_OF.h>
399#include <constr_CHOICE.h>
400
401/*** <<< DEPS [Choice3] >>> ***/
402
403typedef enum Choice3_PR {
404 Choice3_PR_NOTHING, /* No components present */
405 Choice3_PR_a,
406 Choice3_PR_b,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000407 Choice3_PR_c
Lev Walkinb85a8132005-08-18 13:38:19 +0000408} Choice3_PR;
409
410/*** <<< FWD-DECLS [Choice3] >>> ***/
411
412struct Everything;
413struct Choice3;
414
415/*** <<< TYPE-DECLS [Choice3] >>> ***/
416
417typedef struct Choice3 {
418 Choice3_PR present;
419 union Choice3_u {
420 struct a {
421 struct Everything *aa;
422
423 /* Context for parsing across buffer boundaries */
424 asn_struct_ctx_t _asn_ctx;
425 } *a;
426 struct Everything *b;
427 struct c {
428 A_SEQUENCE_OF(struct Choice3) list;
429
430 /* Context for parsing across buffer boundaries */
431 asn_struct_ctx_t _asn_ctx;
432 } *c;
433 } choice;
434
435 /* Context for parsing across buffer boundaries */
436 asn_struct_ctx_t _asn_ctx;
437} Choice3_t;
438
439/*** <<< FUNC-DECLS [Choice3] >>> ***/
440
441extern asn_TYPE_descriptor_t asn_DEF_Choice3;
442
443/*** <<< POST-INCLUDE [Choice3] >>> ***/
444
Lev Walkin22b5ed42006-09-13 02:51:20 +0000445#include "Everything.h"
446#include "Choice3.h"
Lev Walkinb85a8132005-08-18 13:38:19 +0000447
448/*** <<< STAT-DEFS [Choice3] >>> ***/
449
450static asn_TYPE_member_t asn_MBR_a_2[] = {
451 { ATF_POINTER, 0, offsetof(struct a, aa),
452 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
453 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000454 .type = &asn_DEF_Everything,
Lev Walkinb85a8132005-08-18 13:38:19 +0000455 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000456 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
457 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000458 .name = "aa"
459 },
460};
Lev Walkin59b176e2005-11-26 11:25:14 +0000461static ber_tlv_tag_t asn_DEF_a_tags_2[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000462 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
463 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
464};
Lev Walkin59b176e2005-11-26 11:25:14 +0000465static asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700466 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aa */
Lev Walkinb85a8132005-08-18 13:38:19 +0000467};
Lev Walkin59b176e2005-11-26 11:25:14 +0000468static asn_SEQUENCE_specifics_t asn_SPC_a_specs_2 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000469 sizeof(struct a),
470 offsetof(struct a, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000471 asn_MAP_a_tag2el_2,
Lev Walkinb85a8132005-08-18 13:38:19 +0000472 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000473 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +0000474 -1, /* Start extensions */
475 -1 /* Stop extensions */
476};
477static /* Use -fall-defs-global to expose */
478asn_TYPE_descriptor_t asn_DEF_a_2 = {
479 "a",
480 "a",
481 SEQUENCE_free,
482 SEQUENCE_print,
483 SEQUENCE_constraint,
484 SEQUENCE_decode_ber,
485 SEQUENCE_encode_der,
486 SEQUENCE_decode_xer,
487 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000488 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +0000489 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000490 asn_DEF_a_tags_2,
491 sizeof(asn_DEF_a_tags_2)
492 /sizeof(asn_DEF_a_tags_2[0]) - 1, /* 1 */
493 asn_DEF_a_tags_2, /* Same as above */
494 sizeof(asn_DEF_a_tags_2)
495 /sizeof(asn_DEF_a_tags_2[0]), /* 2 */
496 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000497 asn_MBR_a_2,
498 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000499 &asn_SPC_a_specs_2 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000500};
501
502static asn_TYPE_member_t asn_MBR_c_5[] = {
503 { ATF_POINTER, 0, 0,
504 .tag = -1 /* Ambiguous tag (CHOICE?) */,
505 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000506 .type = &asn_DEF_Choice3,
Lev Walkinb85a8132005-08-18 13:38:19 +0000507 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000508 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
509 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000510 .name = ""
511 },
512};
Lev Walkin59b176e2005-11-26 11:25:14 +0000513static ber_tlv_tag_t asn_DEF_c_tags_5[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000514 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
515 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
516};
Lev Walkin59b176e2005-11-26 11:25:14 +0000517static asn_SET_OF_specifics_t asn_SPC_c_specs_5 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000518 sizeof(struct c),
519 offsetof(struct c, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000520 2, /* XER encoding is XMLValueList */
Lev Walkinb85a8132005-08-18 13:38:19 +0000521};
522static /* Use -fall-defs-global to expose */
523asn_TYPE_descriptor_t asn_DEF_c_5 = {
524 "c",
525 "c",
526 SEQUENCE_OF_free,
527 SEQUENCE_OF_print,
528 SEQUENCE_OF_constraint,
529 SEQUENCE_OF_decode_ber,
530 SEQUENCE_OF_encode_der,
531 SEQUENCE_OF_decode_xer,
532 SEQUENCE_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000533 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +0000534 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000535 asn_DEF_c_tags_5,
536 sizeof(asn_DEF_c_tags_5)
537 /sizeof(asn_DEF_c_tags_5[0]) - 1, /* 1 */
538 asn_DEF_c_tags_5, /* Same as above */
539 sizeof(asn_DEF_c_tags_5)
540 /sizeof(asn_DEF_c_tags_5[0]), /* 2 */
541 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000542 asn_MBR_c_5,
543 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000544 &asn_SPC_c_specs_5 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000545};
546
547static asn_TYPE_member_t asn_MBR_Choice3_1[] = {
548 { ATF_POINTER, 0, offsetof(struct Choice3, choice.a),
549 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000550 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000551 .type = &asn_DEF_a_2,
Lev Walkinb85a8132005-08-18 13:38:19 +0000552 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000553 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
554 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000555 .name = "a"
556 },
557 { ATF_POINTER, 0, offsetof(struct Choice3, choice.b),
558 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
559 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000560 .type = &asn_DEF_Everything,
Lev Walkinb85a8132005-08-18 13:38:19 +0000561 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000562 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
563 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000564 .name = "b"
565 },
566 { ATF_POINTER, 0, offsetof(struct Choice3, choice.c),
567 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000568 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000569 .type = &asn_DEF_c_5,
Lev Walkinb85a8132005-08-18 13:38:19 +0000570 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000571 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
572 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +0000573 .name = "c"
574 },
575};
Lev Walkin59b176e2005-11-26 11:25:14 +0000576static asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700577 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
578 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b */
579 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* c */
Lev Walkinb85a8132005-08-18 13:38:19 +0000580};
Lev Walkin59b176e2005-11-26 11:25:14 +0000581static asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +0000582 sizeof(struct Choice3),
583 offsetof(struct Choice3, _asn_ctx),
584 offsetof(struct Choice3, present),
585 sizeof(((struct Choice3 *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000586 asn_MAP_Choice3_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +0000587 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000588 .canonical_order = 0,
589 .ext_start = -1 /* Extensions start */
Lev Walkinb85a8132005-08-18 13:38:19 +0000590};
591asn_TYPE_descriptor_t asn_DEF_Choice3 = {
592 "Choice3",
593 "Choice3",
594 CHOICE_free,
595 CHOICE_print,
596 CHOICE_constraint,
597 CHOICE_decode_ber,
598 CHOICE_encode_der,
599 CHOICE_decode_xer,
600 CHOICE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000601 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +0000602 CHOICE_outmost_tag,
603 0, /* No effective tags (pointer) */
604 0, /* No effective tags (count) */
605 0, /* No tags (pointer) */
606 0, /* No tags (count) */
Lev Walkin59b176e2005-11-26 11:25:14 +0000607 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +0000608 asn_MBR_Choice3_1,
609 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000610 &asn_SPC_Choice3_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +0000611};
612
613
Lev Walkincee931e2005-08-16 16:56:59 +0000614/*** <<< INCLUDES [Set] >>> ***/
615
616#include <asn_SET_OF.h>
Lev Walkin2a744a72013-03-27 01:56:23 -0700617#include <NativeInteger.h>
Lev Walkincee931e2005-08-16 16:56:59 +0000618#include <constr_SEQUENCE.h>
619#include <constr_SET_OF.h>
620
621/*** <<< FWD-DECLS [Set] >>> ***/
622
623struct Set;
Lev Walkinb85a8132005-08-18 13:38:19 +0000624struct Sequence;
Lev Walkincee931e2005-08-16 16:56:59 +0000625
626/*** <<< TYPE-DECLS [Set] >>> ***/
627
628typedef struct Set {
629 A_SET_OF(struct Member {
Lev Walkin2a744a72013-03-27 01:56:23 -0700630 long Int;
Lev Walkincee931e2005-08-16 16:56:59 +0000631 struct Set *set;
Lev Walkinb85a8132005-08-18 13:38:19 +0000632 struct Sequence *seq;
Lev Walkincee931e2005-08-16 16:56:59 +0000633 struct Set *set2 /* OPTIONAL */;
634 /*
635 * This type is extensible,
636 * possible extensions are below.
637 */
638 struct Set *set3;
639
640 /* Context for parsing across buffer boundaries */
641 asn_struct_ctx_t _asn_ctx;
642 } ) list;
643
644 /* Context for parsing across buffer boundaries */
645 asn_struct_ctx_t _asn_ctx;
646} Set_t;
647
648/*** <<< FUNC-DECLS [Set] >>> ***/
649
650extern asn_TYPE_descriptor_t asn_DEF_Set;
651
652/*** <<< POST-INCLUDE [Set] >>> ***/
653
Lev Walkin22b5ed42006-09-13 02:51:20 +0000654#include "Set.h"
655#include "Sequence.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000656
657/*** <<< STAT-DEFS [Set] >>> ***/
658
659static asn_TYPE_member_t asn_MBR_Member_2[] = {
660 { ATF_NOFLAGS, 0, offsetof(struct Member, Int),
661 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
662 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700663 .type = &asn_DEF_NativeInteger,
Lev Walkincee931e2005-08-16 16:56:59 +0000664 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000665 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
666 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000667 .name = "int"
668 },
669 { ATF_POINTER, 0, offsetof(struct Member, set),
670 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
671 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000672 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000673 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000674 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
675 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000676 .name = "set"
677 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000678 { ATF_POINTER, 0, offsetof(struct Member, seq),
Lev Walkincee931e2005-08-16 16:56:59 +0000679 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
680 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000681 .type = &asn_DEF_Sequence,
Lev Walkincee931e2005-08-16 16:56:59 +0000682 .memb_constraints = 0, /* Defer constraints checking to the member type */
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 = "seq"
686 },
687 { ATF_POINTER, 2, offsetof(struct Member, set2),
688 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
689 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000690 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000691 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000692 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
693 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000694 .name = "set2"
695 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000696 { ATF_POINTER, 1, offsetof(struct Member, set3),
Lev Walkincee931e2005-08-16 16:56:59 +0000697 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
698 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000699 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000700 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000701 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
702 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000703 .name = "set3"
704 },
705};
Lev Walkin59b176e2005-11-26 11:25:14 +0000706static ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000707 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
708};
Lev Walkin59b176e2005-11-26 11:25:14 +0000709static asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700710 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* int */
711 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
712 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seq */
713 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set2 */
714 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* set3 */
Lev Walkincee931e2005-08-16 16:56:59 +0000715};
Lev Walkin59b176e2005-11-26 11:25:14 +0000716static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000717 sizeof(struct Member),
718 offsetof(struct Member, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000719 asn_MAP_Member_tag2el_2,
Lev Walkincee931e2005-08-16 16:56:59 +0000720 5, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000721 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000722 3, /* Start extensions */
723 6 /* Stop extensions */
724};
725static /* Use -fall-defs-global to expose */
726asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000727 "SEQUENCE",
728 "SEQUENCE",
Lev Walkincee931e2005-08-16 16:56:59 +0000729 SEQUENCE_free,
730 SEQUENCE_print,
731 SEQUENCE_constraint,
732 SEQUENCE_decode_ber,
733 SEQUENCE_encode_der,
734 SEQUENCE_decode_xer,
735 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000736 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000737 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000738 asn_DEF_Member_tags_2,
739 sizeof(asn_DEF_Member_tags_2)
740 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
741 asn_DEF_Member_tags_2, /* Same as above */
742 sizeof(asn_DEF_Member_tags_2)
743 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
744 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000745 asn_MBR_Member_2,
746 5, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000747 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000748};
749
750static asn_TYPE_member_t asn_MBR_Set_1[] = {
751 { ATF_POINTER, 0, 0,
752 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
753 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000754 .type = &asn_DEF_Member_2,
Lev Walkincee931e2005-08-16 16:56:59 +0000755 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000756 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
757 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000758 .name = ""
759 },
760};
Lev Walkin59b176e2005-11-26 11:25:14 +0000761static ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000762 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
763};
Lev Walkin59b176e2005-11-26 11:25:14 +0000764static asn_SET_OF_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000765 sizeof(struct Set),
766 offsetof(struct Set, _asn_ctx),
767 0, /* XER encoding is XMLDelimitedItemList */
768};
769asn_TYPE_descriptor_t asn_DEF_Set = {
770 "Set",
771 "Set",
772 SET_OF_free,
773 SET_OF_print,
774 SET_OF_constraint,
775 SET_OF_decode_ber,
776 SET_OF_encode_der,
777 SET_OF_decode_xer,
778 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000779 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000780 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000781 asn_DEF_Set_tags_1,
782 sizeof(asn_DEF_Set_tags_1)
783 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
784 asn_DEF_Set_tags_1, /* Same as above */
785 sizeof(asn_DEF_Set_tags_1)
786 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
787 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000788 asn_MBR_Set_1,
789 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000790 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000791};
792
793
794/*** <<< INCLUDES [Sequence] >>> ***/
795
Lev Walkin2a744a72013-03-27 01:56:23 -0700796#include <NativeInteger.h>
Lev Walkincee931e2005-08-16 16:56:59 +0000797#include <constr_SEQUENCE.h>
798
799/*** <<< FWD-DECLS [Sequence] >>> ***/
800
801struct Sequence;
802struct Set;
803
804/*** <<< TYPE-DECLS [Sequence] >>> ***/
805
806typedef struct Sequence {
Lev Walkin2a744a72013-03-27 01:56:23 -0700807 long a;
Lev Walkincee931e2005-08-16 16:56:59 +0000808 struct Sequence *seq /* OPTIONAL */;
809 /*
810 * This type is extensible,
811 * possible extensions are below.
812 */
Lev Walkin2a744a72013-03-27 01:56:23 -0700813 long *b;
Lev Walkincee931e2005-08-16 16:56:59 +0000814 struct Set *set /* OPTIONAL */;
815
816 /* Context for parsing across buffer boundaries */
817 asn_struct_ctx_t _asn_ctx;
818} Sequence_t;
819
820/*** <<< FUNC-DECLS [Sequence] >>> ***/
821
822extern asn_TYPE_descriptor_t asn_DEF_Sequence;
823
824/*** <<< POST-INCLUDE [Sequence] >>> ***/
825
Lev Walkin22b5ed42006-09-13 02:51:20 +0000826#include "Sequence.h"
827#include "Set.h"
Lev Walkincee931e2005-08-16 16:56:59 +0000828
829/*** <<< STAT-DEFS [Sequence] >>> ***/
830
831static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
832 { ATF_NOFLAGS, 0, offsetof(struct Sequence, a),
833 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
834 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700835 .type = &asn_DEF_NativeInteger,
Lev Walkincee931e2005-08-16 16:56:59 +0000836 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000837 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
838 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000839 .name = "a"
840 },
841 { ATF_POINTER, 3, offsetof(struct Sequence, seq),
842 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
843 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000844 .type = &asn_DEF_Sequence,
Lev Walkincee931e2005-08-16 16:56:59 +0000845 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000846 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
847 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000848 .name = "seq"
849 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000850 { ATF_POINTER, 2, offsetof(struct Sequence, b),
Lev Walkincee931e2005-08-16 16:56:59 +0000851 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
852 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin2a744a72013-03-27 01:56:23 -0700853 .type = &asn_DEF_NativeInteger,
Lev Walkincee931e2005-08-16 16:56:59 +0000854 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000855 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
856 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000857 .name = "b"
858 },
859 { ATF_POINTER, 1, offsetof(struct Sequence, set),
860 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
861 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000862 .type = &asn_DEF_Set,
Lev Walkincee931e2005-08-16 16:56:59 +0000863 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000864 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
865 .default_value = 0,
Lev Walkincee931e2005-08-16 16:56:59 +0000866 .name = "set"
867 },
868};
Lev Walkin59b176e2005-11-26 11:25:14 +0000869static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkincee931e2005-08-16 16:56:59 +0000870 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
871};
Lev Walkin59b176e2005-11-26 11:25:14 +0000872static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700873 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
874 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* seq */
875 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b */
876 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* set */
Lev Walkincee931e2005-08-16 16:56:59 +0000877};
Lev Walkin59b176e2005-11-26 11:25:14 +0000878static asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkincee931e2005-08-16 16:56:59 +0000879 sizeof(struct Sequence),
880 offsetof(struct Sequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000881 asn_MAP_Sequence_tag2el_1,
Lev Walkincee931e2005-08-16 16:56:59 +0000882 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000883 0, 0, 0, /* Optional elements (not needed) */
Lev Walkincee931e2005-08-16 16:56:59 +0000884 1, /* Start extensions */
885 5 /* Stop extensions */
886};
887asn_TYPE_descriptor_t asn_DEF_Sequence = {
888 "Sequence",
889 "Sequence",
890 SEQUENCE_free,
891 SEQUENCE_print,
892 SEQUENCE_constraint,
893 SEQUENCE_decode_ber,
894 SEQUENCE_encode_der,
895 SEQUENCE_decode_xer,
896 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000897 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkincee931e2005-08-16 16:56:59 +0000898 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000899 asn_DEF_Sequence_tags_1,
900 sizeof(asn_DEF_Sequence_tags_1)
901 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
902 asn_DEF_Sequence_tags_1, /* Same as above */
903 sizeof(asn_DEF_Sequence_tags_1)
904 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
905 0, /* No PER visible constraints */
Lev Walkincee931e2005-08-16 16:56:59 +0000906 asn_MBR_Sequence_1,
907 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000908 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkincee931e2005-08-16 16:56:59 +0000909};
910
Lev Walkinb85a8132005-08-18 13:38:19 +0000911
912/*** <<< INCLUDES [TypeRef] >>> ***/
913
Lev Walkin22b5ed42006-09-13 02:51:20 +0000914#include "Sequence.h"
Lev Walkinb85a8132005-08-18 13:38:19 +0000915
916/*** <<< TYPE-DECLS [TypeRef] >>> ***/
917
918typedef Sequence_t TypeRef_t;
919
920/*** <<< FUNC-DECLS [TypeRef] >>> ***/
921
922extern asn_TYPE_descriptor_t asn_DEF_TypeRef;
923asn_struct_free_f TypeRef_free;
924asn_struct_print_f TypeRef_print;
925asn_constr_check_f TypeRef_constraint;
926ber_type_decoder_f TypeRef_decode_ber;
927der_type_encoder_f TypeRef_encode_der;
928xer_type_decoder_f TypeRef_decode_xer;
929xer_type_encoder_f TypeRef_encode_xer;
930
931/*** <<< CODE [TypeRef] >>> ***/
932
933int
934TypeRef_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000935 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinb85a8132005-08-18 13:38:19 +0000936 /* Replace with underlying type checker */
937 td->check_constraints = asn_DEF_Sequence.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +0000938 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkinb85a8132005-08-18 13:38:19 +0000939}
940
941/*
942 * This type is implemented using Sequence,
943 * so here we adjust the DEF accordingly.
944 */
945static void
946TypeRef_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
947 td->free_struct = asn_DEF_Sequence.free_struct;
948 td->print_struct = asn_DEF_Sequence.print_struct;
949 td->ber_decoder = asn_DEF_Sequence.ber_decoder;
950 td->der_encoder = asn_DEF_Sequence.der_encoder;
951 td->xer_decoder = asn_DEF_Sequence.xer_decoder;
952 td->xer_encoder = asn_DEF_Sequence.xer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000953 td->uper_decoder = asn_DEF_Sequence.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000954 td->uper_encoder = asn_DEF_Sequence.uper_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000955 if(!td->per_constraints)
956 td->per_constraints = asn_DEF_Sequence.per_constraints;
Lev Walkinb85a8132005-08-18 13:38:19 +0000957 td->elements = asn_DEF_Sequence.elements;
958 td->elements_count = asn_DEF_Sequence.elements_count;
959 td->specifics = asn_DEF_Sequence.specifics;
960}
961
962void
963TypeRef_free(asn_TYPE_descriptor_t *td,
964 void *struct_ptr, int contents_only) {
965 TypeRef_1_inherit_TYPE_descriptor(td);
966 td->free_struct(td, struct_ptr, contents_only);
967}
968
969int
970TypeRef_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
971 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
972 TypeRef_1_inherit_TYPE_descriptor(td);
973 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
974}
975
976asn_dec_rval_t
977TypeRef_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
978 void **structure, const void *bufptr, size_t size, int tag_mode) {
979 TypeRef_1_inherit_TYPE_descriptor(td);
980 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
981}
982
983asn_enc_rval_t
984TypeRef_encode_der(asn_TYPE_descriptor_t *td,
985 void *structure, int tag_mode, ber_tlv_tag_t tag,
986 asn_app_consume_bytes_f *cb, void *app_key) {
987 TypeRef_1_inherit_TYPE_descriptor(td);
988 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
989}
990
991asn_dec_rval_t
992TypeRef_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
993 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
994 TypeRef_1_inherit_TYPE_descriptor(td);
995 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
996}
997
998asn_enc_rval_t
999TypeRef_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1000 int ilevel, enum xer_encoder_flags_e flags,
1001 asn_app_consume_bytes_f *cb, void *app_key) {
1002 TypeRef_1_inherit_TYPE_descriptor(td);
1003 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1004}
1005
1006
1007/*** <<< STAT-DEFS [TypeRef] >>> ***/
1008
Lev Walkin59b176e2005-11-26 11:25:14 +00001009static ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001010 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1011};
1012asn_TYPE_descriptor_t asn_DEF_TypeRef = {
1013 "TypeRef",
1014 "TypeRef",
1015 TypeRef_free,
1016 TypeRef_print,
1017 TypeRef_constraint,
1018 TypeRef_decode_ber,
1019 TypeRef_encode_der,
1020 TypeRef_decode_xer,
1021 TypeRef_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001022 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001023 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001024 asn_DEF_TypeRef_tags_1,
1025 sizeof(asn_DEF_TypeRef_tags_1)
1026 /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */
1027 asn_DEF_TypeRef_tags_1, /* Same as above */
1028 sizeof(asn_DEF_TypeRef_tags_1)
1029 /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */
1030 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001031 0, 0, /* Defined elsewhere */
1032 0 /* No specifics */
1033};
1034
1035
1036/*** <<< INCLUDES [Alpha] >>> ***/
1037
1038#include <constr_SEQUENCE.h>
1039
1040/*** <<< FWD-DECLS [Alpha] >>> ***/
1041
1042struct Beta;
1043
1044/*** <<< TYPE-DECLS [Alpha] >>> ***/
1045
1046typedef struct Alpha {
1047 struct Beta *a;
1048 struct b {
1049 struct Beta *b /* OPTIONAL */;
1050
1051 /* Context for parsing across buffer boundaries */
1052 asn_struct_ctx_t _asn_ctx;
1053 } b;
1054
1055 /* Context for parsing across buffer boundaries */
1056 asn_struct_ctx_t _asn_ctx;
1057} Alpha_t;
1058
1059/*** <<< FUNC-DECLS [Alpha] >>> ***/
1060
1061extern asn_TYPE_descriptor_t asn_DEF_Alpha;
1062
1063/*** <<< POST-INCLUDE [Alpha] >>> ***/
1064
Lev Walkin22b5ed42006-09-13 02:51:20 +00001065#include "Beta.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001066
1067/*** <<< STAT-DEFS [Alpha] >>> ***/
1068
1069static asn_TYPE_member_t asn_MBR_b_3[] = {
1070 { ATF_POINTER, 1, offsetof(struct b, b),
1071 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1072 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001073 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +00001074 .memb_constraints = 0, /* Defer constraints checking to the member type */
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 Walkin59b176e2005-11-26 11:25:14 +00001080static 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 Walkin59b176e2005-11-26 11:25:14 +00001084static 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 Walkin9f5bb3a2006-08-18 01:46:46 +00001107 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001108 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001109 asn_DEF_b_tags_3,
1110 sizeof(asn_DEF_b_tags_3)
1111 /sizeof(asn_DEF_b_tags_3[0]) - 1, /* 1 */
1112 asn_DEF_b_tags_3, /* Same as above */
1113 sizeof(asn_DEF_b_tags_3)
1114 /sizeof(asn_DEF_b_tags_3[0]), /* 2 */
1115 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001116 asn_MBR_b_3,
1117 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001118 &asn_SPC_b_specs_3 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001119};
1120
1121static asn_TYPE_member_t asn_MBR_Alpha_1[] = {
1122 { ATF_POINTER, 0, offsetof(struct Alpha, a),
1123 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1124 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001125 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +00001126 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001127 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1128 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001129 .name = "a"
1130 },
1131 { ATF_NOFLAGS, 0, offsetof(struct Alpha, b),
1132 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +00001133 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001134 .type = &asn_DEF_b_3,
Lev Walkinb85a8132005-08-18 13:38:19 +00001135 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001136 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1137 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001138 .name = "b"
1139 },
1140};
Lev Walkin59b176e2005-11-26 11:25:14 +00001141static ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001142 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1143};
Lev Walkin59b176e2005-11-26 11:25:14 +00001144static asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001145 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1146 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001147};
Lev Walkin59b176e2005-11-26 11:25:14 +00001148static asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001149 sizeof(struct Alpha),
1150 offsetof(struct Alpha, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +00001151 asn_MAP_Alpha_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001152 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001153 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001154 -1, /* Start extensions */
1155 -1 /* Stop extensions */
1156};
1157asn_TYPE_descriptor_t asn_DEF_Alpha = {
1158 "Alpha",
1159 "Alpha",
1160 SEQUENCE_free,
1161 SEQUENCE_print,
1162 SEQUENCE_constraint,
1163 SEQUENCE_decode_ber,
1164 SEQUENCE_encode_der,
1165 SEQUENCE_decode_xer,
1166 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001167 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001168 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001169 asn_DEF_Alpha_tags_1,
1170 sizeof(asn_DEF_Alpha_tags_1)
1171 /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */
1172 asn_DEF_Alpha_tags_1, /* Same as above */
1173 sizeof(asn_DEF_Alpha_tags_1)
1174 /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */
1175 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001176 asn_MBR_Alpha_1,
1177 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001178 &asn_SPC_Alpha_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001179};
1180
1181
1182/*** <<< INCLUDES [Beta] >>> ***/
1183
1184#include <constr_SEQUENCE.h>
1185
1186/*** <<< FWD-DECLS [Beta] >>> ***/
1187
1188struct Alpha;
1189struct Gamma;
1190
1191/*** <<< TYPE-DECLS [Beta] >>> ***/
1192
1193typedef struct Beta {
1194 struct Alpha *b /* OPTIONAL */;
1195 struct Gamma *g /* OPTIONAL */;
1196
1197 /* Context for parsing across buffer boundaries */
1198 asn_struct_ctx_t _asn_ctx;
1199} Beta_t;
1200
1201/*** <<< FUNC-DECLS [Beta] >>> ***/
1202
1203extern asn_TYPE_descriptor_t asn_DEF_Beta;
1204
1205/*** <<< POST-INCLUDE [Beta] >>> ***/
1206
Lev Walkin22b5ed42006-09-13 02:51:20 +00001207#include "Alpha.h"
1208#include "Gamma.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001209
1210/*** <<< STAT-DEFS [Beta] >>> ***/
1211
1212static asn_TYPE_member_t asn_MBR_Beta_1[] = {
1213 { ATF_POINTER, 2, offsetof(struct Beta, b),
1214 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1215 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001216 .type = &asn_DEF_Alpha,
Lev Walkinb85a8132005-08-18 13:38:19 +00001217 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001218 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1219 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001220 .name = "b"
1221 },
1222 { ATF_POINTER, 1, offsetof(struct Beta, g),
1223 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1224 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001225 .type = &asn_DEF_Gamma,
Lev Walkinb85a8132005-08-18 13:38:19 +00001226 .memb_constraints = 0, /* Defer constraints checking to the member type */
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 = "g"
1230 },
1231};
Lev Walkin59b176e2005-11-26 11:25:14 +00001232static ber_tlv_tag_t asn_DEF_Beta_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001233 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1234};
Lev Walkin59b176e2005-11-26 11:25:14 +00001235static asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001236 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b */
1237 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
Lev Walkinb85a8132005-08-18 13:38:19 +00001238};
Lev Walkin59b176e2005-11-26 11:25:14 +00001239static asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001240 sizeof(struct Beta),
1241 offsetof(struct Beta, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +00001242 asn_MAP_Beta_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001243 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001244 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001245 -1, /* Start extensions */
1246 -1 /* Stop extensions */
1247};
1248asn_TYPE_descriptor_t asn_DEF_Beta = {
1249 "Beta",
1250 "Beta",
1251 SEQUENCE_free,
1252 SEQUENCE_print,
1253 SEQUENCE_constraint,
1254 SEQUENCE_decode_ber,
1255 SEQUENCE_encode_der,
1256 SEQUENCE_decode_xer,
1257 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001258 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001259 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001260 asn_DEF_Beta_tags_1,
1261 sizeof(asn_DEF_Beta_tags_1)
1262 /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */
1263 asn_DEF_Beta_tags_1, /* Same as above */
1264 sizeof(asn_DEF_Beta_tags_1)
1265 /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */
1266 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001267 asn_MBR_Beta_1,
1268 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001269 &asn_SPC_Beta_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001270};
1271
1272
1273/*** <<< INCLUDES [Gamma] >>> ***/
1274
1275#include <constr_SEQUENCE.h>
1276
1277/*** <<< FWD-DECLS [Gamma] >>> ***/
1278
1279struct TwoThree;
1280struct Alpha;
1281struct Beta;
1282
1283/*** <<< TYPE-DECLS [Gamma] >>> ***/
1284
1285typedef struct Gamma {
1286 struct TwoThree *o;
1287 struct Alpha *a;
1288 struct Beta *b;
1289
1290 /* Context for parsing across buffer boundaries */
1291 asn_struct_ctx_t _asn_ctx;
1292} Gamma_t;
1293
1294/*** <<< FUNC-DECLS [Gamma] >>> ***/
1295
1296extern asn_TYPE_descriptor_t asn_DEF_Gamma;
1297
1298/*** <<< POST-INCLUDE [Gamma] >>> ***/
1299
Lev Walkin22b5ed42006-09-13 02:51:20 +00001300#include "TwoThree.h"
1301#include "Alpha.h"
1302#include "Beta.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001303
1304/*** <<< STAT-DEFS [Gamma] >>> ***/
1305
1306static asn_TYPE_member_t asn_MBR_Gamma_1[] = {
1307 { ATF_POINTER, 0, offsetof(struct Gamma, o),
1308 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1309 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001310 .type = &asn_DEF_TwoThree,
Lev Walkinb85a8132005-08-18 13:38:19 +00001311 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001312 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1313 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001314 .name = "o"
1315 },
1316 { ATF_POINTER, 0, offsetof(struct Gamma, a),
1317 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1318 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001319 .type = &asn_DEF_Alpha,
Lev Walkinb85a8132005-08-18 13:38:19 +00001320 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001321 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1322 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001323 .name = "a"
1324 },
1325 { ATF_POINTER, 0, offsetof(struct Gamma, b),
1326 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
1327 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001328 .type = &asn_DEF_Beta,
Lev Walkinb85a8132005-08-18 13:38:19 +00001329 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001330 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1331 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001332 .name = "b"
1333 },
1334};
Lev Walkin59b176e2005-11-26 11:25:14 +00001335static ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001336 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1337};
Lev Walkin59b176e2005-11-26 11:25:14 +00001338static asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001339 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* o */
1340 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a */
1341 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b */
Lev Walkinb85a8132005-08-18 13:38:19 +00001342};
Lev Walkin59b176e2005-11-26 11:25:14 +00001343static asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001344 sizeof(struct Gamma),
1345 offsetof(struct Gamma, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +00001346 asn_MAP_Gamma_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001347 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001348 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb85a8132005-08-18 13:38:19 +00001349 -1, /* Start extensions */
1350 -1 /* Stop extensions */
1351};
1352asn_TYPE_descriptor_t asn_DEF_Gamma = {
1353 "Gamma",
1354 "Gamma",
1355 SEQUENCE_free,
1356 SEQUENCE_print,
1357 SEQUENCE_constraint,
1358 SEQUENCE_decode_ber,
1359 SEQUENCE_encode_der,
1360 SEQUENCE_decode_xer,
1361 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001362 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001363 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001364 asn_DEF_Gamma_tags_1,
1365 sizeof(asn_DEF_Gamma_tags_1)
1366 /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */
1367 asn_DEF_Gamma_tags_1, /* Same as above */
1368 sizeof(asn_DEF_Gamma_tags_1)
1369 /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */
1370 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001371 asn_MBR_Gamma_1,
1372 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001373 &asn_SPC_Gamma_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001374};
1375
1376
1377/*** <<< INCLUDES [OneTwo] >>> ***/
1378
1379#include <constr_SET.h>
1380
1381/*** <<< DEPS [OneTwo] >>> ***/
1382
1383
1384/*
1385 * Method of determining the components presence
1386 */
1387typedef enum OneTwo_PR {
1388 OneTwo_PR_m12, /* Member m12 is present */
1389} OneTwo_PR;
1390
1391/*** <<< FWD-DECLS [OneTwo] >>> ***/
1392
1393struct TwoThree;
1394
1395/*** <<< TYPE-DECLS [OneTwo] >>> ***/
1396
1397typedef struct OneTwo {
1398 struct TwoThree *m12;
1399
1400 /* Presence bitmask: ASN_SET_ISPRESENT(pOneTwo, OneTwo_PR_x) */
1401 unsigned int _presence_map
1402 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1403
1404 /* Context for parsing across buffer boundaries */
1405 asn_struct_ctx_t _asn_ctx;
1406} OneTwo_t;
1407
1408/*** <<< FUNC-DECLS [OneTwo] >>> ***/
1409
1410extern asn_TYPE_descriptor_t asn_DEF_OneTwo;
1411
1412/*** <<< POST-INCLUDE [OneTwo] >>> ***/
1413
Lev Walkin22b5ed42006-09-13 02:51:20 +00001414#include "TwoThree.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001415
1416/*** <<< STAT-DEFS [OneTwo] >>> ***/
1417
1418static asn_TYPE_member_t asn_MBR_OneTwo_1[] = {
1419 { ATF_POINTER, 0, offsetof(struct OneTwo, m12),
1420 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1421 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001422 .type = &asn_DEF_TwoThree,
Lev Walkinb85a8132005-08-18 13:38:19 +00001423 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001424 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1425 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001426 .name = "m12"
1427 },
1428};
Lev Walkin59b176e2005-11-26 11:25:14 +00001429static ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001430 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1431};
Lev Walkin59b176e2005-11-26 11:25:14 +00001432static asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001433 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m12 */
Lev Walkinb85a8132005-08-18 13:38:19 +00001434};
Lev Walkin59b176e2005-11-26 11:25:14 +00001435static uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001436 (1 << 7)
1437};
Lev Walkin59b176e2005-11-26 11:25:14 +00001438static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001439 sizeof(struct OneTwo),
1440 offsetof(struct OneTwo, _asn_ctx),
1441 offsetof(struct OneTwo, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +00001442 asn_MAP_OneTwo_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001443 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001444 asn_MAP_OneTwo_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001445 1, /* Count of tags in the CXER map */
1446 0, /* Whether extensible */
Lev Walkin59b176e2005-11-26 11:25:14 +00001447 (unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001448};
1449asn_TYPE_descriptor_t asn_DEF_OneTwo = {
1450 "OneTwo",
1451 "OneTwo",
1452 SET_free,
1453 SET_print,
1454 SET_constraint,
1455 SET_decode_ber,
1456 SET_encode_der,
1457 SET_decode_xer,
1458 SET_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001459 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001460 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001461 asn_DEF_OneTwo_tags_1,
1462 sizeof(asn_DEF_OneTwo_tags_1)
1463 /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */
1464 asn_DEF_OneTwo_tags_1, /* Same as above */
1465 sizeof(asn_DEF_OneTwo_tags_1)
1466 /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */
1467 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001468 asn_MBR_OneTwo_1,
1469 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001470 &asn_SPC_OneTwo_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001471};
1472
1473
1474/*** <<< INCLUDES [TwoThree] >>> ***/
1475
1476#include <constr_SET.h>
1477
1478/*** <<< DEPS [TwoThree] >>> ***/
1479
1480
1481/*
1482 * Method of determining the components presence
1483 */
1484typedef enum TwoThree_PR {
1485 TwoThree_PR_m23, /* Member m23 is present */
1486} TwoThree_PR;
1487
1488/*** <<< FWD-DECLS [TwoThree] >>> ***/
1489
1490struct ThreeOne;
1491
1492/*** <<< TYPE-DECLS [TwoThree] >>> ***/
1493
1494typedef struct TwoThree {
1495 struct ThreeOne *m23;
1496
1497 /* Presence bitmask: ASN_SET_ISPRESENT(pTwoThree, TwoThree_PR_x) */
1498 unsigned int _presence_map
1499 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1500
1501 /* Context for parsing across buffer boundaries */
1502 asn_struct_ctx_t _asn_ctx;
1503} TwoThree_t;
1504
1505/*** <<< FUNC-DECLS [TwoThree] >>> ***/
1506
1507extern asn_TYPE_descriptor_t asn_DEF_TwoThree;
1508
1509/*** <<< POST-INCLUDE [TwoThree] >>> ***/
1510
Lev Walkin22b5ed42006-09-13 02:51:20 +00001511#include "ThreeOne.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001512
1513/*** <<< STAT-DEFS [TwoThree] >>> ***/
1514
1515static asn_TYPE_member_t asn_MBR_TwoThree_1[] = {
1516 { ATF_POINTER, 0, offsetof(struct TwoThree, m23),
1517 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1518 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001519 .type = &asn_DEF_ThreeOne,
Lev Walkinb85a8132005-08-18 13:38:19 +00001520 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001521 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1522 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001523 .name = "m23"
1524 },
1525};
Lev Walkin59b176e2005-11-26 11:25:14 +00001526static ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001527 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1528};
Lev Walkin59b176e2005-11-26 11:25:14 +00001529static asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001530 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m23 */
Lev Walkinb85a8132005-08-18 13:38:19 +00001531};
Lev Walkin59b176e2005-11-26 11:25:14 +00001532static uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001533 (1 << 7)
1534};
Lev Walkin59b176e2005-11-26 11:25:14 +00001535static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001536 sizeof(struct TwoThree),
1537 offsetof(struct TwoThree, _asn_ctx),
1538 offsetof(struct TwoThree, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +00001539 asn_MAP_TwoThree_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001540 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001541 asn_MAP_TwoThree_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001542 1, /* Count of tags in the CXER map */
1543 0, /* Whether extensible */
Lev Walkin59b176e2005-11-26 11:25:14 +00001544 (unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001545};
1546asn_TYPE_descriptor_t asn_DEF_TwoThree = {
1547 "TwoThree",
1548 "TwoThree",
1549 SET_free,
1550 SET_print,
1551 SET_constraint,
1552 SET_decode_ber,
1553 SET_encode_der,
1554 SET_decode_xer,
1555 SET_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001556 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001557 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001558 asn_DEF_TwoThree_tags_1,
1559 sizeof(asn_DEF_TwoThree_tags_1)
1560 /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */
1561 asn_DEF_TwoThree_tags_1, /* Same as above */
1562 sizeof(asn_DEF_TwoThree_tags_1)
1563 /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */
1564 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001565 asn_MBR_TwoThree_1,
1566 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001567 &asn_SPC_TwoThree_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001568};
1569
1570
1571/*** <<< INCLUDES [ThreeOne] >>> ***/
1572
1573#include <constr_SET.h>
1574
1575/*** <<< DEPS [ThreeOne] >>> ***/
1576
1577
1578/*
1579 * Method of determining the components presence
1580 */
1581typedef enum ThreeOne_PR {
1582 ThreeOne_PR_m31, /* Member m31 is present */
1583 ThreeOne_PR_g, /* Member g is present */
1584} ThreeOne_PR;
1585
1586/*** <<< FWD-DECLS [ThreeOne] >>> ***/
1587
1588struct OneTwo;
1589struct Gamma;
1590
1591/*** <<< TYPE-DECLS [ThreeOne] >>> ***/
1592
1593typedef struct ThreeOne {
1594 struct OneTwo *m31;
1595 struct Gamma *g;
1596
1597 /* Presence bitmask: ASN_SET_ISPRESENT(pThreeOne, ThreeOne_PR_x) */
1598 unsigned int _presence_map
1599 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
1600
1601 /* Context for parsing across buffer boundaries */
1602 asn_struct_ctx_t _asn_ctx;
1603} ThreeOne_t;
1604
1605/*** <<< FUNC-DECLS [ThreeOne] >>> ***/
1606
1607extern asn_TYPE_descriptor_t asn_DEF_ThreeOne;
1608
1609/*** <<< POST-INCLUDE [ThreeOne] >>> ***/
1610
Lev Walkin22b5ed42006-09-13 02:51:20 +00001611#include "OneTwo.h"
1612#include "Gamma.h"
Lev Walkinb85a8132005-08-18 13:38:19 +00001613
1614/*** <<< STAT-DEFS [ThreeOne] >>> ***/
1615
1616static asn_TYPE_member_t asn_MBR_ThreeOne_1[] = {
1617 { ATF_POINTER, 0, offsetof(struct ThreeOne, m31),
1618 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1619 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001620 .type = &asn_DEF_OneTwo,
Lev Walkinb85a8132005-08-18 13:38:19 +00001621 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001622 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1623 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001624 .name = "m31"
1625 },
1626 { ATF_POINTER, 0, offsetof(struct ThreeOne, g),
1627 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1628 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001629 .type = &asn_DEF_Gamma,
Lev Walkinb85a8132005-08-18 13:38:19 +00001630 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001631 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1632 .default_value = 0,
Lev Walkinb85a8132005-08-18 13:38:19 +00001633 .name = "g"
1634 },
1635};
Lev Walkin59b176e2005-11-26 11:25:14 +00001636static ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001637 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1638};
Lev Walkin59b176e2005-11-26 11:25:14 +00001639static asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001640 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m31 */
1641 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g */
Lev Walkinb85a8132005-08-18 13:38:19 +00001642};
Lev Walkin59b176e2005-11-26 11:25:14 +00001643static uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001644 (1 << 7) | (1 << 6)
1645};
Lev Walkin59b176e2005-11-26 11:25:14 +00001646static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = {
Lev Walkinb85a8132005-08-18 13:38:19 +00001647 sizeof(struct ThreeOne),
1648 offsetof(struct ThreeOne, _asn_ctx),
1649 offsetof(struct ThreeOne, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +00001650 asn_MAP_ThreeOne_tag2el_1,
Lev Walkinb85a8132005-08-18 13:38:19 +00001651 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001652 asn_MAP_ThreeOne_tag2el_1, /* Same as above */
Lev Walkinb85a8132005-08-18 13:38:19 +00001653 2, /* Count of tags in the CXER map */
1654 0, /* Whether extensible */
Lev Walkin59b176e2005-11-26 11:25:14 +00001655 (unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */
Lev Walkinb85a8132005-08-18 13:38:19 +00001656};
1657asn_TYPE_descriptor_t asn_DEF_ThreeOne = {
1658 "ThreeOne",
1659 "ThreeOne",
1660 SET_free,
1661 SET_print,
1662 SET_constraint,
1663 SET_decode_ber,
1664 SET_encode_der,
1665 SET_decode_xer,
1666 SET_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001667 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb85a8132005-08-18 13:38:19 +00001668 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001669 asn_DEF_ThreeOne_tags_1,
1670 sizeof(asn_DEF_ThreeOne_tags_1)
1671 /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */
1672 asn_DEF_ThreeOne_tags_1, /* Same as above */
1673 sizeof(asn_DEF_ThreeOne_tags_1)
1674 /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */
1675 0, /* No PER visible constraints */
Lev Walkinb85a8132005-08-18 13:38:19 +00001676 asn_MBR_ThreeOne_1,
1677 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001678 &asn_SPC_ThreeOne_specs_1 /* Additional specs */
Lev Walkinb85a8132005-08-18 13:38:19 +00001679};
1680