blob: 6214a21cc195c71e909a97d24e75b3372a049364 [file] [log] [blame]
vlm0d9046e2005-02-14 20:40:57 +00001
2/*** <<< INCLUDES [PDU] >>> ***/
3
4#include <Sequence.h>
5#include <Set.h>
6#include <SetOf.h>
vlm422e4ce2005-02-18 16:30:26 +00007#include <SequenceOf.h>
8#include <ExtensibleSet.h>
9#include <ExtensibleSequence.h>
vlm0d9046e2005-02-14 20:40:57 +000010#include <constr_CHOICE.h>
11
12/*** <<< DEPS [PDU] >>> ***/
13
14typedef enum PDU_PR {
15 PDU_PR_NOTHING, /* No components present */
16 PDU_PR_sequence,
17 PDU_PR_set,
18 PDU_PR_setOf,
vlm422e4ce2005-02-18 16:30:26 +000019 PDU_PR_sequenceOf,
20 PDU_PR_extensibleSet,
21 PDU_PR_extensibleSequence,
22 /* Extensions may appear below */
vlm0d9046e2005-02-14 20:40:57 +000023} PDU_PR;
24extern asn_TYPE_descriptor_t asn_DEF_PDU;
25
26/*** <<< TYPE-DECLS [PDU] >>> ***/
27
28
29typedef struct PDU {
30 PDU_PR present;
31 union {
32 Sequence_t sequence;
33 Set_t set;
34 SetOf_t setOf;
vlm422e4ce2005-02-18 16:30:26 +000035 SequenceOf_t sequenceOf;
36 ExtensibleSet_t extensibleSet;
37 ExtensibleSequence_t extensibleSequence;
38 /*
39 * This type is extensible,
40 * possible extensions are below.
41 */
vlm0d9046e2005-02-14 20:40:57 +000042 } choice;
43
44 /* Context for parsing across buffer boundaries */
45 asn_struct_ctx_t _asn_ctx;
46} PDU_t;
47
48/*** <<< STAT-DEFS [PDU] >>> ***/
49
50static asn_TYPE_member_t asn_MBR_PDU[] = {
51 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence),
52 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
53 .tag_mode = -1, /* IMPLICIT tag at current level */
54 .type = (void *)&asn_DEF_Sequence,
55 .memb_constraints = 0, /* Defer constraints checking to the member type */
56 .name = "sequence"
57 },
58 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
59 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
60 .tag_mode = -1, /* IMPLICIT tag at current level */
61 .type = (void *)&asn_DEF_Set,
62 .memb_constraints = 0, /* Defer constraints checking to the member type */
63 .name = "set"
64 },
65 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf),
66 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
67 .tag_mode = -1, /* IMPLICIT tag at current level */
68 .type = (void *)&asn_DEF_SetOf,
69 .memb_constraints = 0, /* Defer constraints checking to the member type */
70 .name = "setOf"
71 },
vlm422e4ce2005-02-18 16:30:26 +000072 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
vlm0d9046e2005-02-14 20:40:57 +000073 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
74 .tag_mode = -1, /* IMPLICIT tag at current level */
vlm422e4ce2005-02-18 16:30:26 +000075 .type = (void *)&asn_DEF_SequenceOf,
vlm0d9046e2005-02-14 20:40:57 +000076 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm422e4ce2005-02-18 16:30:26 +000077 .name = "sequenceOf"
78 },
79 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
80 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
81 .tag_mode = -1, /* IMPLICIT tag at current level */
82 .type = (void *)&asn_DEF_ExtensibleSet,
83 .memb_constraints = 0, /* Defer constraints checking to the member type */
84 .name = "extensibleSet"
85 },
86 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
87 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
88 .tag_mode = -1, /* IMPLICIT tag at current level */
89 .type = (void *)&asn_DEF_ExtensibleSequence,
90 .memb_constraints = 0, /* Defer constraints checking to the member type */
91 .name = "extensibleSequence"
vlm0d9046e2005-02-14 20:40:57 +000092 },
93};
94static asn_TYPE_tag2member_t asn_DEF_PDU_tag2el[] = {
95 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence at 19 */
96 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 20 */
97 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* setOf at 21 */
vlm422e4ce2005-02-18 16:30:26 +000098 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sequenceOf at 22 */
99 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSet at 23 */
100 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence at 24 */
vlm0d9046e2005-02-14 20:40:57 +0000101};
102static asn_CHOICE_specifics_t asn_DEF_PDU_specs = {
103 sizeof(struct PDU),
104 offsetof(struct PDU, _asn_ctx),
105 offsetof(struct PDU, present),
106 sizeof(((struct PDU *)0)->present),
107 asn_DEF_PDU_tag2el,
vlm422e4ce2005-02-18 16:30:26 +0000108 6, /* Count of tags in the map */
109 1 /* Whether extensible */
vlm0d9046e2005-02-14 20:40:57 +0000110};
111asn_TYPE_descriptor_t asn_DEF_PDU = {
112 "PDU",
113 "PDU",
114 CHOICE_free,
115 CHOICE_print,
116 CHOICE_constraint,
117 CHOICE_decode_ber,
118 CHOICE_encode_der,
119 CHOICE_decode_xer,
120 CHOICE_encode_xer,
121 CHOICE_outmost_tag,
122 0, /* No effective tags (pointer) */
123 0, /* No effective tags (count) */
124 0, /* No tags (pointer) */
125 0, /* No tags (count) */
126 asn_MBR_PDU,
vlm422e4ce2005-02-18 16:30:26 +0000127 6, /* Elements count */
vlm0d9046e2005-02-14 20:40:57 +0000128 &asn_DEF_PDU_specs /* Additional specs */
129};
130
131
132/*** <<< INCLUDES [Sequence] >>> ***/
133
134#include <INTEGER.h>
135#include <Sequence.h>
136#include <BIT_STRING.h>
137#include <UTF8String.h>
138#include <constr_SEQUENCE.h>
139
140/*** <<< DEPS [Sequence] >>> ***/
141
142
143struct Sequence; /* Forward declaration */
144extern asn_TYPE_descriptor_t asn_DEF_Sequence;
145
146/*** <<< TYPE-DECLS [Sequence] >>> ***/
147
148
149typedef struct Sequence {
150 INTEGER_t integer;
151 struct Sequence *sequence /* OPTIONAL */;
152 BIT_STRING_t *bits /* OPTIONAL */;
153 UTF8String_t string;
154
155 /* Context for parsing across buffer boundaries */
156 asn_struct_ctx_t _asn_ctx;
157} Sequence_t;
158
159/*** <<< STAT-DEFS [Sequence] >>> ***/
160
161static asn_TYPE_member_t asn_MBR_Sequence[] = {
162 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
163 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
164 .tag_mode = -1, /* IMPLICIT tag at current level */
165 .type = (void *)&asn_DEF_INTEGER,
166 .memb_constraints = 0, /* Defer constraints checking to the member type */
167 .name = "integer"
168 },
169 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
170 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
171 .tag_mode = -1, /* IMPLICIT tag at current level */
172 .type = (void *)&asn_DEF_Sequence,
173 .memb_constraints = 0, /* Defer constraints checking to the member type */
174 .name = "sequence"
175 },
176 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
177 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
178 .tag_mode = -1, /* IMPLICIT tag at current level */
179 .type = (void *)&asn_DEF_BIT_STRING,
180 .memb_constraints = 0, /* Defer constraints checking to the member type */
181 .name = "bits"
182 },
183 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
184 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
185 .tag_mode = -1, /* IMPLICIT tag at current level */
186 .type = (void *)&asn_DEF_UTF8String,
187 .memb_constraints = 0, /* Defer constraints checking to the member type */
188 .name = "string"
189 },
190};
191static ber_tlv_tag_t asn_DEF_Sequence_tags[] = {
192 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
193};
194static asn_TYPE_tag2member_t asn_DEF_Sequence_tag2el[] = {
vlm422e4ce2005-02-18 16:30:26 +0000195 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer at 29 */
196 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence at 30 */
197 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits at 31 */
198 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* string at 32 */
vlm0d9046e2005-02-14 20:40:57 +0000199};
200static asn_SEQUENCE_specifics_t asn_DEF_Sequence_specs = {
201 sizeof(struct Sequence),
202 offsetof(struct Sequence, _asn_ctx),
203 asn_DEF_Sequence_tag2el,
204 4, /* Count of tags in the map */
205 -1, /* Start extensions */
206 -1 /* Stop extensions */
207};
208asn_TYPE_descriptor_t asn_DEF_Sequence = {
209 "Sequence",
210 "Sequence",
211 SEQUENCE_free,
212 SEQUENCE_print,
213 SEQUENCE_constraint,
214 SEQUENCE_decode_ber,
215 SEQUENCE_encode_der,
216 SEQUENCE_decode_xer,
217 SEQUENCE_encode_xer,
218 0, /* Use generic outmost tag fetcher */
219 asn_DEF_Sequence_tags,
220 sizeof(asn_DEF_Sequence_tags)
221 /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */
222 asn_DEF_Sequence_tags, /* Same as above */
223 sizeof(asn_DEF_Sequence_tags)
224 /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */
225 asn_MBR_Sequence,
226 4, /* Elements count */
227 &asn_DEF_Sequence_specs /* Additional specs */
228};
229
230
231/*** <<< INCLUDES [Set] >>> ***/
232
233#include <RELATIVE-OID.h>
234#include <OCTET_STRING.h>
235#include <constr_SET.h>
236
237/*** <<< DEPS [Set] >>> ***/
238
239
240/*
241 * Method of determining the components presence
242 */
243typedef enum Set_PR {
244 Set_PR_roid, /* Member roid is present */
245 Set_PR_opaque, /* Member opaque is present */
246} Set_PR;
247extern asn_TYPE_descriptor_t asn_DEF_Set;
248
249/*** <<< TYPE-DECLS [Set] >>> ***/
250
251
252typedef struct Set {
253 RELATIVE_OID_t roid;
254 OCTET_STRING_t *opaque /* OPTIONAL */;
255
256 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
257 unsigned int _presence_map
258 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
259
260 /* Context for parsing across buffer boundaries */
261 asn_struct_ctx_t _asn_ctx;
262} Set_t;
263
264/*** <<< STAT-DEFS [Set] >>> ***/
265
266static asn_TYPE_member_t asn_MBR_Set[] = {
267 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
268 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
269 .tag_mode = -1, /* IMPLICIT tag at current level */
270 .type = (void *)&asn_DEF_RELATIVE_OID,
271 .memb_constraints = 0, /* Defer constraints checking to the member type */
272 .name = "roid"
273 },
274 { ATF_POINTER, 1, offsetof(struct Set, opaque),
275 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
276 .tag_mode = -1, /* IMPLICIT tag at current level */
277 .type = (void *)&asn_DEF_OCTET_STRING,
278 .memb_constraints = 0, /* Defer constraints checking to the member type */
279 .name = "opaque"
280 },
281};
282static ber_tlv_tag_t asn_DEF_Set_tags[] = {
283 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
284};
285static asn_TYPE_tag2member_t asn_DEF_Set_tag2el[] = {
vlm422e4ce2005-02-18 16:30:26 +0000286 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid at 36 */
287 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* opaque at 37 */
vlm0d9046e2005-02-14 20:40:57 +0000288};
289static uint8_t asn_DEF_Set_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
290 (1 << 7) | (0 << 6)
291};
292static asn_SET_specifics_t asn_DEF_Set_specs = {
293 sizeof(struct Set),
294 offsetof(struct Set, _asn_ctx),
295 offsetof(struct Set, _presence_map),
296 asn_DEF_Set_tag2el,
297 2, /* Count of tags in the map */
298 asn_DEF_Set_tag2el, /* Same as above */
299 2, /* Count of tags in the CANONICAL-XER map */
300 0, /* Whether extensible */
301 (unsigned int *)asn_DEF_Set_mmap /* Mandatory elements map */
302};
303asn_TYPE_descriptor_t asn_DEF_Set = {
304 "Set",
305 "Set",
306 SET_free,
307 SET_print,
308 SET_constraint,
309 SET_decode_ber,
310 SET_encode_der,
311 SET_decode_xer,
312 SET_encode_xer,
313 0, /* Use generic outmost tag fetcher */
314 asn_DEF_Set_tags,
315 sizeof(asn_DEF_Set_tags)
316 /sizeof(asn_DEF_Set_tags[0]), /* 1 */
317 asn_DEF_Set_tags, /* Same as above */
318 sizeof(asn_DEF_Set_tags)
319 /sizeof(asn_DEF_Set_tags[0]), /* 1 */
320 asn_MBR_Set,
321 2, /* Elements count */
322 &asn_DEF_Set_specs /* Additional specs */
323};
324
325
vlm422e4ce2005-02-18 16:30:26 +0000326/*** <<< INCLUDES [ExtensibleSet] >>> ***/
327
328#include <UTF8String.h>
329#include <constr_SET.h>
330
331/*** <<< DEPS [ExtensibleSet] >>> ***/
332
333
334/*
335 * Method of determining the components presence
336 */
337typedef enum ExtensibleSet_PR {
338 ExtensibleSet_PR_string, /* Member string is present */
339} ExtensibleSet_PR;
340extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
341
342/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
343
344
345typedef struct ExtensibleSet {
346 UTF8String_t *string /* OPTIONAL */;
347 /*
348 * This type is extensible,
349 * possible extensions are below.
350 */
351
352 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
353 unsigned int _presence_map
354 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
355
356 /* Context for parsing across buffer boundaries */
357 asn_struct_ctx_t _asn_ctx;
358} ExtensibleSet_t;
359
360/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
361
362static asn_TYPE_member_t asn_MBR_ExtensibleSet[] = {
363 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, string),
364 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
365 .tag_mode = -1, /* IMPLICIT tag at current level */
366 .type = (void *)&asn_DEF_UTF8String,
367 .memb_constraints = 0, /* Defer constraints checking to the member type */
368 .name = "string"
369 },
370};
371static ber_tlv_tag_t asn_DEF_ExtensibleSet_tags[] = {
372 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
373};
374static asn_TYPE_tag2member_t asn_DEF_ExtensibleSet_tag2el[] = {
375 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 41 */
376};
377static uint8_t asn_DEF_ExtensibleSet_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
378 (0 << 7)
379};
380static asn_SET_specifics_t asn_DEF_ExtensibleSet_specs = {
381 sizeof(struct ExtensibleSet),
382 offsetof(struct ExtensibleSet, _asn_ctx),
383 offsetof(struct ExtensibleSet, _presence_map),
384 asn_DEF_ExtensibleSet_tag2el,
385 1, /* Count of tags in the map */
386 asn_DEF_ExtensibleSet_tag2el, /* Same as above */
387 1, /* Count of tags in the CANONICAL-XER map */
388 1, /* Whether extensible */
389 (unsigned int *)asn_DEF_ExtensibleSet_mmap /* Mandatory elements map */
390};
391asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
392 "ExtensibleSet",
393 "ExtensibleSet",
394 SET_free,
395 SET_print,
396 SET_constraint,
397 SET_decode_ber,
398 SET_encode_der,
399 SET_decode_xer,
400 SET_encode_xer,
401 0, /* Use generic outmost tag fetcher */
402 asn_DEF_ExtensibleSet_tags,
403 sizeof(asn_DEF_ExtensibleSet_tags)
404 /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */
405 asn_DEF_ExtensibleSet_tags, /* Same as above */
406 sizeof(asn_DEF_ExtensibleSet_tags)
407 /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */
408 asn_MBR_ExtensibleSet,
409 1, /* Elements count */
410 &asn_DEF_ExtensibleSet_specs /* Additional specs */
411};
412
413
414/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
415
416#include <UTF8String.h>
417#include <INTEGER.h>
418#include <constr_SEQUENCE.h>
419
420/*** <<< DEPS [ExtensibleSequence] >>> ***/
421
422extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
423
424/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
425
426
427typedef struct ExtensibleSequence {
428 UTF8String_t *string /* OPTIONAL */;
429 /*
430 * This type is extensible,
431 * possible extensions are below.
432 */
433 INTEGER_t *integer /* OPTIONAL */;
434
435 /* Context for parsing across buffer boundaries */
436 asn_struct_ctx_t _asn_ctx;
437} ExtensibleSequence_t;
438
439/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
440
441static asn_TYPE_member_t asn_MBR_ExtensibleSequence[] = {
442 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, string),
443 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
444 .tag_mode = -1, /* IMPLICIT tag at current level */
445 .type = (void *)&asn_DEF_UTF8String,
446 .memb_constraints = 0, /* Defer constraints checking to the member type */
447 .name = "string"
448 },
449 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, integer),
450 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
451 .tag_mode = -1, /* IMPLICIT tag at current level */
452 .type = (void *)&asn_DEF_INTEGER,
453 .memb_constraints = 0, /* Defer constraints checking to the member type */
454 .name = "integer"
455 },
456};
457static ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags[] = {
458 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
459};
460static asn_TYPE_tag2member_t asn_DEF_ExtensibleSequence_tag2el[] = {
461 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 46 */
462 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer at 48 */
463};
464static asn_SEQUENCE_specifics_t asn_DEF_ExtensibleSequence_specs = {
465 sizeof(struct ExtensibleSequence),
466 offsetof(struct ExtensibleSequence, _asn_ctx),
467 asn_DEF_ExtensibleSequence_tag2el,
468 2, /* Count of tags in the map */
469 0, /* Start extensions */
470 3 /* Stop extensions */
471};
472asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
473 "ExtensibleSequence",
474 "ExtensibleSequence",
475 SEQUENCE_free,
476 SEQUENCE_print,
477 SEQUENCE_constraint,
478 SEQUENCE_decode_ber,
479 SEQUENCE_encode_der,
480 SEQUENCE_decode_xer,
481 SEQUENCE_encode_xer,
482 0, /* Use generic outmost tag fetcher */
483 asn_DEF_ExtensibleSequence_tags,
484 sizeof(asn_DEF_ExtensibleSequence_tags)
485 /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */
486 asn_DEF_ExtensibleSequence_tags, /* Same as above */
487 sizeof(asn_DEF_ExtensibleSequence_tags)
488 /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */
489 asn_MBR_ExtensibleSequence,
490 2, /* Elements count */
491 &asn_DEF_ExtensibleSequence_specs /* Additional specs */
492};
493
494
vlm0d9046e2005-02-14 20:40:57 +0000495/*** <<< INCLUDES [SetOf] >>> ***/
496
497#include <REAL.h>
498#include <asn_SET_OF.h>
499#include <constr_SET_OF.h>
500
501/*** <<< DEPS [SetOf] >>> ***/
502
503extern asn_TYPE_descriptor_t asn_DEF_SetOf;
504
505/*** <<< TYPE-DECLS [SetOf] >>> ***/
506
507
508typedef struct SetOf {
509 A_SET_OF(REAL_t) list;
510
511 /* Context for parsing across buffer boundaries */
512 asn_struct_ctx_t _asn_ctx;
513} SetOf_t;
514
515/*** <<< STAT-DEFS [SetOf] >>> ***/
516
517static asn_TYPE_member_t asn_MBR_SetOf[] = {
518 { ATF_NOFLAGS, 0, 0,
519 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
520 .tag_mode = 0,
521 .type = (void *)&asn_DEF_REAL,
522 .memb_constraints = 0, /* Defer constraints checking to the member type */
523 .name = ""
524 },
525};
526static ber_tlv_tag_t asn_DEF_SetOf_tags[] = {
527 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
528};
529static asn_SET_OF_specifics_t asn_DEF_SetOf_specs = {
530 sizeof(struct SetOf),
531 offsetof(struct SetOf, _asn_ctx),
532 0, /* XER encoding is XMLDelimitedItemList */
533};
534asn_TYPE_descriptor_t asn_DEF_SetOf = {
535 "SetOf",
536 "SetOf",
537 SET_OF_free,
538 SET_OF_print,
539 SET_OF_constraint,
540 SET_OF_decode_ber,
541 SET_OF_encode_der,
542 SET_OF_decode_xer,
543 SET_OF_encode_xer,
544 0, /* Use generic outmost tag fetcher */
545 asn_DEF_SetOf_tags,
546 sizeof(asn_DEF_SetOf_tags)
547 /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */
548 asn_DEF_SetOf_tags, /* Same as above */
549 sizeof(asn_DEF_SetOf_tags)
550 /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */
551 asn_MBR_SetOf,
552 1, /* Single element */
553 &asn_DEF_SetOf_specs /* Additional specs */
554};
555
556
vlm422e4ce2005-02-18 16:30:26 +0000557/*** <<< INCLUDES [SequenceOf] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000558
559#include <INTEGER.h>
560#include <asn_SEQUENCE_OF.h>
561#include <constr_SEQUENCE_OF.h>
562
vlm422e4ce2005-02-18 16:30:26 +0000563/*** <<< DEPS [SequenceOf] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000564
vlm422e4ce2005-02-18 16:30:26 +0000565extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
vlm0d9046e2005-02-14 20:40:57 +0000566
vlm422e4ce2005-02-18 16:30:26 +0000567/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000568
569
vlm422e4ce2005-02-18 16:30:26 +0000570typedef struct SequenceOf {
vlm0d9046e2005-02-14 20:40:57 +0000571 A_SEQUENCE_OF(INTEGER_t) list;
572
573 /* Context for parsing across buffer boundaries */
574 asn_struct_ctx_t _asn_ctx;
vlm422e4ce2005-02-18 16:30:26 +0000575} SequenceOf_t;
vlm0d9046e2005-02-14 20:40:57 +0000576
vlm422e4ce2005-02-18 16:30:26 +0000577/*** <<< STAT-DEFS [SequenceOf] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000578
vlm422e4ce2005-02-18 16:30:26 +0000579static asn_TYPE_member_t asn_MBR_SequenceOf[] = {
vlm0d9046e2005-02-14 20:40:57 +0000580 { ATF_NOFLAGS, 0, 0,
581 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
582 .tag_mode = 0,
583 .type = (void *)&asn_DEF_INTEGER,
584 .memb_constraints = 0, /* Defer constraints checking to the member type */
585 .name = "id"
586 },
587};
vlm422e4ce2005-02-18 16:30:26 +0000588static ber_tlv_tag_t asn_DEF_SequenceOf_tags[] = {
vlm0d9046e2005-02-14 20:40:57 +0000589 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
590};
vlm422e4ce2005-02-18 16:30:26 +0000591static asn_SET_OF_specifics_t asn_DEF_SequenceOf_specs = {
592 sizeof(struct SequenceOf),
593 offsetof(struct SequenceOf, _asn_ctx),
vlm0d9046e2005-02-14 20:40:57 +0000594 0, /* XER encoding is XMLDelimitedItemList */
595};
vlm422e4ce2005-02-18 16:30:26 +0000596asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
597 "SequenceOf",
598 "SequenceOf",
vlm0d9046e2005-02-14 20:40:57 +0000599 SEQUENCE_OF_free,
600 SEQUENCE_OF_print,
601 SEQUENCE_OF_constraint,
602 SEQUENCE_OF_decode_ber,
603 SEQUENCE_OF_encode_der,
604 SEQUENCE_OF_decode_xer,
605 SEQUENCE_OF_encode_xer,
606 0, /* Use generic outmost tag fetcher */
vlm422e4ce2005-02-18 16:30:26 +0000607 asn_DEF_SequenceOf_tags,
608 sizeof(asn_DEF_SequenceOf_tags)
609 /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */
610 asn_DEF_SequenceOf_tags, /* Same as above */
611 sizeof(asn_DEF_SequenceOf_tags)
612 /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */
613 asn_MBR_SequenceOf,
vlm0d9046e2005-02-14 20:40:57 +0000614 1, /* Single element */
vlm422e4ce2005-02-18 16:30:26 +0000615 &asn_DEF_SequenceOf_specs /* Additional specs */
vlm0d9046e2005-02-14 20:40:57 +0000616};
617