blob: 5038fcd6df6a0a93c5c800040515789ccf5bd3a2 [file] [log] [blame]
Lev Walkin0ef9f142005-02-14 20:40:57 +00001
2/*** <<< INCLUDES [PDU] >>> ***/
3
Lev Walkin22b5ed42006-09-13 02:51:20 +00004#include "Sequence.h"
5#include "Set.h"
6#include "SequenceOf.h"
7#include "ExtensibleSet.h"
8#include "ExtensibleSequence.h"
9#include "ExtensibleSequence2.h"
10#include "SetOfNULL.h"
11#include "SetOfREAL.h"
12#include "SetOfEnums.h"
13#include "NamedSetOfNULL.h"
14#include "NamedSetOfREAL.h"
15#include "NamedSetOfEnums.h"
16#include "SeqOfZuka.h"
17#include "SetOfChoice.h"
18#include "NamedSetOfChoice.h"
Lev Walkin0ef9f142005-02-14 20:40:57 +000019#include <constr_CHOICE.h>
20
21/*** <<< DEPS [PDU] >>> ***/
22
23typedef enum PDU_PR {
24 PDU_PR_NOTHING, /* No components present */
25 PDU_PR_sequence,
26 PDU_PR_set,
Lev Walkin843a2462005-02-18 16:30:26 +000027 PDU_PR_sequenceOf,
28 PDU_PR_extensibleSet,
29 PDU_PR_extensibleSequence,
Lev Walkin15750402005-07-03 05:27:19 +000030 PDU_PR_extensibleSequence2,
Lev Walkinf5db6142005-02-24 22:38:43 +000031 PDU_PR_setOfNULL,
Lev Walkin5ab96cd2005-11-07 15:26:47 +000032 PDU_PR_setOfREAL,
Lev Walkinf5db6142005-02-24 22:38:43 +000033 PDU_PR_setOfEnums,
Lev Walkin5ab96cd2005-11-07 15:26:47 +000034 PDU_PR_namedSetOfNULL,
35 PDU_PR_namedSetOfREAL,
36 PDU_PR_namedSetOfEnums,
Lev Walkinf5db6142005-02-24 22:38:43 +000037 PDU_PR_seqOfZuka,
Lev Walkin5ab96cd2005-11-07 15:26:47 +000038 PDU_PR_setOfChoice,
johvik792216e2017-04-11 10:42:21 +020039 PDU_PR_namedSetOfChoice
Lev Walkin843a2462005-02-18 16:30:26 +000040 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +000041
Lev Walkin0ef9f142005-02-14 20:40:57 +000042} PDU_PR;
Lev Walkin0ef9f142005-02-14 20:40:57 +000043
44/*** <<< TYPE-DECLS [PDU] >>> ***/
45
Lev Walkin0ef9f142005-02-14 20:40:57 +000046typedef struct PDU {
47 PDU_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +000048 union PDU_u {
Lev Walkin0ef9f142005-02-14 20:40:57 +000049 Sequence_t sequence;
50 Set_t set;
Lev Walkin843a2462005-02-18 16:30:26 +000051 SequenceOf_t sequenceOf;
52 ExtensibleSet_t extensibleSet;
53 ExtensibleSequence_t extensibleSequence;
Lev Walkin15750402005-07-03 05:27:19 +000054 ExtensibleSequence2_t extensibleSequence2;
Lev Walkinf5db6142005-02-24 22:38:43 +000055 SetOfNULL_t setOfNULL;
Lev Walkin5ab96cd2005-11-07 15:26:47 +000056 SetOfREAL_t setOfREAL;
Lev Walkinf5db6142005-02-24 22:38:43 +000057 SetOfEnums_t setOfEnums;
Lev Walkin5ab96cd2005-11-07 15:26:47 +000058 NamedSetOfNULL_t namedSetOfNULL;
59 NamedSetOfREAL_t namedSetOfREAL;
60 NamedSetOfEnums_t namedSetOfEnums;
Lev Walkinf5db6142005-02-24 22:38:43 +000061 SeqOfZuka_t seqOfZuka;
Lev Walkin5ab96cd2005-11-07 15:26:47 +000062 SetOfChoice_t setOfChoice;
63 NamedSetOfChoice_t namedSetOfChoice;
Lev Walkin843a2462005-02-18 16:30:26 +000064 /*
65 * This type is extensible,
66 * possible extensions are below.
67 */
Lev Walkin0ef9f142005-02-14 20:40:57 +000068 } choice;
69
70 /* Context for parsing across buffer boundaries */
71 asn_struct_ctx_t _asn_ctx;
72} PDU_t;
73
Lev Walkinc8285712005-03-04 22:18:20 +000074/*** <<< FUNC-DECLS [PDU] >>> ***/
75
76extern asn_TYPE_descriptor_t asn_DEF_PDU;
77
Lev Walkin0ef9f142005-02-14 20:40:57 +000078/*** <<< STAT-DEFS [PDU] >>> ***/
79
Lev Walkine0272aa2005-03-04 11:26:08 +000080static asn_TYPE_member_t asn_MBR_PDU_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +000081 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequence),
82 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
83 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000084 .type = &asn_DEF_Sequence,
Lev Walkin0ef9f142005-02-14 20:40:57 +000085 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000086 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
87 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +000088 .name = "sequence"
89 },
90 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
91 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
92 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000093 .type = &asn_DEF_Set,
Lev Walkin0ef9f142005-02-14 20:40:57 +000094 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000095 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
96 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +000097 .name = "set"
98 },
Lev Walkin843a2462005-02-18 16:30:26 +000099 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000100 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin0ef9f142005-02-14 20:40:57 +0000101 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000102 .type = &asn_DEF_SequenceOf,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000103 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000104 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
105 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000106 .name = "sequenceOf"
107 },
108 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000109 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000110 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000111 .type = &asn_DEF_ExtensibleSet,
Lev Walkin843a2462005-02-18 16:30:26 +0000112 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000113 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
114 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000115 .name = "extensibleSet"
116 },
117 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000118 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000119 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000120 .type = &asn_DEF_ExtensibleSequence,
Lev Walkin843a2462005-02-18 16:30:26 +0000121 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000122 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
123 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000124 .name = "extensibleSequence"
Lev Walkin0ef9f142005-02-14 20:40:57 +0000125 },
Lev Walkin15750402005-07-03 05:27:19 +0000126 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000127 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000128 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000129 .type = &asn_DEF_ExtensibleSequence2,
Lev Walkin15750402005-07-03 05:27:19 +0000130 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000131 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
132 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000133 .name = "extensibleSequence2"
134 },
135 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000136 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
Lev Walkin15750402005-07-03 05:27:19 +0000137 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000138 .type = &asn_DEF_SetOfNULL,
Lev Walkinf5db6142005-02-24 22:38:43 +0000139 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000140 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
141 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000142 .name = "setOfNULL"
143 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000144 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfREAL),
145 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
146 .tag_mode = -1, /* IMPLICIT tag at current level */
147 .type = &asn_DEF_SetOfREAL,
148 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000149 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
150 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000151 .name = "setOfREAL"
152 },
Lev Walkinf5db6142005-02-24 22:38:43 +0000153 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
Lev Walkin15750402005-07-03 05:27:19 +0000154 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000155 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000156 .type = &asn_DEF_SetOfEnums,
Lev Walkinf5db6142005-02-24 22:38:43 +0000157 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000158 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
159 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000160 .name = "setOfEnums"
161 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000162 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfNULL),
Lev Walkin15750402005-07-03 05:27:19 +0000163 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000164 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000165 .type = &asn_DEF_NamedSetOfNULL,
166 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000167 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
168 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000169 .name = "namedSetOfNULL"
170 },
171 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfREAL),
172 .tag = (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
173 .tag_mode = -1, /* IMPLICIT tag at current level */
174 .type = &asn_DEF_NamedSetOfREAL,
175 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000176 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
177 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000178 .name = "namedSetOfREAL"
179 },
180 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfEnums),
181 .tag = (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
182 .tag_mode = -1, /* IMPLICIT tag at current level */
183 .type = &asn_DEF_NamedSetOfEnums,
184 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000185 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
186 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000187 .name = "namedSetOfEnums"
188 },
189 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
190 .tag = (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
191 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000192 .type = &asn_DEF_SeqOfZuka,
Lev Walkinf5db6142005-02-24 22:38:43 +0000193 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000194 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
195 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000196 .name = "seqOfZuka"
197 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000198 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfChoice),
199 .tag = (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
200 .tag_mode = -1, /* IMPLICIT tag at current level */
201 .type = &asn_DEF_SetOfChoice,
202 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000203 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
204 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000205 .name = "setOfChoice"
206 },
207 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfChoice),
208 .tag = (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
209 .tag_mode = -1, /* IMPLICIT tag at current level */
210 .type = &asn_DEF_NamedSetOfChoice,
211 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000212 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
213 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000214 .name = "namedSetOfChoice"
215 },
Lev Walkin0ef9f142005-02-14 20:40:57 +0000216};
Lev Walkina7591b52014-10-12 18:37:35 -0700217static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700218 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence */
219 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
220 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceOf */
221 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* extensibleSet */
222 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSequence */
223 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence2 */
224 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL */
225 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfREAL */
226 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setOfEnums */
227 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* namedSetOfNULL */
228 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* namedSetOfREAL */
229 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* namedSetOfEnums */
230 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* seqOfZuka */
231 { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* setOfChoice */
232 { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* namedSetOfChoice */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000233};
Lev Walkin59b176e2005-11-26 11:25:14 +0000234static asn_CHOICE_specifics_t asn_SPC_PDU_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000235 sizeof(struct PDU),
236 offsetof(struct PDU, _asn_ctx),
237 offsetof(struct PDU, present),
238 sizeof(((struct PDU *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000239 asn_MAP_PDU_tag2el_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000240 15, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000241 .canonical_order = 0,
242 .ext_start = 15 /* Extensions start */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000243};
244asn_TYPE_descriptor_t asn_DEF_PDU = {
245 "PDU",
246 "PDU",
247 CHOICE_free,
248 CHOICE_print,
249 CHOICE_constraint,
250 CHOICE_decode_ber,
251 CHOICE_encode_der,
252 CHOICE_decode_xer,
253 CHOICE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000254 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700255 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000256 CHOICE_outmost_tag,
257 0, /* No effective tags (pointer) */
258 0, /* No effective tags (count) */
259 0, /* No tags (pointer) */
260 0, /* No tags (count) */
Lev Walkin59b176e2005-11-26 11:25:14 +0000261 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000262 asn_MBR_PDU_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000263 15, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000264 &asn_SPC_PDU_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000265};
266
267
268/*** <<< INCLUDES [Sequence] >>> ***/
269
270#include <INTEGER.h>
Lev Walkin0ef9f142005-02-14 20:40:57 +0000271#include <BIT_STRING.h>
272#include <UTF8String.h>
273#include <constr_SEQUENCE.h>
274
Lev Walkinc8285712005-03-04 22:18:20 +0000275/*** <<< FWD-DECLS [Sequence] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000276
Lev Walkinbf56d542005-03-04 23:50:56 +0000277struct Sequence;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000278
279/*** <<< TYPE-DECLS [Sequence] >>> ***/
280
Lev Walkin0ef9f142005-02-14 20:40:57 +0000281typedef struct Sequence {
282 INTEGER_t integer;
283 struct Sequence *sequence /* OPTIONAL */;
284 BIT_STRING_t *bits /* OPTIONAL */;
285 UTF8String_t string;
286
287 /* Context for parsing across buffer boundaries */
288 asn_struct_ctx_t _asn_ctx;
289} Sequence_t;
290
Lev Walkinc8285712005-03-04 22:18:20 +0000291/*** <<< FUNC-DECLS [Sequence] >>> ***/
292
293extern asn_TYPE_descriptor_t asn_DEF_Sequence;
294
295/*** <<< POST-INCLUDE [Sequence] >>> ***/
296
Lev Walkin22b5ed42006-09-13 02:51:20 +0000297#include "Sequence.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000298
Lev Walkin0ef9f142005-02-14 20:40:57 +0000299/*** <<< STAT-DEFS [Sequence] >>> ***/
300
Lev Walkine0272aa2005-03-04 11:26:08 +0000301static asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000302 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
303 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
304 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000305 .type = &asn_DEF_INTEGER,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000306 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000307 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
308 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000309 .name = "integer"
310 },
311 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
312 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
313 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000314 .type = &asn_DEF_Sequence,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000315 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000316 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
317 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000318 .name = "sequence"
319 },
320 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
321 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
322 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000323 .type = &asn_DEF_BIT_STRING,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000324 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000325 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
326 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000327 .name = "bits"
328 },
329 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
330 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
331 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000332 .type = &asn_DEF_UTF8String,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000333 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000334 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
335 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000336 .name = "string"
337 },
338};
Lev Walkina7591b52014-10-12 18:37:35 -0700339static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000340 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
341};
Lev Walkina7591b52014-10-12 18:37:35 -0700342static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700343 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
344 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence */
345 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits */
346 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000347};
Lev Walkin59b176e2005-11-26 11:25:14 +0000348static asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000349 sizeof(struct Sequence),
350 offsetof(struct Sequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000351 asn_MAP_Sequence_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000352 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000353 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000354 -1, /* Start extensions */
355 -1 /* Stop extensions */
356};
357asn_TYPE_descriptor_t asn_DEF_Sequence = {
358 "Sequence",
359 "Sequence",
360 SEQUENCE_free,
361 SEQUENCE_print,
362 SEQUENCE_constraint,
363 SEQUENCE_decode_ber,
364 SEQUENCE_encode_der,
365 SEQUENCE_decode_xer,
366 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000367 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700368 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000369 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000370 asn_DEF_Sequence_tags_1,
371 sizeof(asn_DEF_Sequence_tags_1)
372 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
373 asn_DEF_Sequence_tags_1, /* Same as above */
374 sizeof(asn_DEF_Sequence_tags_1)
375 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
376 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000377 asn_MBR_Sequence_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000378 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000379 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000380};
381
382
383/*** <<< INCLUDES [Set] >>> ***/
384
385#include <RELATIVE-OID.h>
386#include <OCTET_STRING.h>
387#include <constr_SET.h>
388
389/*** <<< DEPS [Set] >>> ***/
390
391
392/*
393 * Method of determining the components presence
394 */
395typedef enum Set_PR {
396 Set_PR_roid, /* Member roid is present */
397 Set_PR_opaque, /* Member opaque is present */
398} Set_PR;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000399
400/*** <<< TYPE-DECLS [Set] >>> ***/
401
Lev Walkin0ef9f142005-02-14 20:40:57 +0000402typedef struct Set {
403 RELATIVE_OID_t roid;
404 OCTET_STRING_t *opaque /* OPTIONAL */;
405
406 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
407 unsigned int _presence_map
408 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
409
410 /* Context for parsing across buffer boundaries */
411 asn_struct_ctx_t _asn_ctx;
412} Set_t;
413
Lev Walkinc8285712005-03-04 22:18:20 +0000414/*** <<< FUNC-DECLS [Set] >>> ***/
415
416extern asn_TYPE_descriptor_t asn_DEF_Set;
417
Lev Walkin0ef9f142005-02-14 20:40:57 +0000418/*** <<< STAT-DEFS [Set] >>> ***/
419
Lev Walkine0272aa2005-03-04 11:26:08 +0000420static asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000421 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
422 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
423 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000424 .type = &asn_DEF_RELATIVE_OID,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000425 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000426 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
427 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000428 .name = "roid"
429 },
430 { ATF_POINTER, 1, offsetof(struct Set, opaque),
431 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
432 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000433 .type = &asn_DEF_OCTET_STRING,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000434 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000435 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
436 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000437 .name = "opaque"
438 },
439};
Lev Walkina7591b52014-10-12 18:37:35 -0700440static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000441 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
442};
Lev Walkina7591b52014-10-12 18:37:35 -0700443static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700444 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */
445 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000446};
Lev Walkina7591b52014-10-12 18:37:35 -0700447static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000448 (1 << 7) | (0 << 6)
449};
Lev Walkin59b176e2005-11-26 11:25:14 +0000450static asn_SET_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000451 sizeof(struct Set),
452 offsetof(struct Set, _asn_ctx),
453 offsetof(struct Set, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000454 asn_MAP_Set_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000455 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000456 asn_MAP_Set_tag2el_1, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000457 2, /* Count of tags in the CXER map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000458 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700459 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000460};
461asn_TYPE_descriptor_t asn_DEF_Set = {
462 "Set",
463 "Set",
464 SET_free,
465 SET_print,
466 SET_constraint,
467 SET_decode_ber,
468 SET_encode_der,
469 SET_decode_xer,
470 SET_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000471 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700472 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000473 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000474 asn_DEF_Set_tags_1,
475 sizeof(asn_DEF_Set_tags_1)
476 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
477 asn_DEF_Set_tags_1, /* Same as above */
478 sizeof(asn_DEF_Set_tags_1)
479 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
480 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000481 asn_MBR_Set_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000482 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000483 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000484};
485
486
Lev Walkin843a2462005-02-18 16:30:26 +0000487/*** <<< INCLUDES [ExtensibleSet] >>> ***/
488
489#include <UTF8String.h>
Lev Walkinc92a7462005-03-10 11:20:47 +0000490#include <ENUMERATED.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000491#include <constr_SET.h>
492
493/*** <<< DEPS [ExtensibleSet] >>> ***/
494
495
496/*
497 * Method of determining the components presence
498 */
499typedef enum ExtensibleSet_PR {
500 ExtensibleSet_PR_string, /* Member string is present */
Lev Walkinc92a7462005-03-10 11:20:47 +0000501 ExtensibleSet_PR_enum, /* Member enum is present */
Lev Walkin843a2462005-02-18 16:30:26 +0000502} ExtensibleSet_PR;
Lev Walkinc92a7462005-03-10 11:20:47 +0000503typedef enum Enum {
504 enum_b = 0,
505 enum_a = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000506} e_enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000507
508/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
509
Lev Walkin843a2462005-02-18 16:30:26 +0000510typedef struct ExtensibleSet {
511 UTF8String_t *string /* OPTIONAL */;
512 /*
513 * This type is extensible,
514 * possible extensions are below.
515 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000516 ENUMERATED_t *Enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000517
518 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
519 unsigned int _presence_map
Lev Walkinc92a7462005-03-10 11:20:47 +0000520 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin843a2462005-02-18 16:30:26 +0000521
522 /* Context for parsing across buffer boundaries */
523 asn_struct_ctx_t _asn_ctx;
524} ExtensibleSet_t;
525
Lev Walkinc8285712005-03-04 22:18:20 +0000526/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/
527
Lev Walkinc92a7462005-03-10 11:20:47 +0000528/* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000529extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
530
Lev Walkinc92a7462005-03-10 11:20:47 +0000531/*** <<< CODE [ExtensibleSet] >>> ***/
532
533static int
534enum_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000535 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinc92a7462005-03-10 11:20:47 +0000536 /* Replace with underlying type checker */
537 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +0000538 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkinc92a7462005-03-10 11:20:47 +0000539}
540
541/*
542 * This type is implemented using ENUMERATED,
543 * so here we adjust the DEF accordingly.
544 */
545static void
546enum_4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
547 td->free_struct = asn_DEF_ENUMERATED.free_struct;
548 td->print_struct = asn_DEF_ENUMERATED.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -0800549 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
Lev Walkinc92a7462005-03-10 11:20:47 +0000550 td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
551 td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
552 td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
553 td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000554 td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000555 td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -0700556 td->oer_decoder = asn_DEF_ENUMERATED.oer_decoder;
557 td->oer_encoder = asn_DEF_ENUMERATED.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +0000558 if(!td->per_constraints)
559 td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
Lev Walkinc92a7462005-03-10 11:20:47 +0000560 td->elements = asn_DEF_ENUMERATED.elements;
561 td->elements_count = asn_DEF_ENUMERATED.elements_count;
Lev Walkin29a82192005-03-29 19:05:37 +0000562 /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
Lev Walkinc92a7462005-03-10 11:20:47 +0000563}
564
565static void
566enum_4_free(asn_TYPE_descriptor_t *td,
567 void *struct_ptr, int contents_only) {
568 enum_4_inherit_TYPE_descriptor(td);
569 td->free_struct(td, struct_ptr, contents_only);
570}
571
572static int
573enum_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
574 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
575 enum_4_inherit_TYPE_descriptor(td);
576 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
577}
578
579static asn_dec_rval_t
580enum_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Lev Walkin3ebc65a2005-03-17 21:57:19 +0000581 void **structure, const void *bufptr, size_t size, int tag_mode) {
Lev Walkinc92a7462005-03-10 11:20:47 +0000582 enum_4_inherit_TYPE_descriptor(td);
583 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
584}
585
586static asn_enc_rval_t
587enum_4_encode_der(asn_TYPE_descriptor_t *td,
588 void *structure, int tag_mode, ber_tlv_tag_t tag,
589 asn_app_consume_bytes_f *cb, void *app_key) {
590 enum_4_inherit_TYPE_descriptor(td);
591 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
592}
593
594static asn_dec_rval_t
595enum_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Lev Walkin3ebc65a2005-03-17 21:57:19 +0000596 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
Lev Walkinc92a7462005-03-10 11:20:47 +0000597 enum_4_inherit_TYPE_descriptor(td);
598 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
599}
600
601static asn_enc_rval_t
602enum_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
603 int ilevel, enum xer_encoder_flags_e flags,
604 asn_app_consume_bytes_f *cb, void *app_key) {
605 enum_4_inherit_TYPE_descriptor(td);
606 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
607}
608
609
Lev Walkin843a2462005-02-18 16:30:26 +0000610/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
611
Lev Walkina7591b52014-10-12 18:37:35 -0700612static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000613 { 0, 1, "b" },
614 { 1, 1, "a" }
615};
Lev Walkina7591b52014-10-12 18:37:35 -0700616static const unsigned int asn_MAP_enum_enum2value_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000617 1, /* a(1) */
618 0 /* b(0) */
619};
johvike70c4072017-05-09 11:06:12 +0200620static asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000621 asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */
622 asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */
Lev Walkinc92a7462005-03-10 11:20:47 +0000623 2, /* Number of elements in the maps */
624 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000625 1, /* Strict enumeration */
626 0, /* Native long size */
627 0
Lev Walkinc92a7462005-03-10 11:20:47 +0000628};
Lev Walkina7591b52014-10-12 18:37:35 -0700629static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000630 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
631 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
632};
633static /* Use -fall-defs-global to expose */
634asn_TYPE_descriptor_t asn_DEF_enum_4 = {
635 "enum",
636 "enum",
637 enum_4_free,
638 enum_4_print,
639 enum_4_constraint,
640 enum_4_decode_ber,
641 enum_4_encode_der,
642 enum_4_decode_xer,
643 enum_4_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000644 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700645 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinc92a7462005-03-10 11:20:47 +0000646 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000647 asn_DEF_enum_tags_4,
648 sizeof(asn_DEF_enum_tags_4)
649 /sizeof(asn_DEF_enum_tags_4[0]) - 1, /* 1 */
650 asn_DEF_enum_tags_4, /* Same as above */
651 sizeof(asn_DEF_enum_tags_4)
652 /sizeof(asn_DEF_enum_tags_4[0]), /* 2 */
653 0, /* No PER visible constraints */
Lev Walkinc92a7462005-03-10 11:20:47 +0000654 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000655 &asn_SPC_enum_specs_4 /* Additional specs */
Lev Walkinc92a7462005-03-10 11:20:47 +0000656};
657
Lev Walkine0272aa2005-03-04 11:26:08 +0000658static asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000659 { ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000660 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
661 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000662 .type = &asn_DEF_UTF8String,
Lev Walkin843a2462005-02-18 16:30:26 +0000663 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000664 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
665 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000666 .name = "string"
667 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000668 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
Lev Walkinc92a7462005-03-10 11:20:47 +0000669 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
670 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000671 .type = &asn_DEF_enum_4,
Lev Walkinc92a7462005-03-10 11:20:47 +0000672 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000673 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
674 .default_value = 0,
Lev Walkinc92a7462005-03-10 11:20:47 +0000675 .name = "enum"
676 },
Lev Walkin843a2462005-02-18 16:30:26 +0000677};
Lev Walkina7591b52014-10-12 18:37:35 -0700678static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000679 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
680};
Lev Walkina7591b52014-10-12 18:37:35 -0700681static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700682 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
683 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */
Lev Walkin843a2462005-02-18 16:30:26 +0000684};
Lev Walkina7591b52014-10-12 18:37:35 -0700685static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000686 (0 << 7) | (0 << 6)
Lev Walkin843a2462005-02-18 16:30:26 +0000687};
Lev Walkin59b176e2005-11-26 11:25:14 +0000688static asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000689 sizeof(struct ExtensibleSet),
690 offsetof(struct ExtensibleSet, _asn_ctx),
691 offsetof(struct ExtensibleSet, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000692 asn_MAP_ExtensibleSet_tag2el_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000693 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000694 asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */
Lev Walkinc92a7462005-03-10 11:20:47 +0000695 2, /* Count of tags in the CXER map */
Lev Walkin843a2462005-02-18 16:30:26 +0000696 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700697 (const unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */
Lev Walkin843a2462005-02-18 16:30:26 +0000698};
699asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
700 "ExtensibleSet",
701 "ExtensibleSet",
702 SET_free,
703 SET_print,
704 SET_constraint,
705 SET_decode_ber,
706 SET_encode_der,
707 SET_decode_xer,
708 SET_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000709 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700710 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000711 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000712 asn_DEF_ExtensibleSet_tags_1,
713 sizeof(asn_DEF_ExtensibleSet_tags_1)
714 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
715 asn_DEF_ExtensibleSet_tags_1, /* Same as above */
716 sizeof(asn_DEF_ExtensibleSet_tags_1)
717 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
718 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000719 asn_MBR_ExtensibleSet_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000720 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000721 &asn_SPC_ExtensibleSet_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000722};
723
724
725/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
726
727#include <UTF8String.h>
728#include <INTEGER.h>
Lev Walkin15750402005-07-03 05:27:19 +0000729#include <GeneralizedTime.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000730#include <constr_SEQUENCE.h>
731
Lev Walkin843a2462005-02-18 16:30:26 +0000732/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
733
Lev Walkin843a2462005-02-18 16:30:26 +0000734typedef struct ExtensibleSequence {
735 UTF8String_t *string /* OPTIONAL */;
736 /*
737 * This type is extensible,
738 * possible extensions are below.
739 */
740 INTEGER_t *integer /* OPTIONAL */;
Lev Walkin15750402005-07-03 05:27:19 +0000741 GeneralizedTime_t *gtime;
Lev Walkin843a2462005-02-18 16:30:26 +0000742
743 /* Context for parsing across buffer boundaries */
744 asn_struct_ctx_t _asn_ctx;
745} ExtensibleSequence_t;
746
Lev Walkinc8285712005-03-04 22:18:20 +0000747/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/
748
749extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
750
Lev Walkin843a2462005-02-18 16:30:26 +0000751/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
752
Lev Walkine0272aa2005-03-04 11:26:08 +0000753static asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000754 { ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000755 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
756 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000757 .type = &asn_DEF_UTF8String,
Lev Walkin843a2462005-02-18 16:30:26 +0000758 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000759 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
760 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000761 .name = "string"
762 },
Lev Walkin15750402005-07-03 05:27:19 +0000763 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
Lev Walkin843a2462005-02-18 16:30:26 +0000764 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
765 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000766 .type = &asn_DEF_INTEGER,
Lev Walkin843a2462005-02-18 16:30:26 +0000767 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000768 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
769 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000770 .name = "integer"
771 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000772 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
Lev Walkin15750402005-07-03 05:27:19 +0000773 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
774 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000775 .type = &asn_DEF_GeneralizedTime,
Lev Walkin15750402005-07-03 05:27:19 +0000776 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000777 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
778 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000779 .name = "gtime"
780 },
Lev Walkin843a2462005-02-18 16:30:26 +0000781};
Lev Walkina7591b52014-10-12 18:37:35 -0700782static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000783 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
784};
Lev Walkina7591b52014-10-12 18:37:35 -0700785static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700786 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
787 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer */
788 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime */
Lev Walkin843a2462005-02-18 16:30:26 +0000789};
Lev Walkin59b176e2005-11-26 11:25:14 +0000790static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000791 sizeof(struct ExtensibleSequence),
792 offsetof(struct ExtensibleSequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000793 asn_MAP_ExtensibleSequence_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000794 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000795 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin843a2462005-02-18 16:30:26 +0000796 0, /* Start extensions */
Lev Walkin15750402005-07-03 05:27:19 +0000797 4 /* Stop extensions */
Lev Walkin843a2462005-02-18 16:30:26 +0000798};
799asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
800 "ExtensibleSequence",
801 "ExtensibleSequence",
802 SEQUENCE_free,
803 SEQUENCE_print,
804 SEQUENCE_constraint,
805 SEQUENCE_decode_ber,
806 SEQUENCE_encode_der,
807 SEQUENCE_decode_xer,
808 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000809 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700810 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000811 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000812 asn_DEF_ExtensibleSequence_tags_1,
813 sizeof(asn_DEF_ExtensibleSequence_tags_1)
814 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
815 asn_DEF_ExtensibleSequence_tags_1, /* Same as above */
816 sizeof(asn_DEF_ExtensibleSequence_tags_1)
817 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
818 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000819 asn_MBR_ExtensibleSequence_1,
Lev Walkin15750402005-07-03 05:27:19 +0000820 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000821 &asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000822};
823
824
Lev Walkin15750402005-07-03 05:27:19 +0000825/*** <<< INCLUDES [ExtensibleSequence2] >>> ***/
826
827#include <UTF8String.h>
828#include <INTEGER.h>
829#include <constr_SEQUENCE.h>
830
831/*** <<< TYPE-DECLS [ExtensibleSequence2] >>> ***/
832
833typedef struct ExtensibleSequence2 {
834 UTF8String_t *string /* OPTIONAL */;
835 /*
836 * This type is extensible,
837 * possible extensions are below.
838 */
839 INTEGER_t *integer /* OPTIONAL */;
840
841 /* Context for parsing across buffer boundaries */
842 asn_struct_ctx_t _asn_ctx;
843} ExtensibleSequence2_t;
844
845/*** <<< FUNC-DECLS [ExtensibleSequence2] >>> ***/
846
847extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2;
848
849/*** <<< STAT-DEFS [ExtensibleSequence2] >>> ***/
850
851static asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
852 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
853 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
854 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000855 .type = &asn_DEF_UTF8String,
Lev Walkin15750402005-07-03 05:27:19 +0000856 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000857 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
858 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000859 .name = "string"
860 },
861 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
862 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
863 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000864 .type = &asn_DEF_INTEGER,
Lev Walkin15750402005-07-03 05:27:19 +0000865 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000866 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
867 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000868 .name = "integer"
869 },
870};
Lev Walkina7591b52014-10-12 18:37:35 -0700871static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000872 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
873};
Lev Walkina7591b52014-10-12 18:37:35 -0700874static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700875 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
876 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */
Lev Walkin15750402005-07-03 05:27:19 +0000877};
Lev Walkin59b176e2005-11-26 11:25:14 +0000878static asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = {
Lev Walkin15750402005-07-03 05:27:19 +0000879 sizeof(struct ExtensibleSequence2),
880 offsetof(struct ExtensibleSequence2, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000881 asn_MAP_ExtensibleSequence2_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000882 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000883 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin15750402005-07-03 05:27:19 +0000884 0, /* Start extensions */
885 3 /* Stop extensions */
886};
887asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2 = {
888 "ExtensibleSequence2",
889 "ExtensibleSequence2",
890 SEQUENCE_free,
891 SEQUENCE_print,
892 SEQUENCE_constraint,
893 SEQUENCE_decode_ber,
894 SEQUENCE_encode_der,
895 SEQUENCE_decode_xer,
896 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000897 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700898 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin15750402005-07-03 05:27:19 +0000899 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000900 asn_DEF_ExtensibleSequence2_tags_1,
901 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
902 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
903 asn_DEF_ExtensibleSequence2_tags_1, /* Same as above */
904 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
905 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
906 0, /* No PER visible constraints */
Lev Walkin15750402005-07-03 05:27:19 +0000907 asn_MBR_ExtensibleSequence2_1,
908 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000909 &asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */
Lev Walkin15750402005-07-03 05:27:19 +0000910};
911
912
Lev Walkinf5db6142005-02-24 22:38:43 +0000913/*** <<< INCLUDES [SetOfNULL] >>> ***/
914
915#include <NULL.h>
916#include <asn_SET_OF.h>
917#include <constr_SET_OF.h>
918
Lev Walkinf5db6142005-02-24 22:38:43 +0000919/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
920
Lev Walkinf5db6142005-02-24 22:38:43 +0000921typedef struct SetOfNULL {
922 A_SET_OF(NULL_t) list;
923
924 /* Context for parsing across buffer boundaries */
925 asn_struct_ctx_t _asn_ctx;
926} SetOfNULL_t;
927
Lev Walkinc8285712005-03-04 22:18:20 +0000928/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/
929
930extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
931
Lev Walkinf5db6142005-02-24 22:38:43 +0000932/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
933
Lev Walkine0272aa2005-03-04 11:26:08 +0000934static asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000935 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000936 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
937 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000938 .type = &asn_DEF_NULL,
Lev Walkinf5db6142005-02-24 22:38:43 +0000939 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000940 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
941 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000942 .name = ""
943 },
944};
Lev Walkina7591b52014-10-12 18:37:35 -0700945static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000946 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
947};
Lev Walkin59b176e2005-11-26 11:25:14 +0000948static asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000949 sizeof(struct SetOfNULL),
950 offsetof(struct SetOfNULL, _asn_ctx),
951 1, /* XER encoding is XMLValueList */
952};
953asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
954 "SetOfNULL",
955 "SetOfNULL",
956 SET_OF_free,
957 SET_OF_print,
958 SET_OF_constraint,
959 SET_OF_decode_ber,
960 SET_OF_encode_der,
961 SET_OF_decode_xer,
962 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000963 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700964 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +0000965 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000966 asn_DEF_SetOfNULL_tags_1,
967 sizeof(asn_DEF_SetOfNULL_tags_1)
968 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
969 asn_DEF_SetOfNULL_tags_1, /* Same as above */
970 sizeof(asn_DEF_SetOfNULL_tags_1)
971 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
972 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000973 asn_MBR_SetOfNULL_1,
Lev Walkinf5db6142005-02-24 22:38:43 +0000974 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000975 &asn_SPC_SetOfNULL_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +0000976};
977
978
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000979/*** <<< INCLUDES [SetOfREAL] >>> ***/
980
981#include <REAL.h>
982#include <asn_SET_OF.h>
983#include <constr_SET_OF.h>
984
985/*** <<< TYPE-DECLS [SetOfREAL] >>> ***/
986
987typedef struct SetOfREAL {
988 A_SET_OF(REAL_t) list;
989
990 /* Context for parsing across buffer boundaries */
991 asn_struct_ctx_t _asn_ctx;
992} SetOfREAL_t;
993
994/*** <<< FUNC-DECLS [SetOfREAL] >>> ***/
995
996extern asn_TYPE_descriptor_t asn_DEF_SetOfREAL;
997
998/*** <<< STAT-DEFS [SetOfREAL] >>> ***/
999
1000static asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = {
1001 { ATF_POINTER, 0, 0,
1002 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1003 .tag_mode = 0,
1004 .type = &asn_DEF_REAL,
1005 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001006 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1007 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001008 .name = ""
1009 },
1010};
Lev Walkina7591b52014-10-12 18:37:35 -07001011static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001012 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1013};
Lev Walkin59b176e2005-11-26 11:25:14 +00001014static asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001015 sizeof(struct SetOfREAL),
1016 offsetof(struct SetOfREAL, _asn_ctx),
1017 0, /* XER encoding is XMLDelimitedItemList */
1018};
1019asn_TYPE_descriptor_t asn_DEF_SetOfREAL = {
1020 "SetOfREAL",
1021 "SetOfREAL",
1022 SET_OF_free,
1023 SET_OF_print,
1024 SET_OF_constraint,
1025 SET_OF_decode_ber,
1026 SET_OF_encode_der,
1027 SET_OF_decode_xer,
1028 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001029 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001030 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001031 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001032 asn_DEF_SetOfREAL_tags_1,
1033 sizeof(asn_DEF_SetOfREAL_tags_1)
1034 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
1035 asn_DEF_SetOfREAL_tags_1, /* Same as above */
1036 sizeof(asn_DEF_SetOfREAL_tags_1)
1037 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
1038 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001039 asn_MBR_SetOfREAL_1,
1040 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001041 &asn_SPC_SetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001042};
1043
1044
Lev Walkinf5db6142005-02-24 22:38:43 +00001045/*** <<< INCLUDES [SetOfEnums] >>> ***/
1046
1047#include <ENUMERATED.h>
1048#include <asn_SET_OF.h>
1049#include <constr_SET_OF.h>
1050
1051/*** <<< DEPS [SetOfEnums] >>> ***/
1052
Lev Walkine0272aa2005-03-04 11:26:08 +00001053typedef enum Member {
1054 Member_one = 0,
1055 Member_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001056} e_Member;
Lev Walkinf5db6142005-02-24 22:38:43 +00001057
1058/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
1059
Lev Walkinf5db6142005-02-24 22:38:43 +00001060typedef struct SetOfEnums {
1061 A_SET_OF(ENUMERATED_t) list;
1062
1063 /* Context for parsing across buffer boundaries */
1064 asn_struct_ctx_t _asn_ctx;
1065} SetOfEnums_t;
1066
Lev Walkinb47df092005-02-25 08:35:54 +00001067/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
1068
Lev Walkine0272aa2005-03-04 11:26:08 +00001069/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +00001070extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
Lev Walkinb47df092005-02-25 08:35:54 +00001071
1072/*** <<< CODE [SetOfEnums] >>> ***/
1073
1074static int
Lev Walkine0272aa2005-03-04 11:26:08 +00001075Member_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001076 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinb47df092005-02-25 08:35:54 +00001077 /* Replace with underlying type checker */
1078 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +00001079 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkinb47df092005-02-25 08:35:54 +00001080}
1081
1082/*
1083 * This type is implemented using ENUMERATED,
1084 * so here we adjust the DEF accordingly.
1085 */
1086static void
Lev Walkine0272aa2005-03-04 11:26:08 +00001087Member_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Lev Walkinb47df092005-02-25 08:35:54 +00001088 td->free_struct = asn_DEF_ENUMERATED.free_struct;
1089 td->print_struct = asn_DEF_ENUMERATED.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001090 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
Lev Walkinb47df092005-02-25 08:35:54 +00001091 td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
1092 td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
1093 td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
1094 td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001095 td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001096 td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001097 td->oer_decoder = asn_DEF_ENUMERATED.oer_decoder;
1098 td->oer_encoder = asn_DEF_ENUMERATED.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001099 if(!td->per_constraints)
1100 td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
Lev Walkinb47df092005-02-25 08:35:54 +00001101 td->elements = asn_DEF_ENUMERATED.elements;
1102 td->elements_count = asn_DEF_ENUMERATED.elements_count;
Lev Walkin29a82192005-03-29 19:05:37 +00001103 /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
Lev Walkinb47df092005-02-25 08:35:54 +00001104}
1105
1106static void
Lev Walkine0272aa2005-03-04 11:26:08 +00001107Member_2_free(asn_TYPE_descriptor_t *td,
Lev Walkinb47df092005-02-25 08:35:54 +00001108 void *struct_ptr, int contents_only) {
Lev Walkine0272aa2005-03-04 11:26:08 +00001109 Member_2_inherit_TYPE_descriptor(td);
Lev Walkinb47df092005-02-25 08:35:54 +00001110 td->free_struct(td, struct_ptr, contents_only);
1111}
1112
1113static int
Lev Walkine0272aa2005-03-04 11:26:08 +00001114Member_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Lev Walkinb47df092005-02-25 08:35:54 +00001115 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Lev Walkine0272aa2005-03-04 11:26:08 +00001116 Member_2_inherit_TYPE_descriptor(td);
Lev Walkinb47df092005-02-25 08:35:54 +00001117 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1118}
1119
1120static asn_dec_rval_t
Lev Walkine0272aa2005-03-04 11:26:08 +00001121Member_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Lev Walkin3ebc65a2005-03-17 21:57:19 +00001122 void **structure, const void *bufptr, size_t size, int tag_mode) {
Lev Walkine0272aa2005-03-04 11:26:08 +00001123 Member_2_inherit_TYPE_descriptor(td);
Lev Walkinb47df092005-02-25 08:35:54 +00001124 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1125}
1126
1127static asn_enc_rval_t
Lev Walkine0272aa2005-03-04 11:26:08 +00001128Member_2_encode_der(asn_TYPE_descriptor_t *td,
Lev Walkinb47df092005-02-25 08:35:54 +00001129 void *structure, int tag_mode, ber_tlv_tag_t tag,
1130 asn_app_consume_bytes_f *cb, void *app_key) {
Lev Walkine0272aa2005-03-04 11:26:08 +00001131 Member_2_inherit_TYPE_descriptor(td);
Lev Walkinb47df092005-02-25 08:35:54 +00001132 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1133}
1134
1135static asn_dec_rval_t
Lev Walkine0272aa2005-03-04 11:26:08 +00001136Member_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Lev Walkin3ebc65a2005-03-17 21:57:19 +00001137 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
Lev Walkine0272aa2005-03-04 11:26:08 +00001138 Member_2_inherit_TYPE_descriptor(td);
Lev Walkinb47df092005-02-25 08:35:54 +00001139 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1140}
1141
1142static asn_enc_rval_t
Lev Walkine0272aa2005-03-04 11:26:08 +00001143Member_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Lev Walkinb47df092005-02-25 08:35:54 +00001144 int ilevel, enum xer_encoder_flags_e flags,
1145 asn_app_consume_bytes_f *cb, void *app_key) {
Lev Walkine0272aa2005-03-04 11:26:08 +00001146 Member_2_inherit_TYPE_descriptor(td);
Lev Walkinb47df092005-02-25 08:35:54 +00001147 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1148}
1149
1150
Lev Walkinf5db6142005-02-24 22:38:43 +00001151/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
1152
Lev Walkina7591b52014-10-12 18:37:35 -07001153static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001154 { 0, 3, "one" },
1155 { 1, 7, "oneMore" }
1156};
Lev Walkina7591b52014-10-12 18:37:35 -07001157static const unsigned int asn_MAP_Member_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001158 0, /* one(0) */
1159 1 /* oneMore(1) */
Lev Walkinb47df092005-02-25 08:35:54 +00001160};
johvike70c4072017-05-09 11:06:12 +02001161static asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001162 asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */
1163 asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +00001164 2, /* Number of elements in the maps */
Lev Walkin295e2452005-02-25 11:47:59 +00001165 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001166 1, /* Strict enumeration */
1167 0, /* Native long size */
1168 0
Lev Walkinb47df092005-02-25 08:35:54 +00001169};
Lev Walkina7591b52014-10-12 18:37:35 -07001170static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkinb47df092005-02-25 08:35:54 +00001171 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1172};
1173static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +00001174asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001175 "ENUMERATED",
1176 "ENUMERATED",
Lev Walkine0272aa2005-03-04 11:26:08 +00001177 Member_2_free,
1178 Member_2_print,
1179 Member_2_constraint,
1180 Member_2_decode_ber,
1181 Member_2_encode_der,
1182 Member_2_decode_xer,
1183 Member_2_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001184 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001185 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb47df092005-02-25 08:35:54 +00001186 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001187 asn_DEF_Member_tags_2,
1188 sizeof(asn_DEF_Member_tags_2)
1189 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
1190 asn_DEF_Member_tags_2, /* Same as above */
1191 sizeof(asn_DEF_Member_tags_2)
1192 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
1193 0, /* No PER visible constraints */
Lev Walkinb47df092005-02-25 08:35:54 +00001194 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001195 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkinb47df092005-02-25 08:35:54 +00001196};
1197
Lev Walkine0272aa2005-03-04 11:26:08 +00001198static asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001199 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001200 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1201 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001202 .type = &asn_DEF_Member_2,
Lev Walkinf5db6142005-02-24 22:38:43 +00001203 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001204 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1205 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001206 .name = ""
1207 },
1208};
Lev Walkina7591b52014-10-12 18:37:35 -07001209static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001210 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1211};
Lev Walkin59b176e2005-11-26 11:25:14 +00001212static asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001213 sizeof(struct SetOfEnums),
1214 offsetof(struct SetOfEnums, _asn_ctx),
Lev Walkinb47df092005-02-25 08:35:54 +00001215 1, /* XER encoding is XMLValueList */
Lev Walkinf5db6142005-02-24 22:38:43 +00001216};
1217asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
1218 "SetOfEnums",
1219 "SetOfEnums",
1220 SET_OF_free,
1221 SET_OF_print,
1222 SET_OF_constraint,
1223 SET_OF_decode_ber,
1224 SET_OF_encode_der,
1225 SET_OF_decode_xer,
1226 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001227 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001228 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001229 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001230 asn_DEF_SetOfEnums_tags_1,
1231 sizeof(asn_DEF_SetOfEnums_tags_1)
1232 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
1233 asn_DEF_SetOfEnums_tags_1, /* Same as above */
1234 sizeof(asn_DEF_SetOfEnums_tags_1)
1235 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
1236 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001237 asn_MBR_SetOfEnums_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001238 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001239 &asn_SPC_SetOfEnums_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001240};
1241
1242
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001243/*** <<< INCLUDES [NamedSetOfNULL] >>> ***/
1244
1245#include <NULL.h>
1246#include <asn_SET_OF.h>
1247#include <constr_SET_OF.h>
1248
1249/*** <<< TYPE-DECLS [NamedSetOfNULL] >>> ***/
1250
1251typedef struct NamedSetOfNULL {
1252 A_SET_OF(NULL_t) list;
1253
1254 /* Context for parsing across buffer boundaries */
1255 asn_struct_ctx_t _asn_ctx;
1256} NamedSetOfNULL_t;
1257
1258/*** <<< FUNC-DECLS [NamedSetOfNULL] >>> ***/
1259
1260extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL;
1261
1262/*** <<< STAT-DEFS [NamedSetOfNULL] >>> ***/
1263
1264static asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = {
1265 { ATF_POINTER, 0, 0,
1266 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1267 .tag_mode = 0,
1268 .type = &asn_DEF_NULL,
1269 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001270 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1271 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001272 .name = "y"
1273 },
1274};
Lev Walkina7591b52014-10-12 18:37:35 -07001275static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001276 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1277};
Lev Walkin59b176e2005-11-26 11:25:14 +00001278static asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001279 sizeof(struct NamedSetOfNULL),
1280 offsetof(struct NamedSetOfNULL, _asn_ctx),
1281 1, /* XER encoding is XMLValueList */
1282};
1283asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL = {
1284 "NamedSetOfNULL",
1285 "NamedSetOfNULL",
1286 SET_OF_free,
1287 SET_OF_print,
1288 SET_OF_constraint,
1289 SET_OF_decode_ber,
1290 SET_OF_encode_der,
1291 SET_OF_decode_xer,
1292 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001293 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001294 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001295 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001296 asn_DEF_NamedSetOfNULL_tags_1,
1297 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1298 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
1299 asn_DEF_NamedSetOfNULL_tags_1, /* Same as above */
1300 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1301 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
1302 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001303 asn_MBR_NamedSetOfNULL_1,
1304 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001305 &asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001306};
1307
1308
1309/*** <<< INCLUDES [NamedSetOfREAL] >>> ***/
1310
1311#include <REAL.h>
1312#include <asn_SET_OF.h>
1313#include <constr_SET_OF.h>
1314
1315/*** <<< TYPE-DECLS [NamedSetOfREAL] >>> ***/
1316
1317typedef struct NamedSetOfREAL {
1318 A_SET_OF(REAL_t) list;
1319
1320 /* Context for parsing across buffer boundaries */
1321 asn_struct_ctx_t _asn_ctx;
1322} NamedSetOfREAL_t;
1323
1324/*** <<< FUNC-DECLS [NamedSetOfREAL] >>> ***/
1325
1326extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL;
1327
1328/*** <<< STAT-DEFS [NamedSetOfREAL] >>> ***/
1329
1330static asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = {
1331 { ATF_POINTER, 0, 0,
1332 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1333 .tag_mode = 0,
1334 .type = &asn_DEF_REAL,
1335 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001336 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1337 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001338 .name = "name"
1339 },
1340};
Lev Walkina7591b52014-10-12 18:37:35 -07001341static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001342 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1343};
Lev Walkin59b176e2005-11-26 11:25:14 +00001344static asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001345 sizeof(struct NamedSetOfREAL),
1346 offsetof(struct NamedSetOfREAL, _asn_ctx),
1347 0, /* XER encoding is XMLDelimitedItemList */
1348};
1349asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL = {
1350 "NamedSetOfREAL",
1351 "NamedSetOfREAL",
1352 SET_OF_free,
1353 SET_OF_print,
1354 SET_OF_constraint,
1355 SET_OF_decode_ber,
1356 SET_OF_encode_der,
1357 SET_OF_decode_xer,
1358 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001359 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001360 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001361 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001362 asn_DEF_NamedSetOfREAL_tags_1,
1363 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1364 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
1365 asn_DEF_NamedSetOfREAL_tags_1, /* Same as above */
1366 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1367 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
1368 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001369 asn_MBR_NamedSetOfREAL_1,
1370 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001371 &asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001372};
1373
1374
1375/*** <<< INCLUDES [NamedSetOfEnums] >>> ***/
1376
1377#include <ENUMERATED.h>
1378#include <asn_SET_OF.h>
1379#include <constr_SET_OF.h>
1380
1381/*** <<< DEPS [NamedSetOfEnums] >>> ***/
1382
1383typedef enum name {
1384 name_one = 0,
1385 name_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001386} e_name;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001387
1388/*** <<< TYPE-DECLS [NamedSetOfEnums] >>> ***/
1389
1390typedef struct NamedSetOfEnums {
1391 A_SET_OF(ENUMERATED_t) list;
1392
1393 /* Context for parsing across buffer boundaries */
1394 asn_struct_ctx_t _asn_ctx;
1395} NamedSetOfEnums_t;
1396
1397/*** <<< FUNC-DECLS [NamedSetOfEnums] >>> ***/
1398
1399/* extern asn_TYPE_descriptor_t asn_DEF_name_2; // (Use -fall-defs-global to expose) */
1400extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums;
1401
1402/*** <<< CODE [NamedSetOfEnums] >>> ***/
1403
1404static int
1405name_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001406 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001407 /* Replace with underlying type checker */
1408 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +00001409 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001410}
1411
1412/*
1413 * This type is implemented using ENUMERATED,
1414 * so here we adjust the DEF accordingly.
1415 */
1416static void
1417name_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
1418 td->free_struct = asn_DEF_ENUMERATED.free_struct;
1419 td->print_struct = asn_DEF_ENUMERATED.print_struct;
Lev Walkin6169b8d2013-12-07 11:02:44 -08001420 td->check_constraints = asn_DEF_ENUMERATED.check_constraints;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001421 td->ber_decoder = asn_DEF_ENUMERATED.ber_decoder;
1422 td->der_encoder = asn_DEF_ENUMERATED.der_encoder;
1423 td->xer_decoder = asn_DEF_ENUMERATED.xer_decoder;
1424 td->xer_encoder = asn_DEF_ENUMERATED.xer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001425 td->uper_decoder = asn_DEF_ENUMERATED.uper_decoder;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001426 td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
Lev Walkinba68c912017-07-06 07:52:39 -07001427 td->oer_decoder = asn_DEF_ENUMERATED.oer_decoder;
1428 td->oer_encoder = asn_DEF_ENUMERATED.oer_encoder;
Lev Walkin59b176e2005-11-26 11:25:14 +00001429 if(!td->per_constraints)
1430 td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001431 td->elements = asn_DEF_ENUMERATED.elements;
1432 td->elements_count = asn_DEF_ENUMERATED.elements_count;
1433 /* td->specifics = asn_DEF_ENUMERATED.specifics; // Defined explicitly */
1434}
1435
1436static void
1437name_2_free(asn_TYPE_descriptor_t *td,
1438 void *struct_ptr, int contents_only) {
1439 name_2_inherit_TYPE_descriptor(td);
1440 td->free_struct(td, struct_ptr, contents_only);
1441}
1442
1443static int
1444name_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
1445 int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
1446 name_2_inherit_TYPE_descriptor(td);
1447 return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
1448}
1449
1450static asn_dec_rval_t
1451name_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1452 void **structure, const void *bufptr, size_t size, int tag_mode) {
1453 name_2_inherit_TYPE_descriptor(td);
1454 return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
1455}
1456
1457static asn_enc_rval_t
1458name_2_encode_der(asn_TYPE_descriptor_t *td,
1459 void *structure, int tag_mode, ber_tlv_tag_t tag,
1460 asn_app_consume_bytes_f *cb, void *app_key) {
1461 name_2_inherit_TYPE_descriptor(td);
1462 return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
1463}
1464
1465static asn_dec_rval_t
1466name_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
1467 void **structure, const char *opt_mname, const void *bufptr, size_t size) {
1468 name_2_inherit_TYPE_descriptor(td);
1469 return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
1470}
1471
1472static asn_enc_rval_t
1473name_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
1474 int ilevel, enum xer_encoder_flags_e flags,
1475 asn_app_consume_bytes_f *cb, void *app_key) {
1476 name_2_inherit_TYPE_descriptor(td);
1477 return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
1478}
1479
1480
1481/*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/
1482
Lev Walkina7591b52014-10-12 18:37:35 -07001483static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001484 { 0, 3, "one" },
1485 { 1, 7, "oneMore" }
1486};
Lev Walkina7591b52014-10-12 18:37:35 -07001487static const unsigned int asn_MAP_name_enum2value_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001488 0, /* one(0) */
1489 1 /* oneMore(1) */
1490};
johvike70c4072017-05-09 11:06:12 +02001491static asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001492 asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */
1493 asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001494 2, /* Number of elements in the maps */
1495 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001496 1, /* Strict enumeration */
1497 0, /* Native long size */
1498 0
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001499};
Lev Walkina7591b52014-10-12 18:37:35 -07001500static const ber_tlv_tag_t asn_DEF_name_tags_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001501 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1502};
1503static /* Use -fall-defs-global to expose */
1504asn_TYPE_descriptor_t asn_DEF_name_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001505 "ENUMERATED",
1506 "ENUMERATED",
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001507 name_2_free,
1508 name_2_print,
1509 name_2_constraint,
1510 name_2_decode_ber,
1511 name_2_encode_der,
1512 name_2_decode_xer,
1513 name_2_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001514 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001515 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001516 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001517 asn_DEF_name_tags_2,
1518 sizeof(asn_DEF_name_tags_2)
1519 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
1520 asn_DEF_name_tags_2, /* Same as above */
1521 sizeof(asn_DEF_name_tags_2)
1522 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
1523 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001524 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001525 &asn_SPC_name_specs_2 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001526};
1527
1528static asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = {
1529 { ATF_POINTER, 0, 0,
1530 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1531 .tag_mode = 0,
1532 .type = &asn_DEF_name_2,
1533 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001534 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1535 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001536 .name = "name"
1537 },
1538};
Lev Walkina7591b52014-10-12 18:37:35 -07001539static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001540 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1541};
Lev Walkin59b176e2005-11-26 11:25:14 +00001542static asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001543 sizeof(struct NamedSetOfEnums),
1544 offsetof(struct NamedSetOfEnums, _asn_ctx),
1545 1, /* XER encoding is XMLValueList */
1546};
1547asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums = {
1548 "NamedSetOfEnums",
1549 "NamedSetOfEnums",
1550 SET_OF_free,
1551 SET_OF_print,
1552 SET_OF_constraint,
1553 SET_OF_decode_ber,
1554 SET_OF_encode_der,
1555 SET_OF_decode_xer,
1556 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001557 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001558 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001559 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001560 asn_DEF_NamedSetOfEnums_tags_1,
1561 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1562 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
1563 asn_DEF_NamedSetOfEnums_tags_1, /* Same as above */
1564 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1565 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
1566 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001567 asn_MBR_NamedSetOfEnums_1,
1568 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001569 &asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001570};
1571
1572
Lev Walkin843a2462005-02-18 16:30:26 +00001573/*** <<< INCLUDES [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001574
1575#include <INTEGER.h>
1576#include <asn_SEQUENCE_OF.h>
1577#include <constr_SEQUENCE_OF.h>
1578
Lev Walkin843a2462005-02-18 16:30:26 +00001579/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001580
Lev Walkin843a2462005-02-18 16:30:26 +00001581typedef struct SequenceOf {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001582 A_SEQUENCE_OF(INTEGER_t) list;
1583
1584 /* Context for parsing across buffer boundaries */
1585 asn_struct_ctx_t _asn_ctx;
Lev Walkin843a2462005-02-18 16:30:26 +00001586} SequenceOf_t;
Lev Walkin0ef9f142005-02-14 20:40:57 +00001587
Lev Walkinc8285712005-03-04 22:18:20 +00001588/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
1589
1590extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
1591
Lev Walkin843a2462005-02-18 16:30:26 +00001592/*** <<< STAT-DEFS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001593
Lev Walkine0272aa2005-03-04 11:26:08 +00001594static asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001595 { ATF_POINTER, 0, 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001596 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
1597 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001598 .type = &asn_DEF_INTEGER,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001599 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001600 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1601 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001602 .name = "id"
1603 },
1604};
Lev Walkina7591b52014-10-12 18:37:35 -07001605static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001606 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1607};
Lev Walkin59b176e2005-11-26 11:25:14 +00001608static asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +00001609 sizeof(struct SequenceOf),
1610 offsetof(struct SequenceOf, _asn_ctx),
Lev Walkin0ef9f142005-02-14 20:40:57 +00001611 0, /* XER encoding is XMLDelimitedItemList */
1612};
Lev Walkin843a2462005-02-18 16:30:26 +00001613asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
1614 "SequenceOf",
1615 "SequenceOf",
Lev Walkin0ef9f142005-02-14 20:40:57 +00001616 SEQUENCE_OF_free,
1617 SEQUENCE_OF_print,
1618 SEQUENCE_OF_constraint,
1619 SEQUENCE_OF_decode_ber,
1620 SEQUENCE_OF_encode_der,
1621 SEQUENCE_OF_decode_xer,
1622 SEQUENCE_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001623 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001624 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001625 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001626 asn_DEF_SequenceOf_tags_1,
1627 sizeof(asn_DEF_SequenceOf_tags_1)
1628 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
1629 asn_DEF_SequenceOf_tags_1, /* Same as above */
1630 sizeof(asn_DEF_SequenceOf_tags_1)
1631 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
1632 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001633 asn_MBR_SequenceOf_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001634 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001635 &asn_SPC_SequenceOf_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001636};
1637
Lev Walkinf5db6142005-02-24 22:38:43 +00001638
1639/*** <<< INCLUDES [SeqOfZuka] >>> ***/
1640
1641#include <NULL.h>
1642#include <asn_SEQUENCE_OF.h>
1643#include <constr_SEQUENCE_OF.h>
1644
Lev Walkinf5db6142005-02-24 22:38:43 +00001645/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
1646
Lev Walkinf5db6142005-02-24 22:38:43 +00001647typedef struct SeqOfZuka {
1648 A_SEQUENCE_OF(NULL_t) list;
1649
1650 /* Context for parsing across buffer boundaries */
1651 asn_struct_ctx_t _asn_ctx;
1652} SeqOfZuka_t;
1653
Lev Walkinc8285712005-03-04 22:18:20 +00001654/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/
1655
1656extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
1657
Lev Walkinf5db6142005-02-24 22:38:43 +00001658/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
1659
Lev Walkine0272aa2005-03-04 11:26:08 +00001660static asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001661 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001662 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1663 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001664 .type = &asn_DEF_NULL,
Lev Walkinf5db6142005-02-24 22:38:43 +00001665 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001666 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1667 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001668 .name = "zuka"
1669 },
1670};
Lev Walkina7591b52014-10-12 18:37:35 -07001671static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001672 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1673};
Lev Walkin59b176e2005-11-26 11:25:14 +00001674static asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001675 sizeof(struct SeqOfZuka),
1676 offsetof(struct SeqOfZuka, _asn_ctx),
1677 1, /* XER encoding is XMLValueList */
1678};
1679asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
1680 "SeqOfZuka",
1681 "SeqOfZuka",
1682 SEQUENCE_OF_free,
1683 SEQUENCE_OF_print,
1684 SEQUENCE_OF_constraint,
1685 SEQUENCE_OF_decode_ber,
1686 SEQUENCE_OF_encode_der,
1687 SEQUENCE_OF_decode_xer,
1688 SEQUENCE_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001689 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001690 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001691 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001692 asn_DEF_SeqOfZuka_tags_1,
1693 sizeof(asn_DEF_SeqOfZuka_tags_1)
1694 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
1695 asn_DEF_SeqOfZuka_tags_1, /* Same as above */
1696 sizeof(asn_DEF_SeqOfZuka_tags_1)
1697 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
1698 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001699 asn_MBR_SeqOfZuka_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001700 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001701 &asn_SPC_SeqOfZuka_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001702};
1703
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001704
1705/*** <<< INCLUDES [SetOfChoice] >>> ***/
1706
1707#include <asn_SET_OF.h>
1708#include <constr_SET_OF.h>
1709
1710/*** <<< FWD-DECLS [SetOfChoice] >>> ***/
1711
1712struct SimpleChoice;
1713
1714/*** <<< TYPE-DECLS [SetOfChoice] >>> ***/
1715
1716typedef struct SetOfChoice {
1717 A_SET_OF(struct SimpleChoice) list;
1718
1719 /* Context for parsing across buffer boundaries */
1720 asn_struct_ctx_t _asn_ctx;
1721} SetOfChoice_t;
1722
1723/*** <<< FUNC-DECLS [SetOfChoice] >>> ***/
1724
1725extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice;
1726
1727/*** <<< POST-INCLUDE [SetOfChoice] >>> ***/
1728
Lev Walkin22b5ed42006-09-13 02:51:20 +00001729#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001730
1731/*** <<< STAT-DEFS [SetOfChoice] >>> ***/
1732
1733static asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = {
1734 { ATF_POINTER, 0, 0,
1735 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1736 .tag_mode = 0,
1737 .type = &asn_DEF_SimpleChoice,
1738 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001739 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1740 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001741 .name = ""
1742 },
1743};
Lev Walkina7591b52014-10-12 18:37:35 -07001744static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001745 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1746};
Lev Walkin59b176e2005-11-26 11:25:14 +00001747static asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001748 sizeof(struct SetOfChoice),
1749 offsetof(struct SetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001750 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001751};
1752asn_TYPE_descriptor_t asn_DEF_SetOfChoice = {
1753 "SetOfChoice",
1754 "SetOfChoice",
1755 SET_OF_free,
1756 SET_OF_print,
1757 SET_OF_constraint,
1758 SET_OF_decode_ber,
1759 SET_OF_encode_der,
1760 SET_OF_decode_xer,
1761 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001762 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001763 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001764 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001765 asn_DEF_SetOfChoice_tags_1,
1766 sizeof(asn_DEF_SetOfChoice_tags_1)
1767 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
1768 asn_DEF_SetOfChoice_tags_1, /* Same as above */
1769 sizeof(asn_DEF_SetOfChoice_tags_1)
1770 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
1771 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001772 asn_MBR_SetOfChoice_1,
1773 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001774 &asn_SPC_SetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001775};
1776
1777
1778/*** <<< INCLUDES [NamedSetOfChoice] >>> ***/
1779
1780#include <asn_SET_OF.h>
1781#include <constr_SET_OF.h>
1782
1783/*** <<< FWD-DECLS [NamedSetOfChoice] >>> ***/
1784
1785struct SimpleChoice;
1786
1787/*** <<< TYPE-DECLS [NamedSetOfChoice] >>> ***/
1788
1789typedef struct NamedSetOfChoice {
1790 A_SET_OF(struct SimpleChoice) list;
1791
1792 /* Context for parsing across buffer boundaries */
1793 asn_struct_ctx_t _asn_ctx;
1794} NamedSetOfChoice_t;
1795
1796/*** <<< FUNC-DECLS [NamedSetOfChoice] >>> ***/
1797
1798extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice;
1799
1800/*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/
1801
Lev Walkin22b5ed42006-09-13 02:51:20 +00001802#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001803
1804/*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/
1805
1806static asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = {
1807 { ATF_POINTER, 0, 0,
1808 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1809 .tag_mode = 0,
1810 .type = &asn_DEF_SimpleChoice,
1811 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001812 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1813 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001814 .name = "whatever"
1815 },
1816};
Lev Walkina7591b52014-10-12 18:37:35 -07001817static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001818 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1819};
Lev Walkin59b176e2005-11-26 11:25:14 +00001820static asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001821 sizeof(struct NamedSetOfChoice),
1822 offsetof(struct NamedSetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001823 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001824};
1825asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice = {
1826 "NamedSetOfChoice",
1827 "NamedSetOfChoice",
1828 SET_OF_free,
1829 SET_OF_print,
1830 SET_OF_constraint,
1831 SET_OF_decode_ber,
1832 SET_OF_encode_der,
1833 SET_OF_decode_xer,
1834 SET_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001835 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001836 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001837 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001838 asn_DEF_NamedSetOfChoice_tags_1,
1839 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1840 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
1841 asn_DEF_NamedSetOfChoice_tags_1, /* Same as above */
1842 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1843 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
1844 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001845 asn_MBR_NamedSetOfChoice_1,
1846 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001847 &asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001848};
1849
1850
1851/*** <<< INCLUDES [SimpleChoice] >>> ***/
1852
1853#include <NULL.h>
1854#include <INTEGER.h>
1855#include <constr_CHOICE.h>
1856
1857/*** <<< DEPS [SimpleChoice] >>> ***/
1858
1859typedef enum SimpleChoice_PR {
1860 SimpleChoice_PR_NOTHING, /* No components present */
1861 SimpleChoice_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001862 SimpleChoice_PR_b
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001863} SimpleChoice_PR;
1864
1865/*** <<< TYPE-DECLS [SimpleChoice] >>> ***/
1866
1867typedef struct SimpleChoice {
1868 SimpleChoice_PR present;
1869 union SimpleChoice_u {
1870 NULL_t a;
1871 INTEGER_t b;
1872 } choice;
1873
1874 /* Context for parsing across buffer boundaries */
1875 asn_struct_ctx_t _asn_ctx;
1876} SimpleChoice_t;
1877
1878/*** <<< FUNC-DECLS [SimpleChoice] >>> ***/
1879
1880extern asn_TYPE_descriptor_t asn_DEF_SimpleChoice;
1881
1882/*** <<< STAT-DEFS [SimpleChoice] >>> ***/
1883
1884static asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = {
1885 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.a),
1886 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1887 .tag_mode = -1, /* IMPLICIT tag at current level */
1888 .type = &asn_DEF_NULL,
1889 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001890 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1891 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001892 .name = "a"
1893 },
1894 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.b),
1895 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1896 .tag_mode = -1, /* IMPLICIT tag at current level */
1897 .type = &asn_DEF_INTEGER,
1898 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +00001899 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1900 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001901 .name = "b"
1902 },
1903};
Lev Walkina7591b52014-10-12 18:37:35 -07001904static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001905 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1906 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001907};
Lev Walkin59b176e2005-11-26 11:25:14 +00001908static asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001909 sizeof(struct SimpleChoice),
1910 offsetof(struct SimpleChoice, _asn_ctx),
1911 offsetof(struct SimpleChoice, present),
1912 sizeof(((struct SimpleChoice *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +00001913 asn_MAP_SimpleChoice_tag2el_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001914 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001915 .canonical_order = 0,
1916 .ext_start = -1 /* Extensions start */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001917};
1918asn_TYPE_descriptor_t asn_DEF_SimpleChoice = {
1919 "SimpleChoice",
1920 "SimpleChoice",
1921 CHOICE_free,
1922 CHOICE_print,
1923 CHOICE_constraint,
1924 CHOICE_decode_ber,
1925 CHOICE_encode_der,
1926 CHOICE_decode_xer,
1927 CHOICE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001928 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -07001929 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001930 CHOICE_outmost_tag,
1931 0, /* No effective tags (pointer) */
1932 0, /* No effective tags (count) */
1933 0, /* No tags (pointer) */
1934 0, /* No tags (count) */
Lev Walkin59b176e2005-11-26 11:25:14 +00001935 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001936 asn_MBR_SimpleChoice_1,
1937 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001938 &asn_SPC_SimpleChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001939};
1940