blob: f812a7e843d99a9e0a62834bc93c38c6bbe1c70f [file] [log] [blame]
Lev Walkin0ef9f142005-02-14 20:40:57 +00001
2/*** <<< INCLUDES [PDU] >>> ***/
3
4#include <Sequence.h>
5#include <Set.h>
6#include <SetOf.h>
Lev Walkin843a2462005-02-18 16:30:26 +00007#include <SequenceOf.h>
8#include <ExtensibleSet.h>
9#include <ExtensibleSequence.h>
Lev Walkinf5db6142005-02-24 22:38:43 +000010#include <SetOfNULL.h>
11#include <SetOfEnums.h>
12#include <SeqOfZuka.h>
Lev Walkin0ef9f142005-02-14 20:40:57 +000013#include <constr_CHOICE.h>
14
15/*** <<< DEPS [PDU] >>> ***/
16
17typedef enum PDU_PR {
18 PDU_PR_NOTHING, /* No components present */
19 PDU_PR_sequence,
20 PDU_PR_set,
21 PDU_PR_setOf,
Lev Walkin843a2462005-02-18 16:30:26 +000022 PDU_PR_sequenceOf,
23 PDU_PR_extensibleSet,
24 PDU_PR_extensibleSequence,
Lev Walkinf5db6142005-02-24 22:38:43 +000025 PDU_PR_setOfNULL,
26 PDU_PR_setOfEnums,
27 PDU_PR_seqOfZuka,
Lev Walkin843a2462005-02-18 16:30:26 +000028 /* Extensions may appear below */
Lev Walkin0ef9f142005-02-14 20:40:57 +000029} PDU_PR;
30extern asn_TYPE_descriptor_t asn_DEF_PDU;
31
32/*** <<< TYPE-DECLS [PDU] >>> ***/
33
34
35typedef struct PDU {
36 PDU_PR present;
37 union {
38 Sequence_t sequence;
39 Set_t set;
40 SetOf_t setOf;
Lev Walkin843a2462005-02-18 16:30:26 +000041 SequenceOf_t sequenceOf;
42 ExtensibleSet_t extensibleSet;
43 ExtensibleSequence_t extensibleSequence;
Lev Walkinf5db6142005-02-24 22:38:43 +000044 SetOfNULL_t setOfNULL;
45 SetOfEnums_t setOfEnums;
46 SeqOfZuka_t seqOfZuka;
Lev Walkin843a2462005-02-18 16:30:26 +000047 /*
48 * This type is extensible,
49 * possible extensions are below.
50 */
Lev Walkin0ef9f142005-02-14 20:40:57 +000051 } choice;
52
53 /* Context for parsing across buffer boundaries */
54 asn_struct_ctx_t _asn_ctx;
55} PDU_t;
56
57/*** <<< STAT-DEFS [PDU] >>> ***/
58
59static asn_TYPE_member_t asn_MBR_PDU[] = {
60 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence),
61 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
62 .tag_mode = -1, /* IMPLICIT tag at current level */
63 .type = (void *)&asn_DEF_Sequence,
64 .memb_constraints = 0, /* Defer constraints checking to the member type */
65 .name = "sequence"
66 },
67 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
68 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
69 .tag_mode = -1, /* IMPLICIT tag at current level */
70 .type = (void *)&asn_DEF_Set,
71 .memb_constraints = 0, /* Defer constraints checking to the member type */
72 .name = "set"
73 },
74 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf),
75 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
76 .tag_mode = -1, /* IMPLICIT tag at current level */
77 .type = (void *)&asn_DEF_SetOf,
78 .memb_constraints = 0, /* Defer constraints checking to the member type */
79 .name = "setOf"
80 },
Lev Walkin843a2462005-02-18 16:30:26 +000081 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
Lev Walkin0ef9f142005-02-14 20:40:57 +000082 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
83 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin843a2462005-02-18 16:30:26 +000084 .type = (void *)&asn_DEF_SequenceOf,
Lev Walkin0ef9f142005-02-14 20:40:57 +000085 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin843a2462005-02-18 16:30:26 +000086 .name = "sequenceOf"
87 },
88 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
89 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
90 .tag_mode = -1, /* IMPLICIT tag at current level */
91 .type = (void *)&asn_DEF_ExtensibleSet,
92 .memb_constraints = 0, /* Defer constraints checking to the member type */
93 .name = "extensibleSet"
94 },
95 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
96 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
97 .tag_mode = -1, /* IMPLICIT tag at current level */
98 .type = (void *)&asn_DEF_ExtensibleSequence,
99 .memb_constraints = 0, /* Defer constraints checking to the member type */
100 .name = "extensibleSequence"
Lev Walkin0ef9f142005-02-14 20:40:57 +0000101 },
Lev Walkinf5db6142005-02-24 22:38:43 +0000102 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
103 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
104 .tag_mode = -1, /* IMPLICIT tag at current level */
105 .type = (void *)&asn_DEF_SetOfNULL,
106 .memb_constraints = 0, /* Defer constraints checking to the member type */
107 .name = "setOfNULL"
108 },
109 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
110 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
111 .tag_mode = -1, /* IMPLICIT tag at current level */
112 .type = (void *)&asn_DEF_SetOfEnums,
113 .memb_constraints = 0, /* Defer constraints checking to the member type */
114 .name = "setOfEnums"
115 },
116 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
117 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
118 .tag_mode = -1, /* IMPLICIT tag at current level */
119 .type = (void *)&asn_DEF_SeqOfZuka,
120 .memb_constraints = 0, /* Defer constraints checking to the member type */
121 .name = "seqOfZuka"
122 },
Lev Walkin0ef9f142005-02-14 20:40:57 +0000123};
124static asn_TYPE_tag2member_t asn_DEF_PDU_tag2el[] = {
125 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence at 19 */
126 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 20 */
127 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* setOf at 21 */
Lev Walkin843a2462005-02-18 16:30:26 +0000128 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sequenceOf at 22 */
129 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSet at 23 */
130 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence at 24 */
Lev Walkinf5db6142005-02-24 22:38:43 +0000131 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL at 25 */
132 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfEnums at 26 */
Lev Walkinb47df092005-02-25 08:35:54 +0000133 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* seqOfZuka at 27 */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000134};
135static asn_CHOICE_specifics_t asn_DEF_PDU_specs = {
136 sizeof(struct PDU),
137 offsetof(struct PDU, _asn_ctx),
138 offsetof(struct PDU, present),
139 sizeof(((struct PDU *)0)->present),
140 asn_DEF_PDU_tag2el,
Lev Walkinf5db6142005-02-24 22:38:43 +0000141 9, /* Count of tags in the map */
Lev Walkin843a2462005-02-18 16:30:26 +0000142 1 /* Whether extensible */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000143};
144asn_TYPE_descriptor_t asn_DEF_PDU = {
145 "PDU",
146 "PDU",
147 CHOICE_free,
148 CHOICE_print,
149 CHOICE_constraint,
150 CHOICE_decode_ber,
151 CHOICE_encode_der,
152 CHOICE_decode_xer,
153 CHOICE_encode_xer,
154 CHOICE_outmost_tag,
155 0, /* No effective tags (pointer) */
156 0, /* No effective tags (count) */
157 0, /* No tags (pointer) */
158 0, /* No tags (count) */
159 asn_MBR_PDU,
Lev Walkinf5db6142005-02-24 22:38:43 +0000160 9, /* Elements count */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000161 &asn_DEF_PDU_specs /* Additional specs */
162};
163
164
165/*** <<< INCLUDES [Sequence] >>> ***/
166
167#include <INTEGER.h>
168#include <Sequence.h>
169#include <BIT_STRING.h>
170#include <UTF8String.h>
171#include <constr_SEQUENCE.h>
172
173/*** <<< DEPS [Sequence] >>> ***/
174
175
176struct Sequence; /* Forward declaration */
177extern asn_TYPE_descriptor_t asn_DEF_Sequence;
178
179/*** <<< TYPE-DECLS [Sequence] >>> ***/
180
181
182typedef struct Sequence {
183 INTEGER_t integer;
184 struct Sequence *sequence /* OPTIONAL */;
185 BIT_STRING_t *bits /* OPTIONAL */;
186 UTF8String_t string;
187
188 /* Context for parsing across buffer boundaries */
189 asn_struct_ctx_t _asn_ctx;
190} Sequence_t;
191
192/*** <<< STAT-DEFS [Sequence] >>> ***/
193
194static asn_TYPE_member_t asn_MBR_Sequence[] = {
195 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
196 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
197 .tag_mode = -1, /* IMPLICIT tag at current level */
198 .type = (void *)&asn_DEF_INTEGER,
199 .memb_constraints = 0, /* Defer constraints checking to the member type */
200 .name = "integer"
201 },
202 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
203 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
204 .tag_mode = -1, /* IMPLICIT tag at current level */
205 .type = (void *)&asn_DEF_Sequence,
206 .memb_constraints = 0, /* Defer constraints checking to the member type */
207 .name = "sequence"
208 },
209 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
210 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
211 .tag_mode = -1, /* IMPLICIT tag at current level */
212 .type = (void *)&asn_DEF_BIT_STRING,
213 .memb_constraints = 0, /* Defer constraints checking to the member type */
214 .name = "bits"
215 },
216 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
217 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
218 .tag_mode = -1, /* IMPLICIT tag at current level */
219 .type = (void *)&asn_DEF_UTF8String,
220 .memb_constraints = 0, /* Defer constraints checking to the member type */
221 .name = "string"
222 },
223};
224static ber_tlv_tag_t asn_DEF_Sequence_tags[] = {
225 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
226};
227static asn_TYPE_tag2member_t asn_DEF_Sequence_tag2el[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000228 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer at 32 */
229 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence at 33 */
230 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits at 34 */
Lev Walkinb47df092005-02-25 08:35:54 +0000231 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string at 35 */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000232};
233static asn_SEQUENCE_specifics_t asn_DEF_Sequence_specs = {
234 sizeof(struct Sequence),
235 offsetof(struct Sequence, _asn_ctx),
236 asn_DEF_Sequence_tag2el,
237 4, /* Count of tags in the map */
238 -1, /* Start extensions */
239 -1 /* Stop extensions */
240};
241asn_TYPE_descriptor_t asn_DEF_Sequence = {
242 "Sequence",
243 "Sequence",
244 SEQUENCE_free,
245 SEQUENCE_print,
246 SEQUENCE_constraint,
247 SEQUENCE_decode_ber,
248 SEQUENCE_encode_der,
249 SEQUENCE_decode_xer,
250 SEQUENCE_encode_xer,
251 0, /* Use generic outmost tag fetcher */
252 asn_DEF_Sequence_tags,
253 sizeof(asn_DEF_Sequence_tags)
254 /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */
255 asn_DEF_Sequence_tags, /* Same as above */
256 sizeof(asn_DEF_Sequence_tags)
257 /sizeof(asn_DEF_Sequence_tags[0]), /* 1 */
258 asn_MBR_Sequence,
259 4, /* Elements count */
260 &asn_DEF_Sequence_specs /* Additional specs */
261};
262
263
264/*** <<< INCLUDES [Set] >>> ***/
265
266#include <RELATIVE-OID.h>
267#include <OCTET_STRING.h>
268#include <constr_SET.h>
269
270/*** <<< DEPS [Set] >>> ***/
271
272
273/*
274 * Method of determining the components presence
275 */
276typedef enum Set_PR {
277 Set_PR_roid, /* Member roid is present */
278 Set_PR_opaque, /* Member opaque is present */
279} Set_PR;
280extern asn_TYPE_descriptor_t asn_DEF_Set;
281
282/*** <<< TYPE-DECLS [Set] >>> ***/
283
284
285typedef struct Set {
286 RELATIVE_OID_t roid;
287 OCTET_STRING_t *opaque /* OPTIONAL */;
288
289 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
290 unsigned int _presence_map
291 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
292
293 /* Context for parsing across buffer boundaries */
294 asn_struct_ctx_t _asn_ctx;
295} Set_t;
296
297/*** <<< STAT-DEFS [Set] >>> ***/
298
299static asn_TYPE_member_t asn_MBR_Set[] = {
300 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
301 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
302 .tag_mode = -1, /* IMPLICIT tag at current level */
303 .type = (void *)&asn_DEF_RELATIVE_OID,
304 .memb_constraints = 0, /* Defer constraints checking to the member type */
305 .name = "roid"
306 },
307 { ATF_POINTER, 1, offsetof(struct Set, opaque),
308 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
309 .tag_mode = -1, /* IMPLICIT tag at current level */
310 .type = (void *)&asn_DEF_OCTET_STRING,
311 .memb_constraints = 0, /* Defer constraints checking to the member type */
312 .name = "opaque"
313 },
314};
315static ber_tlv_tag_t asn_DEF_Set_tags[] = {
316 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
317};
318static asn_TYPE_tag2member_t asn_DEF_Set_tag2el[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000319 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid at 39 */
Lev Walkinb47df092005-02-25 08:35:54 +0000320 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque at 40 */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000321};
322static uint8_t asn_DEF_Set_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
323 (1 << 7) | (0 << 6)
324};
325static asn_SET_specifics_t asn_DEF_Set_specs = {
326 sizeof(struct Set),
327 offsetof(struct Set, _asn_ctx),
328 offsetof(struct Set, _presence_map),
329 asn_DEF_Set_tag2el,
330 2, /* Count of tags in the map */
331 asn_DEF_Set_tag2el, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000332 2, /* Count of tags in the CXER map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000333 0, /* Whether extensible */
334 (unsigned int *)asn_DEF_Set_mmap /* Mandatory elements map */
335};
336asn_TYPE_descriptor_t asn_DEF_Set = {
337 "Set",
338 "Set",
339 SET_free,
340 SET_print,
341 SET_constraint,
342 SET_decode_ber,
343 SET_encode_der,
344 SET_decode_xer,
345 SET_encode_xer,
346 0, /* Use generic outmost tag fetcher */
347 asn_DEF_Set_tags,
348 sizeof(asn_DEF_Set_tags)
349 /sizeof(asn_DEF_Set_tags[0]), /* 1 */
350 asn_DEF_Set_tags, /* Same as above */
351 sizeof(asn_DEF_Set_tags)
352 /sizeof(asn_DEF_Set_tags[0]), /* 1 */
353 asn_MBR_Set,
354 2, /* Elements count */
355 &asn_DEF_Set_specs /* Additional specs */
356};
357
358
Lev Walkin843a2462005-02-18 16:30:26 +0000359/*** <<< INCLUDES [ExtensibleSet] >>> ***/
360
361#include <UTF8String.h>
362#include <constr_SET.h>
363
364/*** <<< DEPS [ExtensibleSet] >>> ***/
365
366
367/*
368 * Method of determining the components presence
369 */
370typedef enum ExtensibleSet_PR {
371 ExtensibleSet_PR_string, /* Member string is present */
372} ExtensibleSet_PR;
373extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
374
375/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
376
377
378typedef struct ExtensibleSet {
379 UTF8String_t *string /* OPTIONAL */;
380 /*
381 * This type is extensible,
382 * possible extensions are below.
383 */
384
385 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
386 unsigned int _presence_map
387 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
388
389 /* Context for parsing across buffer boundaries */
390 asn_struct_ctx_t _asn_ctx;
391} ExtensibleSet_t;
392
393/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
394
395static asn_TYPE_member_t asn_MBR_ExtensibleSet[] = {
396 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, string),
397 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
398 .tag_mode = -1, /* IMPLICIT tag at current level */
399 .type = (void *)&asn_DEF_UTF8String,
400 .memb_constraints = 0, /* Defer constraints checking to the member type */
401 .name = "string"
402 },
403};
404static ber_tlv_tag_t asn_DEF_ExtensibleSet_tags[] = {
405 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
406};
407static asn_TYPE_tag2member_t asn_DEF_ExtensibleSet_tag2el[] = {
Lev Walkinb47df092005-02-25 08:35:54 +0000408 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* string at 44 */
Lev Walkin843a2462005-02-18 16:30:26 +0000409};
410static uint8_t asn_DEF_ExtensibleSet_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
411 (0 << 7)
412};
413static asn_SET_specifics_t asn_DEF_ExtensibleSet_specs = {
414 sizeof(struct ExtensibleSet),
415 offsetof(struct ExtensibleSet, _asn_ctx),
416 offsetof(struct ExtensibleSet, _presence_map),
417 asn_DEF_ExtensibleSet_tag2el,
418 1, /* Count of tags in the map */
419 asn_DEF_ExtensibleSet_tag2el, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000420 1, /* Count of tags in the CXER map */
Lev Walkin843a2462005-02-18 16:30:26 +0000421 1, /* Whether extensible */
422 (unsigned int *)asn_DEF_ExtensibleSet_mmap /* Mandatory elements map */
423};
424asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
425 "ExtensibleSet",
426 "ExtensibleSet",
427 SET_free,
428 SET_print,
429 SET_constraint,
430 SET_decode_ber,
431 SET_encode_der,
432 SET_decode_xer,
433 SET_encode_xer,
434 0, /* Use generic outmost tag fetcher */
435 asn_DEF_ExtensibleSet_tags,
436 sizeof(asn_DEF_ExtensibleSet_tags)
437 /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */
438 asn_DEF_ExtensibleSet_tags, /* Same as above */
439 sizeof(asn_DEF_ExtensibleSet_tags)
440 /sizeof(asn_DEF_ExtensibleSet_tags[0]), /* 1 */
441 asn_MBR_ExtensibleSet,
442 1, /* Elements count */
443 &asn_DEF_ExtensibleSet_specs /* Additional specs */
444};
445
446
447/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
448
449#include <UTF8String.h>
450#include <INTEGER.h>
451#include <constr_SEQUENCE.h>
452
453/*** <<< DEPS [ExtensibleSequence] >>> ***/
454
455extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
456
457/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
458
459
460typedef struct ExtensibleSequence {
461 UTF8String_t *string /* OPTIONAL */;
462 /*
463 * This type is extensible,
464 * possible extensions are below.
465 */
466 INTEGER_t *integer /* OPTIONAL */;
467
468 /* Context for parsing across buffer boundaries */
469 asn_struct_ctx_t _asn_ctx;
470} ExtensibleSequence_t;
471
472/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
473
474static asn_TYPE_member_t asn_MBR_ExtensibleSequence[] = {
475 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, string),
476 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
477 .tag_mode = -1, /* IMPLICIT tag at current level */
478 .type = (void *)&asn_DEF_UTF8String,
479 .memb_constraints = 0, /* Defer constraints checking to the member type */
480 .name = "string"
481 },
482 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, integer),
483 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
484 .tag_mode = -1, /* IMPLICIT tag at current level */
485 .type = (void *)&asn_DEF_INTEGER,
486 .memb_constraints = 0, /* Defer constraints checking to the member type */
487 .name = "integer"
488 },
489};
490static ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags[] = {
491 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
492};
493static asn_TYPE_tag2member_t asn_DEF_ExtensibleSequence_tag2el[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000494 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 49 */
Lev Walkinb47df092005-02-25 08:35:54 +0000495 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer at 51 */
Lev Walkin843a2462005-02-18 16:30:26 +0000496};
497static asn_SEQUENCE_specifics_t asn_DEF_ExtensibleSequence_specs = {
498 sizeof(struct ExtensibleSequence),
499 offsetof(struct ExtensibleSequence, _asn_ctx),
500 asn_DEF_ExtensibleSequence_tag2el,
501 2, /* Count of tags in the map */
502 0, /* Start extensions */
503 3 /* Stop extensions */
504};
505asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
506 "ExtensibleSequence",
507 "ExtensibleSequence",
508 SEQUENCE_free,
509 SEQUENCE_print,
510 SEQUENCE_constraint,
511 SEQUENCE_decode_ber,
512 SEQUENCE_encode_der,
513 SEQUENCE_decode_xer,
514 SEQUENCE_encode_xer,
515 0, /* Use generic outmost tag fetcher */
516 asn_DEF_ExtensibleSequence_tags,
517 sizeof(asn_DEF_ExtensibleSequence_tags)
518 /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */
519 asn_DEF_ExtensibleSequence_tags, /* Same as above */
520 sizeof(asn_DEF_ExtensibleSequence_tags)
521 /sizeof(asn_DEF_ExtensibleSequence_tags[0]), /* 1 */
522 asn_MBR_ExtensibleSequence,
523 2, /* Elements count */
524 &asn_DEF_ExtensibleSequence_specs /* Additional specs */
525};
526
527
Lev Walkin0ef9f142005-02-14 20:40:57 +0000528/*** <<< INCLUDES [SetOf] >>> ***/
529
530#include <REAL.h>
531#include <asn_SET_OF.h>
532#include <constr_SET_OF.h>
533
534/*** <<< DEPS [SetOf] >>> ***/
535
536extern asn_TYPE_descriptor_t asn_DEF_SetOf;
537
538/*** <<< TYPE-DECLS [SetOf] >>> ***/
539
540
541typedef struct SetOf {
542 A_SET_OF(REAL_t) list;
543
544 /* Context for parsing across buffer boundaries */
545 asn_struct_ctx_t _asn_ctx;
546} SetOf_t;
547
548/*** <<< STAT-DEFS [SetOf] >>> ***/
549
550static asn_TYPE_member_t asn_MBR_SetOf[] = {
551 { ATF_NOFLAGS, 0, 0,
552 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
553 .tag_mode = 0,
554 .type = (void *)&asn_DEF_REAL,
555 .memb_constraints = 0, /* Defer constraints checking to the member type */
556 .name = ""
557 },
558};
559static ber_tlv_tag_t asn_DEF_SetOf_tags[] = {
560 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
561};
562static asn_SET_OF_specifics_t asn_DEF_SetOf_specs = {
563 sizeof(struct SetOf),
564 offsetof(struct SetOf, _asn_ctx),
565 0, /* XER encoding is XMLDelimitedItemList */
566};
567asn_TYPE_descriptor_t asn_DEF_SetOf = {
568 "SetOf",
569 "SetOf",
570 SET_OF_free,
571 SET_OF_print,
572 SET_OF_constraint,
573 SET_OF_decode_ber,
574 SET_OF_encode_der,
575 SET_OF_decode_xer,
576 SET_OF_encode_xer,
577 0, /* Use generic outmost tag fetcher */
578 asn_DEF_SetOf_tags,
579 sizeof(asn_DEF_SetOf_tags)
580 /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */
581 asn_DEF_SetOf_tags, /* Same as above */
582 sizeof(asn_DEF_SetOf_tags)
583 /sizeof(asn_DEF_SetOf_tags[0]), /* 1 */
584 asn_MBR_SetOf,
585 1, /* Single element */
586 &asn_DEF_SetOf_specs /* Additional specs */
587};
588
589
Lev Walkinf5db6142005-02-24 22:38:43 +0000590/*** <<< INCLUDES [SetOfNULL] >>> ***/
591
592#include <NULL.h>
593#include <asn_SET_OF.h>
594#include <constr_SET_OF.h>
595
596/*** <<< DEPS [SetOfNULL] >>> ***/
597
598extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
599
600/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
601
602
603typedef struct SetOfNULL {
604 A_SET_OF(NULL_t) list;
605
606 /* Context for parsing across buffer boundaries */
607 asn_struct_ctx_t _asn_ctx;
608} SetOfNULL_t;
609
610/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
611
612static asn_TYPE_member_t asn_MBR_SetOfNULL[] = {
613 { ATF_NOFLAGS, 0, 0,
614 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
615 .tag_mode = 0,
616 .type = (void *)&asn_DEF_NULL,
617 .memb_constraints = 0, /* Defer constraints checking to the member type */
618 .name = ""
619 },
620};
621static ber_tlv_tag_t asn_DEF_SetOfNULL_tags[] = {
622 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
623};
624static asn_SET_OF_specifics_t asn_DEF_SetOfNULL_specs = {
625 sizeof(struct SetOfNULL),
626 offsetof(struct SetOfNULL, _asn_ctx),
627 1, /* XER encoding is XMLValueList */
628};
629asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
630 "SetOfNULL",
631 "SetOfNULL",
632 SET_OF_free,
633 SET_OF_print,
634 SET_OF_constraint,
635 SET_OF_decode_ber,
636 SET_OF_encode_der,
637 SET_OF_decode_xer,
638 SET_OF_encode_xer,
639 0, /* Use generic outmost tag fetcher */
640 asn_DEF_SetOfNULL_tags,
641 sizeof(asn_DEF_SetOfNULL_tags)
642 /sizeof(asn_DEF_SetOfNULL_tags[0]), /* 1 */
643 asn_DEF_SetOfNULL_tags, /* Same as above */
644 sizeof(asn_DEF_SetOfNULL_tags)
645 /sizeof(asn_DEF_SetOfNULL_tags[0]), /* 1 */
646 asn_MBR_SetOfNULL,
647 1, /* Single element */
648 &asn_DEF_SetOfNULL_specs /* Additional specs */
649};
650
651
652/*** <<< INCLUDES [SetOfEnums] >>> ***/
653
654#include <ENUMERATED.h>
655#include <asn_SET_OF.h>
656#include <constr_SET_OF.h>
657
658/*** <<< DEPS [SetOfEnums] >>> ***/
659
Lev Walkinb47df092005-02-25 08:35:54 +0000660typedef enum SetOfEnums_Member {
661 SetOfEnums_Member_one = 0,
Lev Walkinc7312e92005-02-25 10:24:53 +0000662 SetOfEnums_Member_oneMore = 1
Lev Walkinb47df092005-02-25 08:35:54 +0000663} SetOfEnums_Member_e;
Lev Walkinf5db6142005-02-24 22:38:43 +0000664extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
665
666/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
667
668
669typedef struct SetOfEnums {
670 A_SET_OF(ENUMERATED_t) list;
671
672 /* Context for parsing across buffer boundaries */
673 asn_struct_ctx_t _asn_ctx;
674} SetOfEnums_t;
675
Lev Walkinb47df092005-02-25 08:35:54 +0000676/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
677
678/* extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums_Member; // (Use -fall-defs-global to expose) */
679
680/*** <<< CODE [SetOfEnums] >>> ***/
681
682static int
683SetOfEnums_Member_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
684 asn_app_consume_bytes_f *app_errlog, void *app_key) {
685 /* Replace with underlying type checker */
686 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
687 return td->check_constraints(td, sptr, app_errlog, app_key);
688}
689
690/*
691 * This type is implemented using ENUMERATED,
692 * so here we adjust the DEF accordingly.
693 */
694static void
695SetOfEnums_Member_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
696 td->free_struct = asn_DEF_ENUMERATED.free_struct;
697 td->print_struct = asn_DEF_ENUMERATED.print_struct;
698 td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
699 td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
700 td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
701 td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
702 td->elements = asn_DEF_ENUMERATED.elements;
703 td->elements_count = asn_DEF_ENUMERATED.elements_count;
Lev Walkinc7312e92005-02-25 10:24:53 +0000704 /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
Lev Walkinb47df092005-02-25 08:35:54 +0000705}
706
707static void
708SetOfEnums_Member_free(asn_TYPE_descriptor_t *td,
709 void *struct_ptr, int contents_only) {
710 SetOfEnums_Member_inherit_TYPE_descriptor(td);
711 td->free_struct(td, struct_ptr, contents_only);
712}
713
714static int
715SetOfEnums_Member_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
716 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
717 SetOfEnums_Member_inherit_TYPE_descriptor(td);
718 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
719}
720
721static asn_dec_rval_t
722SetOfEnums_Member_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
723 void **structure, void *bufptr, size_t size, int tag_mode) {
724 SetOfEnums_Member_inherit_TYPE_descriptor(td);
725 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
726}
727
728static asn_enc_rval_t
729SetOfEnums_Member_encode_der(asn_TYPE_descriptor_t *td,
730 void *structure, int tag_mode, ber_tlv_tag_t tag,
731 asn_app_consume_bytes_f *cb, void *app_key) {
732 SetOfEnums_Member_inherit_TYPE_descriptor(td);
733 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
734}
735
736static asn_dec_rval_t
737SetOfEnums_Member_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
738 void **structure, const char *opt_mname, void *bufptr, size_t size) {
739 SetOfEnums_Member_inherit_TYPE_descriptor(td);
740 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
741}
742
743static asn_enc_rval_t
744SetOfEnums_Member_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
745 int ilevel, enum xer_encoder_flags_e flags,
746 asn_app_consume_bytes_f *cb, void *app_key) {
747 SetOfEnums_Member_inherit_TYPE_descriptor(td);
748 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
749}
750
751
Lev Walkinf5db6142005-02-24 22:38:43 +0000752/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
753
Lev Walkinb47df092005-02-25 08:35:54 +0000754static asn_INTEGER_enum_map_t asn_MAP_SetOfEnums_Member_value2enum[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000755 { 0, 3, "one" },
756 { 1, 7, "oneMore" }
757};
758static unsigned int asn_MAP_SetOfEnums_Member_enum2value[] = {
759 0, /* one(0) */
760 1 /* oneMore(1) */
Lev Walkinb47df092005-02-25 08:35:54 +0000761};
762static asn_INTEGER_specifics_t asn_DEF_SetOfEnums_Member_specs = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000763 asn_MAP_SetOfEnums_Member_value2enum, /* "tag" => N; sorted by tag */
764 asn_MAP_SetOfEnums_Member_enum2value, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +0000765 2, /* Number of elements in the maps */
766 0 /* Enumeration is not extensible */
767};
768static ber_tlv_tag_t asn_DEF_SetOfEnums_Member_tags[] = {
769 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
770};
771static /* Use -fall-defs-global to expose */
772asn_TYPE_descriptor_t asn_DEF_SetOfEnums_Member = {
773 "",
774 "",
775 SetOfEnums_Member_free,
776 SetOfEnums_Member_print,
777 SetOfEnums_Member_constraint,
778 SetOfEnums_Member_decode_ber,
779 SetOfEnums_Member_encode_der,
780 SetOfEnums_Member_decode_xer,
781 SetOfEnums_Member_encode_xer,
782 0, /* Use generic outmost tag fetcher */
783 asn_DEF_SetOfEnums_Member_tags,
784 sizeof(asn_DEF_SetOfEnums_Member_tags)
785 /sizeof(asn_DEF_SetOfEnums_Member_tags[0]), /* 1 */
786 asn_DEF_SetOfEnums_Member_tags, /* Same as above */
787 sizeof(asn_DEF_SetOfEnums_Member_tags)
788 /sizeof(asn_DEF_SetOfEnums_Member_tags[0]), /* 1 */
789 0, 0, /* Defined elsewhere */
790 &asn_DEF_SetOfEnums_Member_specs /* Additional specs */
791};
792
Lev Walkinf5db6142005-02-24 22:38:43 +0000793static asn_TYPE_member_t asn_MBR_SetOfEnums[] = {
794 { ATF_NOFLAGS, 0, 0,
795 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
796 .tag_mode = 0,
Lev Walkinb47df092005-02-25 08:35:54 +0000797 .type = (void *)&asn_DEF_SetOfEnums_Member,
Lev Walkinf5db6142005-02-24 22:38:43 +0000798 .memb_constraints = 0, /* Defer constraints checking to the member type */
799 .name = ""
800 },
801};
802static ber_tlv_tag_t asn_DEF_SetOfEnums_tags[] = {
803 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
804};
805static asn_SET_OF_specifics_t asn_DEF_SetOfEnums_specs = {
806 sizeof(struct SetOfEnums),
807 offsetof(struct SetOfEnums, _asn_ctx),
Lev Walkinb47df092005-02-25 08:35:54 +0000808 1, /* XER encoding is XMLValueList */
Lev Walkinf5db6142005-02-24 22:38:43 +0000809};
810asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
811 "SetOfEnums",
812 "SetOfEnums",
813 SET_OF_free,
814 SET_OF_print,
815 SET_OF_constraint,
816 SET_OF_decode_ber,
817 SET_OF_encode_der,
818 SET_OF_decode_xer,
819 SET_OF_encode_xer,
820 0, /* Use generic outmost tag fetcher */
821 asn_DEF_SetOfEnums_tags,
822 sizeof(asn_DEF_SetOfEnums_tags)
823 /sizeof(asn_DEF_SetOfEnums_tags[0]), /* 1 */
824 asn_DEF_SetOfEnums_tags, /* Same as above */
825 sizeof(asn_DEF_SetOfEnums_tags)
826 /sizeof(asn_DEF_SetOfEnums_tags[0]), /* 1 */
827 asn_MBR_SetOfEnums,
828 1, /* Single element */
829 &asn_DEF_SetOfEnums_specs /* Additional specs */
830};
831
832
Lev Walkin843a2462005-02-18 16:30:26 +0000833/*** <<< INCLUDES [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000834
835#include <INTEGER.h>
836#include <asn_SEQUENCE_OF.h>
837#include <constr_SEQUENCE_OF.h>
838
Lev Walkin843a2462005-02-18 16:30:26 +0000839/*** <<< DEPS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000840
Lev Walkinb47df092005-02-25 08:35:54 +0000841typedef enum id {
842 id_one = 1,
843 id_two = 2
844} id_e;
Lev Walkin843a2462005-02-18 16:30:26 +0000845extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000846
Lev Walkin843a2462005-02-18 16:30:26 +0000847/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000848
849
Lev Walkin843a2462005-02-18 16:30:26 +0000850typedef struct SequenceOf {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000851 A_SEQUENCE_OF(INTEGER_t) list;
852
853 /* Context for parsing across buffer boundaries */
854 asn_struct_ctx_t _asn_ctx;
Lev Walkin843a2462005-02-18 16:30:26 +0000855} SequenceOf_t;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000856
Lev Walkinb47df092005-02-25 08:35:54 +0000857/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
858
859/* extern asn_TYPE_descriptor_t asn_DEF_id; // (Use -fall-defs-global to expose) */
860
861/*** <<< CODE [SequenceOf] >>> ***/
862
863static int
864id_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
865 asn_app_consume_bytes_f *app_errlog, void *app_key) {
866 /* Replace with underlying type checker */
867 td->check_constraints = asn_DEF_INTEGER.check_constraints;
868 return td->check_constraints(td, sptr, app_errlog, app_key);
869}
870
871/*
872 * This type is implemented using INTEGER,
873 * so here we adjust the DEF accordingly.
874 */
875static void
876id_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
877 td->free_struct = asn_DEF_INTEGER.free_struct;
878 td->print_struct = asn_DEF_INTEGER.print_struct;
879 td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
880 td->der_encoder = asn_DEF_INTEGER.der_encoder;
881 td->xer_decoder = asn_DEF_INTEGER.xer_decoder;
882 td->xer_encoder = asn_DEF_INTEGER.xer_encoder;
883 td->elements = asn_DEF_INTEGER.elements;
884 td->elements_count = asn_DEF_INTEGER.elements_count;
Lev Walkinc7312e92005-02-25 10:24:53 +0000885 /* td->specifics = asn_DEF_INTEGER.specifics; // Defined explicitly */
Lev Walkinb47df092005-02-25 08:35:54 +0000886}
887
888static void
889id_free(asn_TYPE_descriptor_t *td,
890 void *struct_ptr, int contents_only) {
891 id_inherit_TYPE_descriptor(td);
892 td->free_struct(td, struct_ptr, contents_only);
893}
894
895static int
896id_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
897 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
898 id_inherit_TYPE_descriptor(td);
899 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
900}
901
902static asn_dec_rval_t
903id_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
904 void **structure, void *bufptr, size_t size, int tag_mode) {
905 id_inherit_TYPE_descriptor(td);
906 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
907}
908
909static asn_enc_rval_t
910id_encode_der(asn_TYPE_descriptor_t *td,
911 void *structure, int tag_mode, ber_tlv_tag_t tag,
912 asn_app_consume_bytes_f *cb, void *app_key) {
913 id_inherit_TYPE_descriptor(td);
914 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
915}
916
917static asn_dec_rval_t
918id_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
919 void **structure, const char *opt_mname, void *bufptr, size_t size) {
920 id_inherit_TYPE_descriptor(td);
921 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
922}
923
924static asn_enc_rval_t
925id_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
926 int ilevel, enum xer_encoder_flags_e flags,
927 asn_app_consume_bytes_f *cb, void *app_key) {
928 id_inherit_TYPE_descriptor(td);
929 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
930}
931
932
Lev Walkin843a2462005-02-18 16:30:26 +0000933/*** <<< STAT-DEFS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000934
Lev Walkin9f30ef12005-02-25 11:08:02 +0000935static asn_INTEGER_enum_map_t asn_MAP_id_value2enum[] = {
936 { 1, 3, "one" },
937 { 2, 3, "two" }
Lev Walkinb47df092005-02-25 08:35:54 +0000938 /* This list is extensible */
939};
Lev Walkin9f30ef12005-02-25 11:08:02 +0000940static unsigned int asn_MAP_id_enum2value[] = {
941 0, /* one(1) */
942 1 /* two(2) */
Lev Walkinb47df092005-02-25 08:35:54 +0000943 /* This list is extensible */
944};
945static asn_INTEGER_specifics_t asn_DEF_id_specs = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000946 asn_MAP_id_value2enum, /* "tag" => N; sorted by tag */
947 asn_MAP_id_enum2value, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +0000948 2, /* Number of elements in the maps */
949 1 /* Enumeration is extensible */
950};
951static ber_tlv_tag_t asn_DEF_id_tags[] = {
952 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
953};
954static /* Use -fall-defs-global to expose */
955asn_TYPE_descriptor_t asn_DEF_id = {
956 "",
957 "",
958 id_free,
959 id_print,
960 id_constraint,
961 id_decode_ber,
962 id_encode_der,
963 id_decode_xer,
964 id_encode_xer,
965 0, /* Use generic outmost tag fetcher */
966 asn_DEF_id_tags,
967 sizeof(asn_DEF_id_tags)
968 /sizeof(asn_DEF_id_tags[0]), /* 1 */
969 asn_DEF_id_tags, /* Same as above */
970 sizeof(asn_DEF_id_tags)
971 /sizeof(asn_DEF_id_tags[0]), /* 1 */
972 0, 0, /* Defined elsewhere */
973 &asn_DEF_id_specs /* Additional specs */
974};
975
Lev Walkin843a2462005-02-18 16:30:26 +0000976static asn_TYPE_member_t asn_MBR_SequenceOf[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000977 { ATF_NOFLAGS, 0, 0,
978 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
979 .tag_mode = 0,
Lev Walkinb47df092005-02-25 08:35:54 +0000980 .type = (void *)&asn_DEF_id,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000981 .memb_constraints = 0, /* Defer constraints checking to the member type */
982 .name = "id"
983 },
984};
Lev Walkin843a2462005-02-18 16:30:26 +0000985static ber_tlv_tag_t asn_DEF_SequenceOf_tags[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000986 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
987};
Lev Walkin843a2462005-02-18 16:30:26 +0000988static asn_SET_OF_specifics_t asn_DEF_SequenceOf_specs = {
989 sizeof(struct SequenceOf),
990 offsetof(struct SequenceOf, _asn_ctx),
Lev Walkin0ef9f142005-02-14 20:40:57 +0000991 0, /* XER encoding is XMLDelimitedItemList */
992};
Lev Walkin843a2462005-02-18 16:30:26 +0000993asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
994 "SequenceOf",
995 "SequenceOf",
Lev Walkin0ef9f142005-02-14 20:40:57 +0000996 SEQUENCE_OF_free,
997 SEQUENCE_OF_print,
998 SEQUENCE_OF_constraint,
999 SEQUENCE_OF_decode_ber,
1000 SEQUENCE_OF_encode_der,
1001 SEQUENCE_OF_decode_xer,
1002 SEQUENCE_OF_encode_xer,
1003 0, /* Use generic outmost tag fetcher */
Lev Walkin843a2462005-02-18 16:30:26 +00001004 asn_DEF_SequenceOf_tags,
1005 sizeof(asn_DEF_SequenceOf_tags)
1006 /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */
1007 asn_DEF_SequenceOf_tags, /* Same as above */
1008 sizeof(asn_DEF_SequenceOf_tags)
1009 /sizeof(asn_DEF_SequenceOf_tags[0]), /* 1 */
1010 asn_MBR_SequenceOf,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001011 1, /* Single element */
Lev Walkin843a2462005-02-18 16:30:26 +00001012 &asn_DEF_SequenceOf_specs /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001013};
1014
Lev Walkinf5db6142005-02-24 22:38:43 +00001015
1016/*** <<< INCLUDES [SeqOfZuka] >>> ***/
1017
1018#include <NULL.h>
1019#include <asn_SEQUENCE_OF.h>
1020#include <constr_SEQUENCE_OF.h>
1021
1022/*** <<< DEPS [SeqOfZuka] >>> ***/
1023
1024extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
1025
1026/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
1027
1028
1029typedef struct SeqOfZuka {
1030 A_SEQUENCE_OF(NULL_t) list;
1031
1032 /* Context for parsing across buffer boundaries */
1033 asn_struct_ctx_t _asn_ctx;
1034} SeqOfZuka_t;
1035
1036/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
1037
1038static asn_TYPE_member_t asn_MBR_SeqOfZuka[] = {
1039 { ATF_NOFLAGS, 0, 0,
1040 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1041 .tag_mode = 0,
1042 .type = (void *)&asn_DEF_NULL,
1043 .memb_constraints = 0, /* Defer constraints checking to the member type */
1044 .name = "zuka"
1045 },
1046};
1047static ber_tlv_tag_t asn_DEF_SeqOfZuka_tags[] = {
1048 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1049};
1050static asn_SET_OF_specifics_t asn_DEF_SeqOfZuka_specs = {
1051 sizeof(struct SeqOfZuka),
1052 offsetof(struct SeqOfZuka, _asn_ctx),
1053 1, /* XER encoding is XMLValueList */
1054};
1055asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
1056 "SeqOfZuka",
1057 "SeqOfZuka",
1058 SEQUENCE_OF_free,
1059 SEQUENCE_OF_print,
1060 SEQUENCE_OF_constraint,
1061 SEQUENCE_OF_decode_ber,
1062 SEQUENCE_OF_encode_der,
1063 SEQUENCE_OF_decode_xer,
1064 SEQUENCE_OF_encode_xer,
1065 0, /* Use generic outmost tag fetcher */
1066 asn_DEF_SeqOfZuka_tags,
1067 sizeof(asn_DEF_SeqOfZuka_tags)
1068 /sizeof(asn_DEF_SeqOfZuka_tags[0]), /* 1 */
1069 asn_DEF_SeqOfZuka_tags, /* Same as above */
1070 sizeof(asn_DEF_SeqOfZuka_tags)
1071 /sizeof(asn_DEF_SeqOfZuka_tags[0]), /* 1 */
1072 asn_MBR_SeqOfZuka,
1073 1, /* Single element */
1074 &asn_DEF_SeqOfZuka_specs /* Additional specs */
1075};
1076