2 /*** <<< INCLUDES [Sequence] >>> ***/
5 #include <constr_SEQUENCE.h>
7 /*** <<< TYPE-DECLS [Sequence] >>> ***/
9 typedef struct Sequence {
13 /* Context for parsing across buffer boundaries */
14 asn_struct_ctx_t _asn_ctx;
17 /*** <<< FUNC-DECLS [Sequence] >>> ***/
19 extern asn_TYPE_descriptor_t asn_DEF_Sequence;
20 extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
21 extern asn_TYPE_member_t asn_MBR_Sequence_1[2];
23 /*** <<< STAT-DEFS [Sequence] >>> ***/
25 asn_TYPE_member_t asn_MBR_Sequence_1[] = {
26 { ATF_NOFLAGS, 0, offsetof(struct Sequence, ainl),
27 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
28 .tag_mode = -1, /* IMPLICIT tag at current level */
29 .type = &asn_DEF_INTEGER,
31 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
32 0, 0, /* No default value */
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 */
38 .type = &asn_DEF_INTEGER,
40 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
41 0, 0, /* No default value */
45 static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
46 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
48 static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
49 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */
50 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */
52 asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
53 sizeof(struct Sequence),
54 offsetof(struct Sequence, _asn_ctx),
55 .tag2el = asn_MAP_Sequence_tag2el_1,
56 .tag2el_count = 2, /* Count of tags in the map */
57 0, 0, 0, /* Optional elements (not needed) */
58 -1, /* First extension addition */
60 asn_TYPE_descriptor_t asn_DEF_Sequence = {
64 asn_DEF_Sequence_tags_1,
65 sizeof(asn_DEF_Sequence_tags_1)
66 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
67 asn_DEF_Sequence_tags_1, /* Same as above */
68 sizeof(asn_DEF_Sequence_tags_1)
69 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
70 { 0, 0, SEQUENCE_constraint },
72 2, /* Elements count */
73 &asn_SPC_Sequence_specs_1 /* Additional specs */
77 /*** <<< INCLUDES [Set] >>> ***/
80 #include <constr_SET.h>
82 /*** <<< DEPS [Set] >>> ***/
86 * Method of determining the components presence
89 Set_PR_ainl, /* Member ainl is present */
90 Set_PR_aptr, /* Member aptr is present */
93 /*** <<< FWD-DECLS [Set] >>> ***/
97 /*** <<< TYPE-DECLS [Set] >>> ***/
101 struct Sequence *aptr;
103 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
104 unsigned int _presence_map
105 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
107 /* Context for parsing across buffer boundaries */
108 asn_struct_ctx_t _asn_ctx;
111 /*** <<< FUNC-DECLS [Set] >>> ***/
113 extern asn_TYPE_descriptor_t asn_DEF_Set;
115 /*** <<< POST-INCLUDE [Set] >>> ***/
117 #include "Sequence.h"
119 /*** <<< STAT-DEFS [Set] >>> ***/
121 static asn_TYPE_member_t asn_MBR_Set_1[] = {
122 { ATF_NOFLAGS, 0, offsetof(struct Set, ainl),
123 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
124 .tag_mode = -1, /* IMPLICIT tag at current level */
125 .type = &asn_DEF_Sequence,
127 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
128 0, 0, /* No default value */
131 { ATF_POINTER, 0, offsetof(struct Set, aptr),
132 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
133 .tag_mode = -1, /* IMPLICIT tag at current level */
134 .type = &asn_DEF_Sequence,
136 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
137 0, 0, /* No default value */
141 static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
142 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
144 static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
145 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ainl */
146 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* aptr */
148 static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
152 asn_SET_specifics_t asn_SPC_Set_specs_1 = {
154 offsetof(struct Set, _asn_ctx),
155 offsetof(struct Set, _presence_map),
156 .tag2el = asn_MAP_Set_tag2el_1,
157 .tag2el_count = 2, /* Count of tags in the map */
158 asn_MAP_Set_tag2el_1, /* Same as above */
159 2, /* Count of tags in the CXER map */
160 0, /* Whether extensible */
161 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
163 asn_TYPE_descriptor_t asn_DEF_Set = {
168 sizeof(asn_DEF_Set_tags_1)
169 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
170 asn_DEF_Set_tags_1, /* Same as above */
171 sizeof(asn_DEF_Set_tags_1)
172 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
173 { 0, 0, SET_constraint },
175 2, /* Elements count */
176 &asn_SPC_Set_specs_1 /* Additional specs */
180 /*** <<< INCLUDES [Choice] >>> ***/
182 #include "Sequence.h"
184 #include <asn_SET_OF.h>
185 #include <constr_SET_OF.h>
186 #include <constr_CHOICE.h>
188 /*** <<< DEPS [Choice] >>> ***/
190 typedef enum Choice_PR {
191 Choice_PR_NOTHING, /* No components present */
197 /*** <<< FWD-DECLS [Choice] >>> ***/
201 /*** <<< TYPE-DECLS [Choice] >>> ***/
203 typedef struct Choice {
207 A_SET_OF(INTEGER_t) list;
209 /* Context for parsing across buffer boundaries */
210 asn_struct_ctx_t _asn_ctx;
212 struct Sequence *aptr;
216 /* Context for parsing across buffer boundaries */
217 asn_struct_ctx_t _asn_ctx;
220 /*** <<< FUNC-DECLS [Choice] >>> ***/
222 extern asn_TYPE_descriptor_t asn_DEF_Choice;
224 /*** <<< POST-INCLUDE [Choice] >>> ***/
226 #include "Sequence.h"
228 /*** <<< STAT-DEFS [Choice] >>> ***/
230 static asn_TYPE_member_t asn_MBR_setof_2[] = {
232 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
234 .type = &asn_DEF_INTEGER,
236 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
237 0, 0, /* No default value */
241 static const ber_tlv_tag_t asn_DEF_setof_tags_2[] = {
242 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
243 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
245 static asn_SET_OF_specifics_t asn_SPC_setof_specs_2 = {
246 sizeof(struct setof),
247 offsetof(struct setof, _asn_ctx),
248 0, /* XER encoding is XMLDelimitedItemList */
250 static /* Use -fall-defs-global to expose */
251 asn_TYPE_descriptor_t asn_DEF_setof_2 = {
255 asn_DEF_setof_tags_2,
256 sizeof(asn_DEF_setof_tags_2)
257 /sizeof(asn_DEF_setof_tags_2[0]) - 1, /* 1 */
258 asn_DEF_setof_tags_2, /* Same as above */
259 sizeof(asn_DEF_setof_tags_2)
260 /sizeof(asn_DEF_setof_tags_2[0]), /* 2 */
261 { 0, 0, SET_OF_constraint },
263 1, /* Single element */
264 &asn_SPC_setof_specs_2 /* Additional specs */
267 static asn_TYPE_member_t asn_MBR_Choice_1[] = {
268 { ATF_POINTER, 0, offsetof(struct Choice, choice.setof),
269 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
271 .type = &asn_DEF_setof_2,
273 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
274 0, 0, /* No default value */
277 { ATF_POINTER, 0, offsetof(struct Choice, choice.aptr),
278 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
279 .tag_mode = -1, /* IMPLICIT tag at current level */
280 .type = &asn_DEF_Sequence,
282 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
283 0, 0, /* No default value */
286 { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.ainl),
287 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
288 .tag_mode = -1, /* IMPLICIT tag at current level */
289 .type = &asn_DEF_Sequence,
291 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
292 0, 0, /* No default value */
296 static const asn_TYPE_tag2member_t asn_MAP_Choice_tag2el_1[] = {
297 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* setof */
298 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aptr */
299 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ainl */
301 static asn_CHOICE_specifics_t asn_SPC_Choice_specs_1 = {
302 sizeof(struct Choice),
303 offsetof(struct Choice, _asn_ctx),
304 offsetof(struct Choice, present),
305 sizeof(((struct Choice *)0)->present),
306 .tag2el = asn_MAP_Choice_tag2el_1,
307 .tag2el_count = 3, /* Count of tags in the map */
309 .first_extension = -1 /* Extensions start */
311 asn_TYPE_descriptor_t asn_DEF_Choice = {
315 0, /* No effective tags (pointer) */
316 0, /* No effective tags (count) */
317 0, /* No tags (pointer) */
318 0, /* No tags (count) */
319 { 0, 0, CHOICE_constraint },
321 3, /* Elements count */
322 &asn_SPC_Choice_specs_1 /* Additional specs */