blob: e84e9f7bfc226530ca935869cda92dd067d55047 [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>
vlm6d5cb6b2005-02-24 22:38:43 +000010#include <SetOfNULL.h>
11#include <SetOfEnums.h>
12#include <SeqOfZuka.h>
vlm0d9046e2005-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,
vlm422e4ce2005-02-18 16:30:26 +000022 PDU_PR_sequenceOf,
23 PDU_PR_extensibleSet,
24 PDU_PR_extensibleSequence,
vlm6d5cb6b2005-02-24 22:38:43 +000025 PDU_PR_setOfNULL,
26 PDU_PR_setOfEnums,
27 PDU_PR_seqOfZuka,
vlm422e4ce2005-02-18 16:30:26 +000028 /* Extensions may appear below */
vlm0d9046e2005-02-14 20:40:57 +000029} PDU_PR;
vlm0d9046e2005-02-14 20:40:57 +000030
31/*** <<< TYPE-DECLS [PDU] >>> ***/
32
vlm0d9046e2005-02-14 20:40:57 +000033typedef struct PDU {
34 PDU_PR present;
35 union {
36 Sequence_t sequence;
37 Set_t set;
38 SetOf_t setOf;
vlm422e4ce2005-02-18 16:30:26 +000039 SequenceOf_t sequenceOf;
40 ExtensibleSet_t extensibleSet;
41 ExtensibleSequence_t extensibleSequence;
vlm6d5cb6b2005-02-24 22:38:43 +000042 SetOfNULL_t setOfNULL;
43 SetOfEnums_t setOfEnums;
44 SeqOfZuka_t seqOfZuka;
vlm422e4ce2005-02-18 16:30:26 +000045 /*
46 * This type is extensible,
47 * possible extensions are below.
48 */
vlm0d9046e2005-02-14 20:40:57 +000049 } choice;
50
51 /* Context for parsing across buffer boundaries */
52 asn_struct_ctx_t _asn_ctx;
53} PDU_t;
54
vlm0b567bf2005-03-04 22:18:20 +000055/*** <<< FUNC-DECLS [PDU] >>> ***/
56
57extern asn_TYPE_descriptor_t asn_DEF_PDU;
58
vlm0d9046e2005-02-14 20:40:57 +000059/*** <<< STAT-DEFS [PDU] >>> ***/
60
vlm44fe49a2005-03-04 11:26:08 +000061static asn_TYPE_member_t asn_MBR_PDU_1[] = {
vlm0d9046e2005-02-14 20:40:57 +000062 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence),
63 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
64 .tag_mode = -1, /* IMPLICIT tag at current level */
65 .type = (void *)&asn_DEF_Sequence,
66 .memb_constraints = 0, /* Defer constraints checking to the member type */
67 .name = "sequence"
68 },
69 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
70 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
71 .tag_mode = -1, /* IMPLICIT tag at current level */
72 .type = (void *)&asn_DEF_Set,
73 .memb_constraints = 0, /* Defer constraints checking to the member type */
74 .name = "set"
75 },
76 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOf),
77 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
78 .tag_mode = -1, /* IMPLICIT tag at current level */
79 .type = (void *)&asn_DEF_SetOf,
80 .memb_constraints = 0, /* Defer constraints checking to the member type */
81 .name = "setOf"
82 },
vlm422e4ce2005-02-18 16:30:26 +000083 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
vlm0d9046e2005-02-14 20:40:57 +000084 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
85 .tag_mode = -1, /* IMPLICIT tag at current level */
vlm422e4ce2005-02-18 16:30:26 +000086 .type = (void *)&asn_DEF_SequenceOf,
vlm0d9046e2005-02-14 20:40:57 +000087 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm422e4ce2005-02-18 16:30:26 +000088 .name = "sequenceOf"
89 },
90 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
91 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
92 .tag_mode = -1, /* IMPLICIT tag at current level */
93 .type = (void *)&asn_DEF_ExtensibleSet,
94 .memb_constraints = 0, /* Defer constraints checking to the member type */
95 .name = "extensibleSet"
96 },
97 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
98 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
99 .tag_mode = -1, /* IMPLICIT tag at current level */
100 .type = (void *)&asn_DEF_ExtensibleSequence,
101 .memb_constraints = 0, /* Defer constraints checking to the member type */
102 .name = "extensibleSequence"
vlm0d9046e2005-02-14 20:40:57 +0000103 },
vlm6d5cb6b2005-02-24 22:38:43 +0000104 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
105 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
106 .tag_mode = -1, /* IMPLICIT tag at current level */
107 .type = (void *)&asn_DEF_SetOfNULL,
108 .memb_constraints = 0, /* Defer constraints checking to the member type */
109 .name = "setOfNULL"
110 },
111 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
112 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
113 .tag_mode = -1, /* IMPLICIT tag at current level */
114 .type = (void *)&asn_DEF_SetOfEnums,
115 .memb_constraints = 0, /* Defer constraints checking to the member type */
116 .name = "setOfEnums"
117 },
118 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
119 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
120 .tag_mode = -1, /* IMPLICIT tag at current level */
121 .type = (void *)&asn_DEF_SeqOfZuka,
122 .memb_constraints = 0, /* Defer constraints checking to the member type */
123 .name = "seqOfZuka"
124 },
vlm0d9046e2005-02-14 20:40:57 +0000125};
vlm44fe49a2005-03-04 11:26:08 +0000126static asn_TYPE_tag2member_t asn_MAP_PDU_1_tag2el[] = {
vlm0d9046e2005-02-14 20:40:57 +0000127 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence at 19 */
128 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 20 */
129 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* setOf at 21 */
vlm422e4ce2005-02-18 16:30:26 +0000130 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* sequenceOf at 22 */
131 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSet at 23 */
132 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence at 24 */
vlm6d5cb6b2005-02-24 22:38:43 +0000133 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL at 25 */
134 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfEnums at 26 */
vlm82e33fb2005-02-25 08:35:54 +0000135 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 } /* seqOfZuka at 27 */
vlm0d9046e2005-02-14 20:40:57 +0000136};
vlm44fe49a2005-03-04 11:26:08 +0000137static asn_CHOICE_specifics_t asn_SPC_PDU_1_specs = {
vlm0d9046e2005-02-14 20:40:57 +0000138 sizeof(struct PDU),
139 offsetof(struct PDU, _asn_ctx),
140 offsetof(struct PDU, present),
141 sizeof(((struct PDU *)0)->present),
vlm44fe49a2005-03-04 11:26:08 +0000142 asn_MAP_PDU_1_tag2el,
vlm6d5cb6b2005-02-24 22:38:43 +0000143 9, /* Count of tags in the map */
vlm422e4ce2005-02-18 16:30:26 +0000144 1 /* Whether extensible */
vlm0d9046e2005-02-14 20:40:57 +0000145};
146asn_TYPE_descriptor_t asn_DEF_PDU = {
147 "PDU",
148 "PDU",
149 CHOICE_free,
150 CHOICE_print,
151 CHOICE_constraint,
152 CHOICE_decode_ber,
153 CHOICE_encode_der,
154 CHOICE_decode_xer,
155 CHOICE_encode_xer,
156 CHOICE_outmost_tag,
157 0, /* No effective tags (pointer) */
158 0, /* No effective tags (count) */
159 0, /* No tags (pointer) */
160 0, /* No tags (count) */
vlm44fe49a2005-03-04 11:26:08 +0000161 asn_MBR_PDU_1,
vlm6d5cb6b2005-02-24 22:38:43 +0000162 9, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000163 &asn_SPC_PDU_1_specs /* Additional specs */
vlm0d9046e2005-02-14 20:40:57 +0000164};
165
166
167/*** <<< INCLUDES [Sequence] >>> ***/
168
169#include <INTEGER.h>
vlm0d9046e2005-02-14 20:40:57 +0000170#include <BIT_STRING.h>
171#include <UTF8String.h>
172#include <constr_SEQUENCE.h>
173
vlm0b567bf2005-03-04 22:18:20 +0000174/*** <<< FWD-DECLS [Sequence] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000175
176struct Sequence; /* Forward declaration */
vlm0d9046e2005-02-14 20:40:57 +0000177
178/*** <<< TYPE-DECLS [Sequence] >>> ***/
179
vlm0d9046e2005-02-14 20:40:57 +0000180typedef struct Sequence {
181 INTEGER_t integer;
182 struct Sequence *sequence /* OPTIONAL */;
183 BIT_STRING_t *bits /* OPTIONAL */;
184 UTF8String_t string;
185
186 /* Context for parsing across buffer boundaries */
187 asn_struct_ctx_t _asn_ctx;
188} Sequence_t;
189
vlm0b567bf2005-03-04 22:18:20 +0000190/*** <<< FUNC-DECLS [Sequence] >>> ***/
191
192extern asn_TYPE_descriptor_t asn_DEF_Sequence;
193
194/*** <<< POST-INCLUDE [Sequence] >>> ***/
195
196#include <Sequence.h>
197
vlm0d9046e2005-02-14 20:40:57 +0000198/*** <<< STAT-DEFS [Sequence] >>> ***/
199
vlm44fe49a2005-03-04 11:26:08 +0000200static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
vlm0d9046e2005-02-14 20:40:57 +0000201 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
202 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
203 .tag_mode = -1, /* IMPLICIT tag at current level */
204 .type = (void *)&asn_DEF_INTEGER,
205 .memb_constraints = 0, /* Defer constraints checking to the member type */
206 .name = "integer"
207 },
208 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
209 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
210 .tag_mode = -1, /* IMPLICIT tag at current level */
211 .type = (void *)&asn_DEF_Sequence,
212 .memb_constraints = 0, /* Defer constraints checking to the member type */
213 .name = "sequence"
214 },
215 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
216 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
217 .tag_mode = -1, /* IMPLICIT tag at current level */
218 .type = (void *)&asn_DEF_BIT_STRING,
219 .memb_constraints = 0, /* Defer constraints checking to the member type */
220 .name = "bits"
221 },
222 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
223 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
224 .tag_mode = -1, /* IMPLICIT tag at current level */
225 .type = (void *)&asn_DEF_UTF8String,
226 .memb_constraints = 0, /* Defer constraints checking to the member type */
227 .name = "string"
228 },
229};
vlm44fe49a2005-03-04 11:26:08 +0000230static ber_tlv_tag_t asn_DEF_Sequence_1_tags[] = {
vlm0d9046e2005-02-14 20:40:57 +0000231 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
232};
vlm44fe49a2005-03-04 11:26:08 +0000233static asn_TYPE_tag2member_t asn_MAP_Sequence_1_tag2el[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000234 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer at 32 */
235 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence at 33 */
236 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits at 34 */
vlm82e33fb2005-02-25 08:35:54 +0000237 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string at 35 */
vlm0d9046e2005-02-14 20:40:57 +0000238};
vlm44fe49a2005-03-04 11:26:08 +0000239static asn_SEQUENCE_specifics_t asn_SPC_Sequence_1_specs = {
vlm0d9046e2005-02-14 20:40:57 +0000240 sizeof(struct Sequence),
241 offsetof(struct Sequence, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000242 asn_MAP_Sequence_1_tag2el,
vlm0d9046e2005-02-14 20:40:57 +0000243 4, /* Count of tags in the map */
244 -1, /* Start extensions */
245 -1 /* Stop extensions */
246};
247asn_TYPE_descriptor_t asn_DEF_Sequence = {
248 "Sequence",
249 "Sequence",
250 SEQUENCE_free,
251 SEQUENCE_print,
252 SEQUENCE_constraint,
253 SEQUENCE_decode_ber,
254 SEQUENCE_encode_der,
255 SEQUENCE_decode_xer,
256 SEQUENCE_encode_xer,
257 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000258 asn_DEF_Sequence_1_tags,
259 sizeof(asn_DEF_Sequence_1_tags)
260 /sizeof(asn_DEF_Sequence_1_tags[0]), /* 1 */
261 asn_DEF_Sequence_1_tags, /* Same as above */
262 sizeof(asn_DEF_Sequence_1_tags)
263 /sizeof(asn_DEF_Sequence_1_tags[0]), /* 1 */
264 asn_MBR_Sequence_1,
vlm0d9046e2005-02-14 20:40:57 +0000265 4, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000266 &asn_SPC_Sequence_1_specs /* Additional specs */
vlm0d9046e2005-02-14 20:40:57 +0000267};
268
269
270/*** <<< INCLUDES [Set] >>> ***/
271
272#include <RELATIVE-OID.h>
273#include <OCTET_STRING.h>
274#include <constr_SET.h>
275
276/*** <<< DEPS [Set] >>> ***/
277
278
279/*
280 * Method of determining the components presence
281 */
282typedef enum Set_PR {
283 Set_PR_roid, /* Member roid is present */
284 Set_PR_opaque, /* Member opaque is present */
285} Set_PR;
vlm0d9046e2005-02-14 20:40:57 +0000286
287/*** <<< TYPE-DECLS [Set] >>> ***/
288
vlm0d9046e2005-02-14 20:40:57 +0000289typedef struct Set {
290 RELATIVE_OID_t roid;
291 OCTET_STRING_t *opaque /* OPTIONAL */;
292
293 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
294 unsigned int _presence_map
295 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
296
297 /* Context for parsing across buffer boundaries */
298 asn_struct_ctx_t _asn_ctx;
299} Set_t;
300
vlm0b567bf2005-03-04 22:18:20 +0000301/*** <<< FUNC-DECLS [Set] >>> ***/
302
303extern asn_TYPE_descriptor_t asn_DEF_Set;
304
vlm0d9046e2005-02-14 20:40:57 +0000305/*** <<< STAT-DEFS [Set] >>> ***/
306
vlm44fe49a2005-03-04 11:26:08 +0000307static asn_TYPE_member_t asn_MBR_Set_1[] = {
vlm0d9046e2005-02-14 20:40:57 +0000308 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
309 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
310 .tag_mode = -1, /* IMPLICIT tag at current level */
311 .type = (void *)&asn_DEF_RELATIVE_OID,
312 .memb_constraints = 0, /* Defer constraints checking to the member type */
313 .name = "roid"
314 },
315 { ATF_POINTER, 1, offsetof(struct Set, opaque),
316 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
317 .tag_mode = -1, /* IMPLICIT tag at current level */
318 .type = (void *)&asn_DEF_OCTET_STRING,
319 .memb_constraints = 0, /* Defer constraints checking to the member type */
320 .name = "opaque"
321 },
322};
vlm44fe49a2005-03-04 11:26:08 +0000323static ber_tlv_tag_t asn_DEF_Set_1_tags[] = {
vlm0d9046e2005-02-14 20:40:57 +0000324 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
325};
vlm44fe49a2005-03-04 11:26:08 +0000326static asn_TYPE_tag2member_t asn_MAP_Set_1_tag2el[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000327 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid at 39 */
vlm82e33fb2005-02-25 08:35:54 +0000328 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque at 40 */
vlm0d9046e2005-02-14 20:40:57 +0000329};
vlm44fe49a2005-03-04 11:26:08 +0000330static uint8_t asn_MAP_Set_1_mmap[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
vlm0d9046e2005-02-14 20:40:57 +0000331 (1 << 7) | (0 << 6)
332};
vlm44fe49a2005-03-04 11:26:08 +0000333static asn_SET_specifics_t asn_SPC_Set_1_specs = {
vlm0d9046e2005-02-14 20:40:57 +0000334 sizeof(struct Set),
335 offsetof(struct Set, _asn_ctx),
336 offsetof(struct Set, _presence_map),
vlm44fe49a2005-03-04 11:26:08 +0000337 asn_MAP_Set_1_tag2el,
vlm0d9046e2005-02-14 20:40:57 +0000338 2, /* Count of tags in the map */
vlm44fe49a2005-03-04 11:26:08 +0000339 asn_MAP_Set_1_tag2el, /* Same as above */
vlm6d5cb6b2005-02-24 22:38:43 +0000340 2, /* Count of tags in the CXER map */
vlm0d9046e2005-02-14 20:40:57 +0000341 0, /* Whether extensible */
vlm44fe49a2005-03-04 11:26:08 +0000342 (unsigned int *)asn_MAP_Set_1_mmap /* Mandatory elements map */
vlm0d9046e2005-02-14 20:40:57 +0000343};
344asn_TYPE_descriptor_t asn_DEF_Set = {
345 "Set",
346 "Set",
347 SET_free,
348 SET_print,
349 SET_constraint,
350 SET_decode_ber,
351 SET_encode_der,
352 SET_decode_xer,
353 SET_encode_xer,
354 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000355 asn_DEF_Set_1_tags,
356 sizeof(asn_DEF_Set_1_tags)
357 /sizeof(asn_DEF_Set_1_tags[0]), /* 1 */
358 asn_DEF_Set_1_tags, /* Same as above */
359 sizeof(asn_DEF_Set_1_tags)
360 /sizeof(asn_DEF_Set_1_tags[0]), /* 1 */
361 asn_MBR_Set_1,
vlm0d9046e2005-02-14 20:40:57 +0000362 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000363 &asn_SPC_Set_1_specs /* Additional specs */
vlm0d9046e2005-02-14 20:40:57 +0000364};
365
366
vlm422e4ce2005-02-18 16:30:26 +0000367/*** <<< INCLUDES [ExtensibleSet] >>> ***/
368
369#include <UTF8String.h>
370#include <constr_SET.h>
371
372/*** <<< DEPS [ExtensibleSet] >>> ***/
373
374
375/*
376 * Method of determining the components presence
377 */
378typedef enum ExtensibleSet_PR {
379 ExtensibleSet_PR_string, /* Member string is present */
380} ExtensibleSet_PR;
vlm422e4ce2005-02-18 16:30:26 +0000381
382/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
383
vlm422e4ce2005-02-18 16:30:26 +0000384typedef struct ExtensibleSet {
385 UTF8String_t *string /* OPTIONAL */;
386 /*
387 * This type is extensible,
388 * possible extensions are below.
389 */
390
391 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
392 unsigned int _presence_map
393 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
394
395 /* Context for parsing across buffer boundaries */
396 asn_struct_ctx_t _asn_ctx;
397} ExtensibleSet_t;
398
vlm0b567bf2005-03-04 22:18:20 +0000399/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/
400
401extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
402
vlm422e4ce2005-02-18 16:30:26 +0000403/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
404
vlm44fe49a2005-03-04 11:26:08 +0000405static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
vlm422e4ce2005-02-18 16:30:26 +0000406 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, string),
407 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
408 .tag_mode = -1, /* IMPLICIT tag at current level */
409 .type = (void *)&asn_DEF_UTF8String,
410 .memb_constraints = 0, /* Defer constraints checking to the member type */
411 .name = "string"
412 },
413};
vlm44fe49a2005-03-04 11:26:08 +0000414static ber_tlv_tag_t asn_DEF_ExtensibleSet_1_tags[] = {
vlm422e4ce2005-02-18 16:30:26 +0000415 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
416};
vlm44fe49a2005-03-04 11:26:08 +0000417static asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_1_tag2el[] = {
vlm82e33fb2005-02-25 08:35:54 +0000418 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* string at 44 */
vlm422e4ce2005-02-18 16:30:26 +0000419};
vlm44fe49a2005-03-04 11:26:08 +0000420static uint8_t asn_MAP_ExtensibleSet_1_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
vlm422e4ce2005-02-18 16:30:26 +0000421 (0 << 7)
422};
vlm44fe49a2005-03-04 11:26:08 +0000423static asn_SET_specifics_t asn_SPC_ExtensibleSet_1_specs = {
vlm422e4ce2005-02-18 16:30:26 +0000424 sizeof(struct ExtensibleSet),
425 offsetof(struct ExtensibleSet, _asn_ctx),
426 offsetof(struct ExtensibleSet, _presence_map),
vlm44fe49a2005-03-04 11:26:08 +0000427 asn_MAP_ExtensibleSet_1_tag2el,
vlm422e4ce2005-02-18 16:30:26 +0000428 1, /* Count of tags in the map */
vlm44fe49a2005-03-04 11:26:08 +0000429 asn_MAP_ExtensibleSet_1_tag2el, /* Same as above */
vlm6d5cb6b2005-02-24 22:38:43 +0000430 1, /* Count of tags in the CXER map */
vlm422e4ce2005-02-18 16:30:26 +0000431 1, /* Whether extensible */
vlm44fe49a2005-03-04 11:26:08 +0000432 (unsigned int *)asn_MAP_ExtensibleSet_1_mmap /* Mandatory elements map */
vlm422e4ce2005-02-18 16:30:26 +0000433};
434asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
435 "ExtensibleSet",
436 "ExtensibleSet",
437 SET_free,
438 SET_print,
439 SET_constraint,
440 SET_decode_ber,
441 SET_encode_der,
442 SET_decode_xer,
443 SET_encode_xer,
444 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000445 asn_DEF_ExtensibleSet_1_tags,
446 sizeof(asn_DEF_ExtensibleSet_1_tags)
447 /sizeof(asn_DEF_ExtensibleSet_1_tags[0]), /* 1 */
448 asn_DEF_ExtensibleSet_1_tags, /* Same as above */
449 sizeof(asn_DEF_ExtensibleSet_1_tags)
450 /sizeof(asn_DEF_ExtensibleSet_1_tags[0]), /* 1 */
451 asn_MBR_ExtensibleSet_1,
vlm422e4ce2005-02-18 16:30:26 +0000452 1, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000453 &asn_SPC_ExtensibleSet_1_specs /* Additional specs */
vlm422e4ce2005-02-18 16:30:26 +0000454};
455
456
457/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
458
459#include <UTF8String.h>
460#include <INTEGER.h>
461#include <constr_SEQUENCE.h>
462
vlm422e4ce2005-02-18 16:30:26 +0000463/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
464
vlm422e4ce2005-02-18 16:30:26 +0000465typedef struct ExtensibleSequence {
466 UTF8String_t *string /* OPTIONAL */;
467 /*
468 * This type is extensible,
469 * possible extensions are below.
470 */
471 INTEGER_t *integer /* OPTIONAL */;
472
473 /* Context for parsing across buffer boundaries */
474 asn_struct_ctx_t _asn_ctx;
475} ExtensibleSequence_t;
476
vlm0b567bf2005-03-04 22:18:20 +0000477/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/
478
479extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
480
vlm422e4ce2005-02-18 16:30:26 +0000481/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
482
vlm44fe49a2005-03-04 11:26:08 +0000483static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
vlm422e4ce2005-02-18 16:30:26 +0000484 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, string),
485 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
486 .tag_mode = -1, /* IMPLICIT tag at current level */
487 .type = (void *)&asn_DEF_UTF8String,
488 .memb_constraints = 0, /* Defer constraints checking to the member type */
489 .name = "string"
490 },
491 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, integer),
492 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
493 .tag_mode = -1, /* IMPLICIT tag at current level */
494 .type = (void *)&asn_DEF_INTEGER,
495 .memb_constraints = 0, /* Defer constraints checking to the member type */
496 .name = "integer"
497 },
498};
vlm44fe49a2005-03-04 11:26:08 +0000499static ber_tlv_tag_t asn_DEF_ExtensibleSequence_1_tags[] = {
vlm422e4ce2005-02-18 16:30:26 +0000500 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
501};
vlm44fe49a2005-03-04 11:26:08 +0000502static asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_1_tag2el[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000503 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string at 49 */
vlm82e33fb2005-02-25 08:35:54 +0000504 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer at 51 */
vlm422e4ce2005-02-18 16:30:26 +0000505};
vlm44fe49a2005-03-04 11:26:08 +0000506static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_1_specs = {
vlm422e4ce2005-02-18 16:30:26 +0000507 sizeof(struct ExtensibleSequence),
508 offsetof(struct ExtensibleSequence, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000509 asn_MAP_ExtensibleSequence_1_tag2el,
vlm422e4ce2005-02-18 16:30:26 +0000510 2, /* Count of tags in the map */
511 0, /* Start extensions */
512 3 /* Stop extensions */
513};
514asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
515 "ExtensibleSequence",
516 "ExtensibleSequence",
517 SEQUENCE_free,
518 SEQUENCE_print,
519 SEQUENCE_constraint,
520 SEQUENCE_decode_ber,
521 SEQUENCE_encode_der,
522 SEQUENCE_decode_xer,
523 SEQUENCE_encode_xer,
524 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000525 asn_DEF_ExtensibleSequence_1_tags,
526 sizeof(asn_DEF_ExtensibleSequence_1_tags)
527 /sizeof(asn_DEF_ExtensibleSequence_1_tags[0]), /* 1 */
528 asn_DEF_ExtensibleSequence_1_tags, /* Same as above */
529 sizeof(asn_DEF_ExtensibleSequence_1_tags)
530 /sizeof(asn_DEF_ExtensibleSequence_1_tags[0]), /* 1 */
531 asn_MBR_ExtensibleSequence_1,
vlm422e4ce2005-02-18 16:30:26 +0000532 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000533 &asn_SPC_ExtensibleSequence_1_specs /* Additional specs */
vlm422e4ce2005-02-18 16:30:26 +0000534};
535
536
vlm0d9046e2005-02-14 20:40:57 +0000537/*** <<< INCLUDES [SetOf] >>> ***/
538
539#include <REAL.h>
540#include <asn_SET_OF.h>
541#include <constr_SET_OF.h>
542
vlm0d9046e2005-02-14 20:40:57 +0000543/*** <<< TYPE-DECLS [SetOf] >>> ***/
544
vlm0d9046e2005-02-14 20:40:57 +0000545typedef struct SetOf {
546 A_SET_OF(REAL_t) list;
547
548 /* Context for parsing across buffer boundaries */
549 asn_struct_ctx_t _asn_ctx;
550} SetOf_t;
551
vlm0b567bf2005-03-04 22:18:20 +0000552/*** <<< FUNC-DECLS [SetOf] >>> ***/
553
554extern asn_TYPE_descriptor_t asn_DEF_SetOf;
555
vlm0d9046e2005-02-14 20:40:57 +0000556/*** <<< STAT-DEFS [SetOf] >>> ***/
557
vlm44fe49a2005-03-04 11:26:08 +0000558static asn_TYPE_member_t asn_MBR_SetOf_1[] = {
vlm0d9046e2005-02-14 20:40:57 +0000559 { ATF_NOFLAGS, 0, 0,
560 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
561 .tag_mode = 0,
562 .type = (void *)&asn_DEF_REAL,
563 .memb_constraints = 0, /* Defer constraints checking to the member type */
564 .name = ""
565 },
566};
vlm44fe49a2005-03-04 11:26:08 +0000567static ber_tlv_tag_t asn_DEF_SetOf_1_tags[] = {
vlm0d9046e2005-02-14 20:40:57 +0000568 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
569};
vlm44fe49a2005-03-04 11:26:08 +0000570static asn_SET_OF_specifics_t asn_SPC_SetOf_1_specs = {
vlm0d9046e2005-02-14 20:40:57 +0000571 sizeof(struct SetOf),
572 offsetof(struct SetOf, _asn_ctx),
573 0, /* XER encoding is XMLDelimitedItemList */
574};
575asn_TYPE_descriptor_t asn_DEF_SetOf = {
576 "SetOf",
577 "SetOf",
578 SET_OF_free,
579 SET_OF_print,
580 SET_OF_constraint,
581 SET_OF_decode_ber,
582 SET_OF_encode_der,
583 SET_OF_decode_xer,
584 SET_OF_encode_xer,
585 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000586 asn_DEF_SetOf_1_tags,
587 sizeof(asn_DEF_SetOf_1_tags)
588 /sizeof(asn_DEF_SetOf_1_tags[0]), /* 1 */
589 asn_DEF_SetOf_1_tags, /* Same as above */
590 sizeof(asn_DEF_SetOf_1_tags)
591 /sizeof(asn_DEF_SetOf_1_tags[0]), /* 1 */
592 asn_MBR_SetOf_1,
vlm0d9046e2005-02-14 20:40:57 +0000593 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000594 &asn_SPC_SetOf_1_specs /* Additional specs */
vlm0d9046e2005-02-14 20:40:57 +0000595};
596
597
vlm6d5cb6b2005-02-24 22:38:43 +0000598/*** <<< INCLUDES [SetOfNULL] >>> ***/
599
600#include <NULL.h>
601#include <asn_SET_OF.h>
602#include <constr_SET_OF.h>
603
vlm6d5cb6b2005-02-24 22:38:43 +0000604/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
605
vlm6d5cb6b2005-02-24 22:38:43 +0000606typedef struct SetOfNULL {
607 A_SET_OF(NULL_t) list;
608
609 /* Context for parsing across buffer boundaries */
610 asn_struct_ctx_t _asn_ctx;
611} SetOfNULL_t;
612
vlm0b567bf2005-03-04 22:18:20 +0000613/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/
614
615extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
616
vlm6d5cb6b2005-02-24 22:38:43 +0000617/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
618
vlm44fe49a2005-03-04 11:26:08 +0000619static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000620 { ATF_NOFLAGS, 0, 0,
621 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
622 .tag_mode = 0,
623 .type = (void *)&asn_DEF_NULL,
624 .memb_constraints = 0, /* Defer constraints checking to the member type */
625 .name = ""
626 },
627};
vlm44fe49a2005-03-04 11:26:08 +0000628static ber_tlv_tag_t asn_DEF_SetOfNULL_1_tags[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000629 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
630};
vlm44fe49a2005-03-04 11:26:08 +0000631static asn_SET_OF_specifics_t asn_SPC_SetOfNULL_1_specs = {
vlm6d5cb6b2005-02-24 22:38:43 +0000632 sizeof(struct SetOfNULL),
633 offsetof(struct SetOfNULL, _asn_ctx),
634 1, /* XER encoding is XMLValueList */
635};
636asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
637 "SetOfNULL",
638 "SetOfNULL",
639 SET_OF_free,
640 SET_OF_print,
641 SET_OF_constraint,
642 SET_OF_decode_ber,
643 SET_OF_encode_der,
644 SET_OF_decode_xer,
645 SET_OF_encode_xer,
646 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000647 asn_DEF_SetOfNULL_1_tags,
648 sizeof(asn_DEF_SetOfNULL_1_tags)
649 /sizeof(asn_DEF_SetOfNULL_1_tags[0]), /* 1 */
650 asn_DEF_SetOfNULL_1_tags, /* Same as above */
651 sizeof(asn_DEF_SetOfNULL_1_tags)
652 /sizeof(asn_DEF_SetOfNULL_1_tags[0]), /* 1 */
653 asn_MBR_SetOfNULL_1,
vlm6d5cb6b2005-02-24 22:38:43 +0000654 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000655 &asn_SPC_SetOfNULL_1_specs /* Additional specs */
vlm6d5cb6b2005-02-24 22:38:43 +0000656};
657
658
659/*** <<< INCLUDES [SetOfEnums] >>> ***/
660
661#include <ENUMERATED.h>
662#include <asn_SET_OF.h>
663#include <constr_SET_OF.h>
664
665/*** <<< DEPS [SetOfEnums] >>> ***/
666
vlm44fe49a2005-03-04 11:26:08 +0000667typedef enum Member {
668 Member_one = 0,
669 Member_oneMore = 1
670} Member_e;
vlm6d5cb6b2005-02-24 22:38:43 +0000671
672/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
673
vlm6d5cb6b2005-02-24 22:38:43 +0000674typedef struct SetOfEnums {
675 A_SET_OF(ENUMERATED_t) list;
676
677 /* Context for parsing across buffer boundaries */
678 asn_struct_ctx_t _asn_ctx;
679} SetOfEnums_t;
680
vlm82e33fb2005-02-25 08:35:54 +0000681/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
682
vlm44fe49a2005-03-04 11:26:08 +0000683/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */
vlm0b567bf2005-03-04 22:18:20 +0000684extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
vlm82e33fb2005-02-25 08:35:54 +0000685
686/*** <<< CODE [SetOfEnums] >>> ***/
687
688static int
vlm44fe49a2005-03-04 11:26:08 +0000689Member_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
vlm82e33fb2005-02-25 08:35:54 +0000690 asn_app_consume_bytes_f *app_errlog, void *app_key) {
691 /* Replace with underlying type checker */
692 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
693 return td->check_constraints(td, sptr, app_errlog, app_key);
694}
695
696/*
697 * This type is implemented using ENUMERATED,
698 * so here we adjust the DEF accordingly.
699 */
700static void
vlm44fe49a2005-03-04 11:26:08 +0000701Member_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
vlm82e33fb2005-02-25 08:35:54 +0000702 td->free_struct = asn_DEF_ENUMERATED.free_struct;
703 td->print_struct = asn_DEF_ENUMERATED.print_struct;
704 td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
705 td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
706 td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
707 td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
708 td->elements = asn_DEF_ENUMERATED.elements;
709 td->elements_count = asn_DEF_ENUMERATED.elements_count;
vlm2f806082005-02-25 10:24:53 +0000710 /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
vlm82e33fb2005-02-25 08:35:54 +0000711}
712
713static void
vlm44fe49a2005-03-04 11:26:08 +0000714Member_2_free(asn_TYPE_descriptor_t *td,
vlm82e33fb2005-02-25 08:35:54 +0000715 void *struct_ptr, int contents_only) {
vlm44fe49a2005-03-04 11:26:08 +0000716 Member_2_inherit_TYPE_descriptor(td);
vlm82e33fb2005-02-25 08:35:54 +0000717 td->free_struct(td, struct_ptr, contents_only);
718}
719
720static int
vlm44fe49a2005-03-04 11:26:08 +0000721Member_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
vlm82e33fb2005-02-25 08:35:54 +0000722 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
vlm44fe49a2005-03-04 11:26:08 +0000723 Member_2_inherit_TYPE_descriptor(td);
vlm82e33fb2005-02-25 08:35:54 +0000724 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
725}
726
727static asn_dec_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000728Member_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
vlm82e33fb2005-02-25 08:35:54 +0000729 void **structure, void *bufptr, size_t size, int tag_mode) {
vlm44fe49a2005-03-04 11:26:08 +0000730 Member_2_inherit_TYPE_descriptor(td);
vlm82e33fb2005-02-25 08:35:54 +0000731 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
732}
733
734static asn_enc_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000735Member_2_encode_der(asn_TYPE_descriptor_t *td,
vlm82e33fb2005-02-25 08:35:54 +0000736 void *structure, int tag_mode, ber_tlv_tag_t tag,
737 asn_app_consume_bytes_f *cb, void *app_key) {
vlm44fe49a2005-03-04 11:26:08 +0000738 Member_2_inherit_TYPE_descriptor(td);
vlm82e33fb2005-02-25 08:35:54 +0000739 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
740}
741
742static asn_dec_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000743Member_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
vlm82e33fb2005-02-25 08:35:54 +0000744 void **structure, const char *opt_mname, void *bufptr, size_t size) {
vlm44fe49a2005-03-04 11:26:08 +0000745 Member_2_inherit_TYPE_descriptor(td);
vlm82e33fb2005-02-25 08:35:54 +0000746 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
747}
748
749static asn_enc_rval_t
vlm44fe49a2005-03-04 11:26:08 +0000750Member_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
vlm82e33fb2005-02-25 08:35:54 +0000751 int ilevel, enum xer_encoder_flags_e flags,
752 asn_app_consume_bytes_f *cb, void *app_key) {
vlm44fe49a2005-03-04 11:26:08 +0000753 Member_2_inherit_TYPE_descriptor(td);
vlm82e33fb2005-02-25 08:35:54 +0000754 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
755}
756
757
vlm6d5cb6b2005-02-24 22:38:43 +0000758/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
759
vlm44fe49a2005-03-04 11:26:08 +0000760static asn_INTEGER_enum_map_t asn_MAP_Member_2_value2enum[] = {
vlm56a1f3e2005-02-25 11:08:02 +0000761 { 0, 3, "one" },
762 { 1, 7, "oneMore" }
763};
vlm44fe49a2005-03-04 11:26:08 +0000764static unsigned int asn_MAP_Member_2_enum2value[] = {
vlm56a1f3e2005-02-25 11:08:02 +0000765 0, /* one(0) */
766 1 /* oneMore(1) */
vlm82e33fb2005-02-25 08:35:54 +0000767};
vlm44fe49a2005-03-04 11:26:08 +0000768static asn_INTEGER_specifics_t asn_SPC_Member_2_specs = {
769 asn_MAP_Member_2_value2enum, /* "tag" => N; sorted by tag */
770 asn_MAP_Member_2_enum2value, /* N => "tag"; sorted by N */
vlm82e33fb2005-02-25 08:35:54 +0000771 2, /* Number of elements in the maps */
vlmc018f362005-02-25 11:47:59 +0000772 0, /* Enumeration is not extensible */
773 1 /* Strict enumeration */
vlm82e33fb2005-02-25 08:35:54 +0000774};
vlm44fe49a2005-03-04 11:26:08 +0000775static ber_tlv_tag_t asn_DEF_Member_2_tags[] = {
vlm82e33fb2005-02-25 08:35:54 +0000776 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
777};
778static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +0000779asn_TYPE_descriptor_t asn_DEF_Member_2 = {
vlm82e33fb2005-02-25 08:35:54 +0000780 "",
781 "",
vlm44fe49a2005-03-04 11:26:08 +0000782 Member_2_free,
783 Member_2_print,
784 Member_2_constraint,
785 Member_2_decode_ber,
786 Member_2_encode_der,
787 Member_2_decode_xer,
788 Member_2_encode_xer,
vlm82e33fb2005-02-25 08:35:54 +0000789 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000790 asn_DEF_Member_2_tags,
791 sizeof(asn_DEF_Member_2_tags)
792 /sizeof(asn_DEF_Member_2_tags[0]), /* 1 */
793 asn_DEF_Member_2_tags, /* Same as above */
794 sizeof(asn_DEF_Member_2_tags)
795 /sizeof(asn_DEF_Member_2_tags[0]), /* 1 */
vlm82e33fb2005-02-25 08:35:54 +0000796 0, 0, /* Defined elsewhere */
vlm44fe49a2005-03-04 11:26:08 +0000797 &asn_SPC_Member_2_specs /* Additional specs */
vlm82e33fb2005-02-25 08:35:54 +0000798};
799
vlm44fe49a2005-03-04 11:26:08 +0000800static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000801 { ATF_NOFLAGS, 0, 0,
802 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
803 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000804 .type = (void *)&asn_DEF_Member_2,
vlm6d5cb6b2005-02-24 22:38:43 +0000805 .memb_constraints = 0, /* Defer constraints checking to the member type */
806 .name = ""
807 },
808};
vlm44fe49a2005-03-04 11:26:08 +0000809static ber_tlv_tag_t asn_DEF_SetOfEnums_1_tags[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000810 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
811};
vlm44fe49a2005-03-04 11:26:08 +0000812static asn_SET_OF_specifics_t asn_SPC_SetOfEnums_1_specs = {
vlm6d5cb6b2005-02-24 22:38:43 +0000813 sizeof(struct SetOfEnums),
814 offsetof(struct SetOfEnums, _asn_ctx),
vlm82e33fb2005-02-25 08:35:54 +0000815 1, /* XER encoding is XMLValueList */
vlm6d5cb6b2005-02-24 22:38:43 +0000816};
817asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
818 "SetOfEnums",
819 "SetOfEnums",
820 SET_OF_free,
821 SET_OF_print,
822 SET_OF_constraint,
823 SET_OF_decode_ber,
824 SET_OF_encode_der,
825 SET_OF_decode_xer,
826 SET_OF_encode_xer,
827 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000828 asn_DEF_SetOfEnums_1_tags,
829 sizeof(asn_DEF_SetOfEnums_1_tags)
830 /sizeof(asn_DEF_SetOfEnums_1_tags[0]), /* 1 */
831 asn_DEF_SetOfEnums_1_tags, /* Same as above */
832 sizeof(asn_DEF_SetOfEnums_1_tags)
833 /sizeof(asn_DEF_SetOfEnums_1_tags[0]), /* 1 */
834 asn_MBR_SetOfEnums_1,
vlm6d5cb6b2005-02-24 22:38:43 +0000835 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000836 &asn_SPC_SetOfEnums_1_specs /* Additional specs */
vlm6d5cb6b2005-02-24 22:38:43 +0000837};
838
839
vlm422e4ce2005-02-18 16:30:26 +0000840/*** <<< INCLUDES [SequenceOf] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000841
842#include <INTEGER.h>
843#include <asn_SEQUENCE_OF.h>
844#include <constr_SEQUENCE_OF.h>
845
vlm422e4ce2005-02-18 16:30:26 +0000846/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000847
vlm422e4ce2005-02-18 16:30:26 +0000848typedef struct SequenceOf {
vlm0d9046e2005-02-14 20:40:57 +0000849 A_SEQUENCE_OF(INTEGER_t) list;
850
851 /* Context for parsing across buffer boundaries */
852 asn_struct_ctx_t _asn_ctx;
vlm422e4ce2005-02-18 16:30:26 +0000853} SequenceOf_t;
vlm0d9046e2005-02-14 20:40:57 +0000854
vlm0b567bf2005-03-04 22:18:20 +0000855/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
856
857extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
858
vlm422e4ce2005-02-18 16:30:26 +0000859/*** <<< STAT-DEFS [SequenceOf] >>> ***/
vlm0d9046e2005-02-14 20:40:57 +0000860
vlm44fe49a2005-03-04 11:26:08 +0000861static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
vlm0d9046e2005-02-14 20:40:57 +0000862 { ATF_NOFLAGS, 0, 0,
863 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
864 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +0000865 .type = (void *)&asn_DEF_INTEGER,
vlm0d9046e2005-02-14 20:40:57 +0000866 .memb_constraints = 0, /* Defer constraints checking to the member type */
867 .name = "id"
868 },
869};
vlm44fe49a2005-03-04 11:26:08 +0000870static ber_tlv_tag_t asn_DEF_SequenceOf_1_tags[] = {
vlm0d9046e2005-02-14 20:40:57 +0000871 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
872};
vlm44fe49a2005-03-04 11:26:08 +0000873static asn_SET_OF_specifics_t asn_SPC_SequenceOf_1_specs = {
vlm422e4ce2005-02-18 16:30:26 +0000874 sizeof(struct SequenceOf),
875 offsetof(struct SequenceOf, _asn_ctx),
vlm0d9046e2005-02-14 20:40:57 +0000876 0, /* XER encoding is XMLDelimitedItemList */
877};
vlm422e4ce2005-02-18 16:30:26 +0000878asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
879 "SequenceOf",
880 "SequenceOf",
vlm0d9046e2005-02-14 20:40:57 +0000881 SEQUENCE_OF_free,
882 SEQUENCE_OF_print,
883 SEQUENCE_OF_constraint,
884 SEQUENCE_OF_decode_ber,
885 SEQUENCE_OF_encode_der,
886 SEQUENCE_OF_decode_xer,
887 SEQUENCE_OF_encode_xer,
888 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000889 asn_DEF_SequenceOf_1_tags,
890 sizeof(asn_DEF_SequenceOf_1_tags)
891 /sizeof(asn_DEF_SequenceOf_1_tags[0]), /* 1 */
892 asn_DEF_SequenceOf_1_tags, /* Same as above */
893 sizeof(asn_DEF_SequenceOf_1_tags)
894 /sizeof(asn_DEF_SequenceOf_1_tags[0]), /* 1 */
895 asn_MBR_SequenceOf_1,
vlm0d9046e2005-02-14 20:40:57 +0000896 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000897 &asn_SPC_SequenceOf_1_specs /* Additional specs */
vlm0d9046e2005-02-14 20:40:57 +0000898};
899
vlm6d5cb6b2005-02-24 22:38:43 +0000900
901/*** <<< INCLUDES [SeqOfZuka] >>> ***/
902
903#include <NULL.h>
904#include <asn_SEQUENCE_OF.h>
905#include <constr_SEQUENCE_OF.h>
906
vlm6d5cb6b2005-02-24 22:38:43 +0000907/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
908
vlm6d5cb6b2005-02-24 22:38:43 +0000909typedef struct SeqOfZuka {
910 A_SEQUENCE_OF(NULL_t) list;
911
912 /* Context for parsing across buffer boundaries */
913 asn_struct_ctx_t _asn_ctx;
914} SeqOfZuka_t;
915
vlm0b567bf2005-03-04 22:18:20 +0000916/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/
917
918extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
919
vlm6d5cb6b2005-02-24 22:38:43 +0000920/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
921
vlm44fe49a2005-03-04 11:26:08 +0000922static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000923 { ATF_NOFLAGS, 0, 0,
924 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
925 .tag_mode = 0,
926 .type = (void *)&asn_DEF_NULL,
927 .memb_constraints = 0, /* Defer constraints checking to the member type */
928 .name = "zuka"
929 },
930};
vlm44fe49a2005-03-04 11:26:08 +0000931static ber_tlv_tag_t asn_DEF_SeqOfZuka_1_tags[] = {
vlm6d5cb6b2005-02-24 22:38:43 +0000932 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
933};
vlm44fe49a2005-03-04 11:26:08 +0000934static asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_1_specs = {
vlm6d5cb6b2005-02-24 22:38:43 +0000935 sizeof(struct SeqOfZuka),
936 offsetof(struct SeqOfZuka, _asn_ctx),
937 1, /* XER encoding is XMLValueList */
938};
939asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
940 "SeqOfZuka",
941 "SeqOfZuka",
942 SEQUENCE_OF_free,
943 SEQUENCE_OF_print,
944 SEQUENCE_OF_constraint,
945 SEQUENCE_OF_decode_ber,
946 SEQUENCE_OF_encode_der,
947 SEQUENCE_OF_decode_xer,
948 SEQUENCE_OF_encode_xer,
949 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000950 asn_DEF_SeqOfZuka_1_tags,
951 sizeof(asn_DEF_SeqOfZuka_1_tags)
952 /sizeof(asn_DEF_SeqOfZuka_1_tags[0]), /* 1 */
953 asn_DEF_SeqOfZuka_1_tags, /* Same as above */
954 sizeof(asn_DEF_SeqOfZuka_1_tags)
955 /sizeof(asn_DEF_SeqOfZuka_1_tags[0]), /* 1 */
956 asn_MBR_SeqOfZuka_1,
vlm6d5cb6b2005-02-24 22:38:43 +0000957 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +0000958 &asn_SPC_SeqOfZuka_1_specs /* Additional specs */
vlm6d5cb6b2005-02-24 22:38:43 +0000959};
960