blob: 25b381da5122e97b175d17cd91a8603f2e8c0980 [file] [log] [blame]
Lev Walkin4696c742005-08-22 12:23:54 +00001
2/*** <<< INCLUDES [Sequence] >>> ***/
3
4#include <INTEGER.h>
5#include <constr_SEQUENCE.h>
6
7/*** <<< TYPE-DECLS [Sequence] >>> ***/
8
9typedef struct Sequence {
10 INTEGER_t ainl;
11 INTEGER_t *aptr;
12
13 /* Context for parsing across buffer boundaries */
14 asn_struct_ctx_t _asn_ctx;
15} Sequence_t;
16
17/*** <<< FUNC-DECLS [Sequence] >>> ***/
18
19extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080020extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
21extern asn_TYPE_member_t asn_MBR_Sequence_1[2];
Lev Walkin4696c742005-08-22 12:23:54 +000022
23/*** <<< STAT-DEFS [Sequence] >>> ***/
24
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080025asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkin4696c742005-08-22 12:23:54 +000026 { ATF_NOFLAGS, 0, offsetof(struct Sequence, ainl),
27 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
28 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000029 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -070030 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070031 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070032 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +000033 .name = "ainl"
34 },
35 { ATF_POINTER, 0, offsetof(struct Sequence, aptr),
36 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
37 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000038 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -070039 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070040 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070041 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +000042 .name = "aptr"
43 },
44};
Lev Walkina7591b52014-10-12 18:37:35 -070045static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkin4696c742005-08-22 12:23:54 +000046 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
47};
Lev Walkina7591b52014-10-12 18:37:35 -070048static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -070049 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */
50 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */
Lev Walkin4696c742005-08-22 12:23:54 +000051};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080052asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkin4696c742005-08-22 12:23:54 +000053 sizeof(struct Sequence),
54 offsetof(struct Sequence, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -070055 .tag2el = asn_MAP_Sequence_tag2el_1,
56 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +000057 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin4696c742005-08-22 12:23:54 +000058 -1, /* Start extensions */
59 -1 /* Stop extensions */
60};
61asn_TYPE_descriptor_t asn_DEF_Sequence = {
62 "Sequence",
63 "Sequence",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080064 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +000065 asn_DEF_Sequence_tags_1,
66 sizeof(asn_DEF_Sequence_tags_1)
67 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
68 asn_DEF_Sequence_tags_1, /* Same as above */
69 sizeof(asn_DEF_Sequence_tags_1)
70 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -070071 { 0, 0, SEQUENCE_constraint },
Lev Walkin4696c742005-08-22 12:23:54 +000072 asn_MBR_Sequence_1,
73 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +000074 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkin4696c742005-08-22 12:23:54 +000075};
76
77
78/*** <<< INCLUDES [Set] >>> ***/
79
Lev Walkin22b5ed42006-09-13 02:51:20 +000080#include "Sequence.h"
Lev Walkin4696c742005-08-22 12:23:54 +000081#include <constr_SET.h>
82
83/*** <<< DEPS [Set] >>> ***/
84
85
86/*
87 * Method of determining the components presence
88 */
89typedef enum Set_PR {
90 Set_PR_ainl, /* Member ainl is present */
91 Set_PR_aptr, /* Member aptr is present */
92} Set_PR;
93
94/*** <<< FWD-DECLS [Set] >>> ***/
95
96struct Sequence;
97
98/*** <<< TYPE-DECLS [Set] >>> ***/
99
100typedef struct Set {
101 Sequence_t ainl;
102 struct Sequence *aptr;
103
104 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
105 unsigned int _presence_map
106 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
107
108 /* Context for parsing across buffer boundaries */
109 asn_struct_ctx_t _asn_ctx;
110} Set_t;
111
112/*** <<< FUNC-DECLS [Set] >>> ***/
113
114extern asn_TYPE_descriptor_t asn_DEF_Set;
115
116/*** <<< POST-INCLUDE [Set] >>> ***/
117
Lev Walkin22b5ed42006-09-13 02:51:20 +0000118#include "Sequence.h"
Lev Walkin4696c742005-08-22 12:23:54 +0000119
120/*** <<< STAT-DEFS [Set] >>> ***/
121
122static asn_TYPE_member_t asn_MBR_Set_1[] = {
123 { ATF_NOFLAGS, 0, offsetof(struct Set, ainl),
124 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
125 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000126 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700127 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700128 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700129 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +0000130 .name = "ainl"
131 },
132 { ATF_POINTER, 0, offsetof(struct Set, aptr),
133 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
134 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000135 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700136 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700137 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700138 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +0000139 .name = "aptr"
140 },
141};
Lev Walkina7591b52014-10-12 18:37:35 -0700142static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkin4696c742005-08-22 12:23:54 +0000143 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
144};
Lev Walkina7591b52014-10-12 18:37:35 -0700145static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700146 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */
147 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */
Lev Walkin4696c742005-08-22 12:23:54 +0000148};
Lev Walkina7591b52014-10-12 18:37:35 -0700149static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin4696c742005-08-22 12:23:54 +0000150 (1 << 7) | (1 << 6)
151};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800152static
153asn_SET_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkin4696c742005-08-22 12:23:54 +0000154 sizeof(struct Set),
155 offsetof(struct Set, _asn_ctx),
156 offsetof(struct Set, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700157 .tag2el = asn_MAP_Set_tag2el_1,
158 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000159 asn_MAP_Set_tag2el_1, /* Same as above */
Lev Walkin4696c742005-08-22 12:23:54 +0000160 2, /* Count of tags in the CXER map */
161 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700162 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
Lev Walkin4696c742005-08-22 12:23:54 +0000163};
164asn_TYPE_descriptor_t asn_DEF_Set = {
165 "Set",
166 "Set",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800167 &asn_OP_SET,
Lev Walkin59b176e2005-11-26 11:25:14 +0000168 asn_DEF_Set_tags_1,
169 sizeof(asn_DEF_Set_tags_1)
170 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
171 asn_DEF_Set_tags_1, /* Same as above */
172 sizeof(asn_DEF_Set_tags_1)
173 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700174 { 0, 0, SET_constraint },
Lev Walkin4696c742005-08-22 12:23:54 +0000175 asn_MBR_Set_1,
176 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000177 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkin4696c742005-08-22 12:23:54 +0000178};
179
180
181/*** <<< INCLUDES [Choice] >>> ***/
182
Lev Walkin22b5ed42006-09-13 02:51:20 +0000183#include "Sequence.h"
Lev Walkin4696c742005-08-22 12:23:54 +0000184#include <INTEGER.h>
185#include <asn_SET_OF.h>
186#include <constr_SET_OF.h>
187#include <constr_CHOICE.h>
188
189/*** <<< DEPS [Choice] >>> ***/
190
191typedef enum Choice_PR {
192 Choice_PR_NOTHING, /* No components present */
193 Choice_PR_setof,
194 Choice_PR_aptr,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000195 Choice_PR_ainl
Lev Walkin4696c742005-08-22 12:23:54 +0000196} Choice_PR;
197
198/*** <<< FWD-DECLS [Choice] >>> ***/
199
200struct Sequence;
201
202/*** <<< TYPE-DECLS [Choice] >>> ***/
203
204typedef struct Choice {
205 Choice_PR present;
206 union Choice_u {
207 struct setof {
208 A_SET_OF(INTEGER_t) list;
209
210 /* Context for parsing across buffer boundaries */
211 asn_struct_ctx_t _asn_ctx;
212 } *setof;
213 struct Sequence *aptr;
214 Sequence_t ainl;
215 } choice;
216
217 /* Context for parsing across buffer boundaries */
218 asn_struct_ctx_t _asn_ctx;
219} Choice_t;
220
221/*** <<< FUNC-DECLS [Choice] >>> ***/
222
223extern asn_TYPE_descriptor_t asn_DEF_Choice;
224
225/*** <<< POST-INCLUDE [Choice] >>> ***/
226
Lev Walkin22b5ed42006-09-13 02:51:20 +0000227#include "Sequence.h"
Lev Walkin4696c742005-08-22 12:23:54 +0000228
229/*** <<< STAT-DEFS [Choice] >>> ***/
230
231static asn_TYPE_member_t asn_MBR_setof_2[] = {
232 { ATF_POINTER, 0, 0,
233 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
234 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000235 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700236 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700237 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700238 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +0000239 .name = ""
240 },
241};
Lev Walkina7591b52014-10-12 18:37:35 -0700242static const ber_tlv_tag_t asn_DEF_setof_tags_2[] = {
Lev Walkin4696c742005-08-22 12:23:54 +0000243 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
244 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
245};
Lev Walkin59b176e2005-11-26 11:25:14 +0000246static asn_SET_OF_specifics_t asn_SPC_setof_specs_2 = {
Lev Walkin4696c742005-08-22 12:23:54 +0000247 sizeof(struct setof),
248 offsetof(struct setof, _asn_ctx),
249 0, /* XER encoding is XMLDelimitedItemList */
250};
251static /* Use -fall-defs-global to expose */
252asn_TYPE_descriptor_t asn_DEF_setof_2 = {
253 "setof",
254 "setof",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800255 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000256 asn_DEF_setof_tags_2,
257 sizeof(asn_DEF_setof_tags_2)
258 /sizeof(asn_DEF_setof_tags_2[0]) - 1, /* 1 */
259 asn_DEF_setof_tags_2, /* Same as above */
260 sizeof(asn_DEF_setof_tags_2)
261 /sizeof(asn_DEF_setof_tags_2[0]), /* 2 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700262 { 0, 0, SET_OF_constraint },
Lev Walkin4696c742005-08-22 12:23:54 +0000263 asn_MBR_setof_2,
264 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000265 &asn_SPC_setof_specs_2 /* Additional specs */
Lev Walkin4696c742005-08-22 12:23:54 +0000266};
267
268static asn_TYPE_member_t asn_MBR_Choice_1[] = {
269 { ATF_POINTER, 0, offsetof(struct Choice, choice.setof),
270 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000271 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000272 .type = &asn_DEF_setof_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700273 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700274 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700275 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +0000276 .name = "setof"
277 },
278 { ATF_POINTER, 0, offsetof(struct Choice, choice.aptr),
279 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
280 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000281 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700282 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700283 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700284 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +0000285 .name = "aptr"
286 },
287 { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ainl),
288 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
289 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000290 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700291 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700292 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700293 0, 0, /* No default value */
Lev Walkin4696c742005-08-22 12:23:54 +0000294 .name = "ainl"
295 },
296};
Lev Walkina7591b52014-10-12 18:37:35 -0700297static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700298 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setof */
299 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aptr */
300 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ainl */
Lev Walkin4696c742005-08-22 12:23:54 +0000301};
Lev Walkin59b176e2005-11-26 11:25:14 +0000302static asn_CHOICE_specifics_t asn_SPC_Choice_specs_1 = {
Lev Walkin4696c742005-08-22 12:23:54 +0000303 sizeof(struct Choice),
304 offsetof(struct Choice, _asn_ctx),
305 offsetof(struct Choice, present),
306 sizeof(((struct Choice *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700307 .tag2el = asn_MAP_Choice_tag2el_1,
308 .tag2el_count = 3, /* Count of tags in the map */
Lev Walkin20696a42017-10-17 21:27:33 -0700309 0, 0,
Lev Walkin59b176e2005-11-26 11:25:14 +0000310 .ext_start = -1 /* Extensions start */
Lev Walkin4696c742005-08-22 12:23:54 +0000311};
312asn_TYPE_descriptor_t asn_DEF_Choice = {
313 "Choice",
314 "Choice",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800315 &asn_OP_CHOICE,
Lev Walkin4696c742005-08-22 12:23:54 +0000316 0, /* No effective tags (pointer) */
317 0, /* No effective tags (count) */
318 0, /* No tags (pointer) */
319 0, /* No tags (count) */
Lev Walkin0bfea562017-09-29 23:16:48 -0700320 { 0, 0, CHOICE_constraint },
Lev Walkin4696c742005-08-22 12:23:54 +0000321 asn_MBR_Choice_1,
322 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000323 &asn_SPC_Choice_specs_1 /* Additional specs */
Lev Walkin4696c742005-08-22 12:23:54 +0000324};
325