blob: 459fc802139812129c90b8448dcaefda6ac2fb61 [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 Walkinb33425f2017-07-14 14:59:52 +040086 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000087 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
88 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +000089 .name = "sequence"
90 },
91 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
92 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
93 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000094 .type = &asn_DEF_Set,
Lev Walkin0ef9f142005-02-14 20:40:57 +000095 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040096 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000097 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
98 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +000099 .name = "set"
100 },
Lev Walkin843a2462005-02-18 16:30:26 +0000101 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000102 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin0ef9f142005-02-14 20:40:57 +0000103 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000104 .type = &asn_DEF_SequenceOf,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000105 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400106 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000107 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
108 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000109 .name = "sequenceOf"
110 },
111 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000112 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000113 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000114 .type = &asn_DEF_ExtensibleSet,
Lev Walkin843a2462005-02-18 16:30:26 +0000115 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400116 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000117 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
118 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000119 .name = "extensibleSet"
120 },
121 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000122 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000123 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000124 .type = &asn_DEF_ExtensibleSequence,
Lev Walkin843a2462005-02-18 16:30:26 +0000125 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400126 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000127 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
128 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000129 .name = "extensibleSequence"
Lev Walkin0ef9f142005-02-14 20:40:57 +0000130 },
Lev Walkin15750402005-07-03 05:27:19 +0000131 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000132 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000133 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000134 .type = &asn_DEF_ExtensibleSequence2,
Lev Walkin15750402005-07-03 05:27:19 +0000135 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400136 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000137 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
138 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000139 .name = "extensibleSequence2"
140 },
141 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000142 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
Lev Walkin15750402005-07-03 05:27:19 +0000143 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000144 .type = &asn_DEF_SetOfNULL,
Lev Walkinf5db6142005-02-24 22:38:43 +0000145 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400146 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000147 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
148 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000149 .name = "setOfNULL"
150 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000151 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfREAL),
152 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
153 .tag_mode = -1, /* IMPLICIT tag at current level */
154 .type = &asn_DEF_SetOfREAL,
155 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400156 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000157 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
158 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000159 .name = "setOfREAL"
160 },
Lev Walkinf5db6142005-02-24 22:38:43 +0000161 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
Lev Walkin15750402005-07-03 05:27:19 +0000162 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000163 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000164 .type = &asn_DEF_SetOfEnums,
Lev Walkinf5db6142005-02-24 22:38:43 +0000165 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400166 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000167 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
168 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000169 .name = "setOfEnums"
170 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000171 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfNULL),
Lev Walkin15750402005-07-03 05:27:19 +0000172 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000173 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000174 .type = &asn_DEF_NamedSetOfNULL,
175 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400176 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000177 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
178 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000179 .name = "namedSetOfNULL"
180 },
181 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfREAL),
182 .tag = (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
183 .tag_mode = -1, /* IMPLICIT tag at current level */
184 .type = &asn_DEF_NamedSetOfREAL,
185 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400186 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000187 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
188 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000189 .name = "namedSetOfREAL"
190 },
191 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfEnums),
192 .tag = (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
193 .tag_mode = -1, /* IMPLICIT tag at current level */
194 .type = &asn_DEF_NamedSetOfEnums,
195 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400196 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000197 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
198 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000199 .name = "namedSetOfEnums"
200 },
201 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
202 .tag = (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
203 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000204 .type = &asn_DEF_SeqOfZuka,
Lev Walkinf5db6142005-02-24 22:38:43 +0000205 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400206 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000207 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
208 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000209 .name = "seqOfZuka"
210 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000211 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfChoice),
212 .tag = (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
213 .tag_mode = -1, /* IMPLICIT tag at current level */
214 .type = &asn_DEF_SetOfChoice,
215 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400216 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000217 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
218 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000219 .name = "setOfChoice"
220 },
221 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfChoice),
222 .tag = (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
223 .tag_mode = -1, /* IMPLICIT tag at current level */
224 .type = &asn_DEF_NamedSetOfChoice,
225 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400226 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000227 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
228 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000229 .name = "namedSetOfChoice"
230 },
Lev Walkin0ef9f142005-02-14 20:40:57 +0000231};
Lev Walkina7591b52014-10-12 18:37:35 -0700232static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700233 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence */
234 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
235 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceOf */
236 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* extensibleSet */
237 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSequence */
238 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence2 */
239 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL */
240 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfREAL */
241 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setOfEnums */
242 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* namedSetOfNULL */
243 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* namedSetOfREAL */
244 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* namedSetOfEnums */
245 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* seqOfZuka */
246 { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* setOfChoice */
247 { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* namedSetOfChoice */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000248};
Lev Walkin59b176e2005-11-26 11:25:14 +0000249static asn_CHOICE_specifics_t asn_SPC_PDU_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000250 sizeof(struct PDU),
251 offsetof(struct PDU, _asn_ctx),
252 offsetof(struct PDU, present),
253 sizeof(((struct PDU *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000254 asn_MAP_PDU_tag2el_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000255 15, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000256 .canonical_order = 0,
257 .ext_start = 15 /* Extensions start */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000258};
259asn_TYPE_descriptor_t asn_DEF_PDU = {
260 "PDU",
261 "PDU",
262 CHOICE_free,
263 CHOICE_print,
264 CHOICE_constraint,
265 CHOICE_decode_ber,
266 CHOICE_encode_der,
267 CHOICE_decode_xer,
268 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700269 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400270 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000271 CHOICE_outmost_tag,
272 0, /* No effective tags (pointer) */
273 0, /* No effective tags (count) */
274 0, /* No tags (pointer) */
275 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400276 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000277 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000278 asn_MBR_PDU_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000279 15, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000280 &asn_SPC_PDU_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000281};
282
283
284/*** <<< INCLUDES [Sequence] >>> ***/
285
286#include <INTEGER.h>
Lev Walkin0ef9f142005-02-14 20:40:57 +0000287#include <BIT_STRING.h>
288#include <UTF8String.h>
289#include <constr_SEQUENCE.h>
290
Lev Walkinc8285712005-03-04 22:18:20 +0000291/*** <<< FWD-DECLS [Sequence] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000292
Lev Walkinbf56d542005-03-04 23:50:56 +0000293struct Sequence;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000294
295/*** <<< TYPE-DECLS [Sequence] >>> ***/
296
Lev Walkin0ef9f142005-02-14 20:40:57 +0000297typedef struct Sequence {
298 INTEGER_t integer;
299 struct Sequence *sequence /* OPTIONAL */;
300 BIT_STRING_t *bits /* OPTIONAL */;
301 UTF8String_t string;
302
303 /* Context for parsing across buffer boundaries */
304 asn_struct_ctx_t _asn_ctx;
305} Sequence_t;
306
Lev Walkinc8285712005-03-04 22:18:20 +0000307/*** <<< FUNC-DECLS [Sequence] >>> ***/
308
309extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800310extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
311extern asn_TYPE_member_t asn_MBR_Sequence_1[4];
Lev Walkinc8285712005-03-04 22:18:20 +0000312
313/*** <<< POST-INCLUDE [Sequence] >>> ***/
314
Lev Walkin22b5ed42006-09-13 02:51:20 +0000315#include "Sequence.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000316
Lev Walkin0ef9f142005-02-14 20:40:57 +0000317/*** <<< STAT-DEFS [Sequence] >>> ***/
318
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800319asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000320 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
321 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
322 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000323 .type = &asn_DEF_INTEGER,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000324 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400325 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000326 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
327 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000328 .name = "integer"
329 },
330 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
331 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
332 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000333 .type = &asn_DEF_Sequence,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000334 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400335 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000336 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
337 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000338 .name = "sequence"
339 },
340 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
341 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
342 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000343 .type = &asn_DEF_BIT_STRING,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000344 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400345 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000346 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
347 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000348 .name = "bits"
349 },
350 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
351 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
352 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000353 .type = &asn_DEF_UTF8String,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000354 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400355 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000356 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
357 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000358 .name = "string"
359 },
360};
Lev Walkina7591b52014-10-12 18:37:35 -0700361static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000362 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
363};
Lev Walkina7591b52014-10-12 18:37:35 -0700364static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700365 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
366 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence */
367 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits */
368 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000369};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800370asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000371 sizeof(struct Sequence),
372 offsetof(struct Sequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000373 asn_MAP_Sequence_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000374 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000375 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000376 -1, /* Start extensions */
377 -1 /* Stop extensions */
378};
379asn_TYPE_descriptor_t asn_DEF_Sequence = {
380 "Sequence",
381 "Sequence",
382 SEQUENCE_free,
383 SEQUENCE_print,
384 SEQUENCE_constraint,
385 SEQUENCE_decode_ber,
386 SEQUENCE_encode_der,
387 SEQUENCE_decode_xer,
388 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700389 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400390 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000391 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000392 asn_DEF_Sequence_tags_1,
393 sizeof(asn_DEF_Sequence_tags_1)
394 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
395 asn_DEF_Sequence_tags_1, /* Same as above */
396 sizeof(asn_DEF_Sequence_tags_1)
397 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400398 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000399 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000400 asn_MBR_Sequence_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000401 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000402 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000403};
404
405
406/*** <<< INCLUDES [Set] >>> ***/
407
408#include <RELATIVE-OID.h>
409#include <OCTET_STRING.h>
410#include <constr_SET.h>
411
412/*** <<< DEPS [Set] >>> ***/
413
414
415/*
416 * Method of determining the components presence
417 */
418typedef enum Set_PR {
419 Set_PR_roid, /* Member roid is present */
420 Set_PR_opaque, /* Member opaque is present */
421} Set_PR;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000422
423/*** <<< TYPE-DECLS [Set] >>> ***/
424
Lev Walkin0ef9f142005-02-14 20:40:57 +0000425typedef struct Set {
426 RELATIVE_OID_t roid;
427 OCTET_STRING_t *opaque /* OPTIONAL */;
428
429 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
430 unsigned int _presence_map
431 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
432
433 /* Context for parsing across buffer boundaries */
434 asn_struct_ctx_t _asn_ctx;
435} Set_t;
436
Lev Walkinc8285712005-03-04 22:18:20 +0000437/*** <<< FUNC-DECLS [Set] >>> ***/
438
439extern asn_TYPE_descriptor_t asn_DEF_Set;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800440extern asn_SET_specifics_t asn_SPC_Set_specs_1;
441extern asn_TYPE_member_t asn_MBR_Set_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000442
Lev Walkin0ef9f142005-02-14 20:40:57 +0000443/*** <<< STAT-DEFS [Set] >>> ***/
444
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800445asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000446 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
447 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
448 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000449 .type = &asn_DEF_RELATIVE_OID,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000450 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400451 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000452 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
453 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000454 .name = "roid"
455 },
456 { ATF_POINTER, 1, offsetof(struct Set, opaque),
457 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
458 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000459 .type = &asn_DEF_OCTET_STRING,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000460 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400461 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000462 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
463 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000464 .name = "opaque"
465 },
466};
Lev Walkina7591b52014-10-12 18:37:35 -0700467static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000468 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
469};
Lev Walkina7591b52014-10-12 18:37:35 -0700470static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700471 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */
472 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000473};
Lev Walkina7591b52014-10-12 18:37:35 -0700474static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000475 (1 << 7) | (0 << 6)
476};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800477asn_SET_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000478 sizeof(struct Set),
479 offsetof(struct Set, _asn_ctx),
480 offsetof(struct Set, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000481 asn_MAP_Set_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000482 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000483 asn_MAP_Set_tag2el_1, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000484 2, /* Count of tags in the CXER map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000485 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700486 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000487};
488asn_TYPE_descriptor_t asn_DEF_Set = {
489 "Set",
490 "Set",
491 SET_free,
492 SET_print,
493 SET_constraint,
494 SET_decode_ber,
495 SET_encode_der,
496 SET_decode_xer,
497 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700498 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400499 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000500 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000501 asn_DEF_Set_tags_1,
502 sizeof(asn_DEF_Set_tags_1)
503 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
504 asn_DEF_Set_tags_1, /* Same as above */
505 sizeof(asn_DEF_Set_tags_1)
506 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400507 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000508 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000509 asn_MBR_Set_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000510 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000511 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000512};
513
514
Lev Walkin843a2462005-02-18 16:30:26 +0000515/*** <<< INCLUDES [ExtensibleSet] >>> ***/
516
517#include <UTF8String.h>
Lev Walkinc92a7462005-03-10 11:20:47 +0000518#include <ENUMERATED.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000519#include <constr_SET.h>
520
521/*** <<< DEPS [ExtensibleSet] >>> ***/
522
523
524/*
525 * Method of determining the components presence
526 */
527typedef enum ExtensibleSet_PR {
528 ExtensibleSet_PR_string, /* Member string is present */
Lev Walkinc92a7462005-03-10 11:20:47 +0000529 ExtensibleSet_PR_enum, /* Member enum is present */
Lev Walkin843a2462005-02-18 16:30:26 +0000530} ExtensibleSet_PR;
Lev Walkinc92a7462005-03-10 11:20:47 +0000531typedef enum Enum {
532 enum_b = 0,
533 enum_a = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000534} e_enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000535
536/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
537
Lev Walkin843a2462005-02-18 16:30:26 +0000538typedef struct ExtensibleSet {
539 UTF8String_t *string /* OPTIONAL */;
540 /*
541 * This type is extensible,
542 * possible extensions are below.
543 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000544 ENUMERATED_t *Enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000545
546 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
547 unsigned int _presence_map
Lev Walkinc92a7462005-03-10 11:20:47 +0000548 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin843a2462005-02-18 16:30:26 +0000549
550 /* Context for parsing across buffer boundaries */
551 asn_struct_ctx_t _asn_ctx;
552} ExtensibleSet_t;
553
Lev Walkinc8285712005-03-04 22:18:20 +0000554/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/
555
Lev Walkinc92a7462005-03-10 11:20:47 +0000556/* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000557extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800558extern asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1;
559extern asn_TYPE_member_t asn_MBR_ExtensibleSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000560
Lev Walkinc92a7462005-03-10 11:20:47 +0000561/*** <<< CODE [ExtensibleSet] >>> ***/
562
Lev Walkinc92a7462005-03-10 11:20:47 +0000563/*
564 * This type is implemented using ENUMERATED,
565 * so here we adjust the DEF accordingly.
566 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000567
Lev Walkin843a2462005-02-18 16:30:26 +0000568/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
569
Lev Walkina7591b52014-10-12 18:37:35 -0700570static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000571 { 0, 1, "b" },
572 { 1, 1, "a" }
573};
Lev Walkina7591b52014-10-12 18:37:35 -0700574static const unsigned int asn_MAP_enum_enum2value_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000575 1, /* a(1) */
576 0 /* b(0) */
577};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800578static const asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000579 asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */
580 asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */
Lev Walkinc92a7462005-03-10 11:20:47 +0000581 2, /* Number of elements in the maps */
582 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000583 1, /* Strict enumeration */
584 0, /* Native long size */
585 0
Lev Walkinc92a7462005-03-10 11:20:47 +0000586};
Lev Walkina7591b52014-10-12 18:37:35 -0700587static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000588 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
589 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
590};
591static /* Use -fall-defs-global to expose */
592asn_TYPE_descriptor_t asn_DEF_enum_4 = {
593 "enum",
594 "enum",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800595 ENUMERATED_free,
596 ENUMERATED_print,
597 ENUMERATED_constraint,
598 ENUMERATED_decode_ber,
599 ENUMERATED_encode_der,
600 ENUMERATED_decode_xer,
601 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700602 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400603 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinc92a7462005-03-10 11:20:47 +0000604 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000605 asn_DEF_enum_tags_4,
606 sizeof(asn_DEF_enum_tags_4)
607 /sizeof(asn_DEF_enum_tags_4[0]) - 1, /* 1 */
608 asn_DEF_enum_tags_4, /* Same as above */
609 sizeof(asn_DEF_enum_tags_4)
610 /sizeof(asn_DEF_enum_tags_4[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400611 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000612 0, /* No PER visible constraints */
Lev Walkinc92a7462005-03-10 11:20:47 +0000613 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000614 &asn_SPC_enum_specs_4 /* Additional specs */
Lev Walkinc92a7462005-03-10 11:20:47 +0000615};
616
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800617asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000618 { ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000619 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
620 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000621 .type = &asn_DEF_UTF8String,
Lev Walkin843a2462005-02-18 16:30:26 +0000622 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400623 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000624 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
625 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000626 .name = "string"
627 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000628 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
Lev Walkinc92a7462005-03-10 11:20:47 +0000629 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
630 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000631 .type = &asn_DEF_enum_4,
Lev Walkinc92a7462005-03-10 11:20:47 +0000632 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400633 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000634 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
635 .default_value = 0,
Lev Walkinc92a7462005-03-10 11:20:47 +0000636 .name = "enum"
637 },
Lev Walkin843a2462005-02-18 16:30:26 +0000638};
Lev Walkina7591b52014-10-12 18:37:35 -0700639static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000640 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
641};
Lev Walkina7591b52014-10-12 18:37:35 -0700642static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700643 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
644 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */
Lev Walkin843a2462005-02-18 16:30:26 +0000645};
Lev Walkina7591b52014-10-12 18:37:35 -0700646static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000647 (0 << 7) | (0 << 6)
Lev Walkin843a2462005-02-18 16:30:26 +0000648};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800649asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000650 sizeof(struct ExtensibleSet),
651 offsetof(struct ExtensibleSet, _asn_ctx),
652 offsetof(struct ExtensibleSet, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000653 asn_MAP_ExtensibleSet_tag2el_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000654 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000655 asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */
Lev Walkinc92a7462005-03-10 11:20:47 +0000656 2, /* Count of tags in the CXER map */
Lev Walkin843a2462005-02-18 16:30:26 +0000657 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700658 (const unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */
Lev Walkin843a2462005-02-18 16:30:26 +0000659};
660asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
661 "ExtensibleSet",
662 "ExtensibleSet",
663 SET_free,
664 SET_print,
665 SET_constraint,
666 SET_decode_ber,
667 SET_encode_der,
668 SET_decode_xer,
669 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700670 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400671 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000672 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000673 asn_DEF_ExtensibleSet_tags_1,
674 sizeof(asn_DEF_ExtensibleSet_tags_1)
675 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
676 asn_DEF_ExtensibleSet_tags_1, /* Same as above */
677 sizeof(asn_DEF_ExtensibleSet_tags_1)
678 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400679 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000680 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000681 asn_MBR_ExtensibleSet_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000682 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000683 &asn_SPC_ExtensibleSet_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000684};
685
686
687/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
688
689#include <UTF8String.h>
690#include <INTEGER.h>
Lev Walkin15750402005-07-03 05:27:19 +0000691#include <GeneralizedTime.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000692#include <constr_SEQUENCE.h>
693
Lev Walkin843a2462005-02-18 16:30:26 +0000694/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
695
Lev Walkin843a2462005-02-18 16:30:26 +0000696typedef struct ExtensibleSequence {
697 UTF8String_t *string /* OPTIONAL */;
698 /*
699 * This type is extensible,
700 * possible extensions are below.
701 */
702 INTEGER_t *integer /* OPTIONAL */;
Lev Walkin15750402005-07-03 05:27:19 +0000703 GeneralizedTime_t *gtime;
Lev Walkin843a2462005-02-18 16:30:26 +0000704
705 /* Context for parsing across buffer boundaries */
706 asn_struct_ctx_t _asn_ctx;
707} ExtensibleSequence_t;
708
Lev Walkinc8285712005-03-04 22:18:20 +0000709/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/
710
711extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800712extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1;
713extern asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[3];
Lev Walkinc8285712005-03-04 22:18:20 +0000714
Lev Walkin843a2462005-02-18 16:30:26 +0000715/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
716
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800717asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000718 { ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000719 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
720 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000721 .type = &asn_DEF_UTF8String,
Lev Walkin843a2462005-02-18 16:30:26 +0000722 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400723 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000724 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
725 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000726 .name = "string"
727 },
Lev Walkin15750402005-07-03 05:27:19 +0000728 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
Lev Walkin843a2462005-02-18 16:30:26 +0000729 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
730 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000731 .type = &asn_DEF_INTEGER,
Lev Walkin843a2462005-02-18 16:30:26 +0000732 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400733 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000734 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
735 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000736 .name = "integer"
737 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000738 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
Lev Walkin15750402005-07-03 05:27:19 +0000739 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
740 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000741 .type = &asn_DEF_GeneralizedTime,
Lev Walkin15750402005-07-03 05:27:19 +0000742 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400743 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000744 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
745 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000746 .name = "gtime"
747 },
Lev Walkin843a2462005-02-18 16:30:26 +0000748};
Lev Walkina7591b52014-10-12 18:37:35 -0700749static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000750 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
751};
Lev Walkina7591b52014-10-12 18:37:35 -0700752static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700753 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
754 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer */
755 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime */
Lev Walkin843a2462005-02-18 16:30:26 +0000756};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800757asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000758 sizeof(struct ExtensibleSequence),
759 offsetof(struct ExtensibleSequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000760 asn_MAP_ExtensibleSequence_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000761 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000762 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin843a2462005-02-18 16:30:26 +0000763 0, /* Start extensions */
Lev Walkin15750402005-07-03 05:27:19 +0000764 4 /* Stop extensions */
Lev Walkin843a2462005-02-18 16:30:26 +0000765};
766asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
767 "ExtensibleSequence",
768 "ExtensibleSequence",
769 SEQUENCE_free,
770 SEQUENCE_print,
771 SEQUENCE_constraint,
772 SEQUENCE_decode_ber,
773 SEQUENCE_encode_der,
774 SEQUENCE_decode_xer,
775 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700776 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400777 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000778 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000779 asn_DEF_ExtensibleSequence_tags_1,
780 sizeof(asn_DEF_ExtensibleSequence_tags_1)
781 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
782 asn_DEF_ExtensibleSequence_tags_1, /* Same as above */
783 sizeof(asn_DEF_ExtensibleSequence_tags_1)
784 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400785 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000786 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000787 asn_MBR_ExtensibleSequence_1,
Lev Walkin15750402005-07-03 05:27:19 +0000788 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000789 &asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000790};
791
792
Lev Walkin15750402005-07-03 05:27:19 +0000793/*** <<< INCLUDES [ExtensibleSequence2] >>> ***/
794
795#include <UTF8String.h>
796#include <INTEGER.h>
797#include <constr_SEQUENCE.h>
798
799/*** <<< TYPE-DECLS [ExtensibleSequence2] >>> ***/
800
801typedef struct ExtensibleSequence2 {
802 UTF8String_t *string /* OPTIONAL */;
803 /*
804 * This type is extensible,
805 * possible extensions are below.
806 */
807 INTEGER_t *integer /* OPTIONAL */;
808
809 /* Context for parsing across buffer boundaries */
810 asn_struct_ctx_t _asn_ctx;
811} ExtensibleSequence2_t;
812
813/*** <<< FUNC-DECLS [ExtensibleSequence2] >>> ***/
814
815extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800816extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1;
817extern asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[2];
Lev Walkin15750402005-07-03 05:27:19 +0000818
819/*** <<< STAT-DEFS [ExtensibleSequence2] >>> ***/
820
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800821asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000822 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
823 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
824 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000825 .type = &asn_DEF_UTF8String,
Lev Walkin15750402005-07-03 05:27:19 +0000826 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400827 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000828 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
829 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000830 .name = "string"
831 },
832 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
833 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
834 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000835 .type = &asn_DEF_INTEGER,
Lev Walkin15750402005-07-03 05:27:19 +0000836 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400837 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000838 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
839 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000840 .name = "integer"
841 },
842};
Lev Walkina7591b52014-10-12 18:37:35 -0700843static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000844 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
845};
Lev Walkina7591b52014-10-12 18:37:35 -0700846static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700847 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
848 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */
Lev Walkin15750402005-07-03 05:27:19 +0000849};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800850asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = {
Lev Walkin15750402005-07-03 05:27:19 +0000851 sizeof(struct ExtensibleSequence2),
852 offsetof(struct ExtensibleSequence2, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000853 asn_MAP_ExtensibleSequence2_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000854 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000855 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin15750402005-07-03 05:27:19 +0000856 0, /* Start extensions */
857 3 /* Stop extensions */
858};
859asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2 = {
860 "ExtensibleSequence2",
861 "ExtensibleSequence2",
862 SEQUENCE_free,
863 SEQUENCE_print,
864 SEQUENCE_constraint,
865 SEQUENCE_decode_ber,
866 SEQUENCE_encode_der,
867 SEQUENCE_decode_xer,
868 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700869 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400870 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin15750402005-07-03 05:27:19 +0000871 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000872 asn_DEF_ExtensibleSequence2_tags_1,
873 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
874 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
875 asn_DEF_ExtensibleSequence2_tags_1, /* Same as above */
876 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
877 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400878 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000879 0, /* No PER visible constraints */
Lev Walkin15750402005-07-03 05:27:19 +0000880 asn_MBR_ExtensibleSequence2_1,
881 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000882 &asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */
Lev Walkin15750402005-07-03 05:27:19 +0000883};
884
885
Lev Walkinf5db6142005-02-24 22:38:43 +0000886/*** <<< INCLUDES [SetOfNULL] >>> ***/
887
888#include <NULL.h>
889#include <asn_SET_OF.h>
890#include <constr_SET_OF.h>
891
Lev Walkinf5db6142005-02-24 22:38:43 +0000892/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
893
Lev Walkinf5db6142005-02-24 22:38:43 +0000894typedef struct SetOfNULL {
895 A_SET_OF(NULL_t) list;
896
897 /* Context for parsing across buffer boundaries */
898 asn_struct_ctx_t _asn_ctx;
899} SetOfNULL_t;
900
Lev Walkinc8285712005-03-04 22:18:20 +0000901/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/
902
903extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800904extern asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1;
905extern asn_TYPE_member_t asn_MBR_SetOfNULL_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000906
Lev Walkinf5db6142005-02-24 22:38:43 +0000907/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
908
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800909asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000910 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000911 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
912 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000913 .type = &asn_DEF_NULL,
Lev Walkinf5db6142005-02-24 22:38:43 +0000914 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400915 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000916 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
917 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000918 .name = ""
919 },
920};
Lev Walkina7591b52014-10-12 18:37:35 -0700921static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000922 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
923};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800924asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000925 sizeof(struct SetOfNULL),
926 offsetof(struct SetOfNULL, _asn_ctx),
927 1, /* XER encoding is XMLValueList */
928};
929asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
930 "SetOfNULL",
931 "SetOfNULL",
932 SET_OF_free,
933 SET_OF_print,
934 SET_OF_constraint,
935 SET_OF_decode_ber,
936 SET_OF_encode_der,
937 SET_OF_decode_xer,
938 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700939 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400940 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +0000941 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000942 asn_DEF_SetOfNULL_tags_1,
943 sizeof(asn_DEF_SetOfNULL_tags_1)
944 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
945 asn_DEF_SetOfNULL_tags_1, /* Same as above */
946 sizeof(asn_DEF_SetOfNULL_tags_1)
947 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400948 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000949 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000950 asn_MBR_SetOfNULL_1,
Lev Walkinf5db6142005-02-24 22:38:43 +0000951 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000952 &asn_SPC_SetOfNULL_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +0000953};
954
955
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000956/*** <<< INCLUDES [SetOfREAL] >>> ***/
957
958#include <REAL.h>
959#include <asn_SET_OF.h>
960#include <constr_SET_OF.h>
961
962/*** <<< TYPE-DECLS [SetOfREAL] >>> ***/
963
964typedef struct SetOfREAL {
965 A_SET_OF(REAL_t) list;
966
967 /* Context for parsing across buffer boundaries */
968 asn_struct_ctx_t _asn_ctx;
969} SetOfREAL_t;
970
971/*** <<< FUNC-DECLS [SetOfREAL] >>> ***/
972
973extern asn_TYPE_descriptor_t asn_DEF_SetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800974extern asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1;
975extern asn_TYPE_member_t asn_MBR_SetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000976
977/*** <<< STAT-DEFS [SetOfREAL] >>> ***/
978
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800979asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000980 { ATF_POINTER, 0, 0,
981 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
982 .tag_mode = 0,
983 .type = &asn_DEF_REAL,
984 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400985 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000986 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
987 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000988 .name = ""
989 },
990};
Lev Walkina7591b52014-10-12 18:37:35 -0700991static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000992 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
993};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800994asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000995 sizeof(struct SetOfREAL),
996 offsetof(struct SetOfREAL, _asn_ctx),
997 0, /* XER encoding is XMLDelimitedItemList */
998};
999asn_TYPE_descriptor_t asn_DEF_SetOfREAL = {
1000 "SetOfREAL",
1001 "SetOfREAL",
1002 SET_OF_free,
1003 SET_OF_print,
1004 SET_OF_constraint,
1005 SET_OF_decode_ber,
1006 SET_OF_encode_der,
1007 SET_OF_decode_xer,
1008 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001009 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001010 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001011 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001012 asn_DEF_SetOfREAL_tags_1,
1013 sizeof(asn_DEF_SetOfREAL_tags_1)
1014 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
1015 asn_DEF_SetOfREAL_tags_1, /* Same as above */
1016 sizeof(asn_DEF_SetOfREAL_tags_1)
1017 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001018 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001019 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001020 asn_MBR_SetOfREAL_1,
1021 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001022 &asn_SPC_SetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001023};
1024
1025
Lev Walkinf5db6142005-02-24 22:38:43 +00001026/*** <<< INCLUDES [SetOfEnums] >>> ***/
1027
1028#include <ENUMERATED.h>
1029#include <asn_SET_OF.h>
1030#include <constr_SET_OF.h>
1031
1032/*** <<< DEPS [SetOfEnums] >>> ***/
1033
Lev Walkine0272aa2005-03-04 11:26:08 +00001034typedef enum Member {
1035 Member_one = 0,
1036 Member_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001037} e_Member;
Lev Walkinf5db6142005-02-24 22:38:43 +00001038
1039/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
1040
Lev Walkinf5db6142005-02-24 22:38:43 +00001041typedef struct SetOfEnums {
1042 A_SET_OF(ENUMERATED_t) list;
1043
1044 /* Context for parsing across buffer boundaries */
1045 asn_struct_ctx_t _asn_ctx;
1046} SetOfEnums_t;
1047
Lev Walkinb47df092005-02-25 08:35:54 +00001048/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
1049
Lev Walkine0272aa2005-03-04 11:26:08 +00001050/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +00001051extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001052extern asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1;
1053extern asn_TYPE_member_t asn_MBR_SetOfEnums_1[1];
Lev Walkinb47df092005-02-25 08:35:54 +00001054
1055/*** <<< CODE [SetOfEnums] >>> ***/
1056
Lev Walkinb47df092005-02-25 08:35:54 +00001057/*
1058 * This type is implemented using ENUMERATED,
1059 * so here we adjust the DEF accordingly.
1060 */
Lev Walkinb47df092005-02-25 08:35:54 +00001061
Lev Walkinf5db6142005-02-24 22:38:43 +00001062/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
1063
Lev Walkina7591b52014-10-12 18:37:35 -07001064static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001065 { 0, 3, "one" },
1066 { 1, 7, "oneMore" }
1067};
Lev Walkina7591b52014-10-12 18:37:35 -07001068static const unsigned int asn_MAP_Member_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001069 0, /* one(0) */
1070 1 /* oneMore(1) */
Lev Walkinb47df092005-02-25 08:35:54 +00001071};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001072static const asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001073 asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */
1074 asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +00001075 2, /* Number of elements in the maps */
Lev Walkin295e2452005-02-25 11:47:59 +00001076 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001077 1, /* Strict enumeration */
1078 0, /* Native long size */
1079 0
Lev Walkinb47df092005-02-25 08:35:54 +00001080};
Lev Walkina7591b52014-10-12 18:37:35 -07001081static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkinb47df092005-02-25 08:35:54 +00001082 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1083};
1084static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +00001085asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001086 "ENUMERATED",
1087 "ENUMERATED",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001088 ENUMERATED_free,
1089 ENUMERATED_print,
1090 ENUMERATED_constraint,
1091 ENUMERATED_decode_ber,
1092 ENUMERATED_encode_der,
1093 ENUMERATED_decode_xer,
1094 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001095 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001096 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb47df092005-02-25 08:35:54 +00001097 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001098 asn_DEF_Member_tags_2,
1099 sizeof(asn_DEF_Member_tags_2)
1100 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
1101 asn_DEF_Member_tags_2, /* Same as above */
1102 sizeof(asn_DEF_Member_tags_2)
1103 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001104 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001105 0, /* No PER visible constraints */
Lev Walkinb47df092005-02-25 08:35:54 +00001106 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001107 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkinb47df092005-02-25 08:35:54 +00001108};
1109
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001110asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001111 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001112 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1113 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001114 .type = &asn_DEF_Member_2,
Lev Walkinf5db6142005-02-24 22:38:43 +00001115 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001116 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001117 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1118 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001119 .name = ""
1120 },
1121};
Lev Walkina7591b52014-10-12 18:37:35 -07001122static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001123 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1124};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001125asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001126 sizeof(struct SetOfEnums),
1127 offsetof(struct SetOfEnums, _asn_ctx),
Lev Walkinb47df092005-02-25 08:35:54 +00001128 1, /* XER encoding is XMLValueList */
Lev Walkinf5db6142005-02-24 22:38:43 +00001129};
1130asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
1131 "SetOfEnums",
1132 "SetOfEnums",
1133 SET_OF_free,
1134 SET_OF_print,
1135 SET_OF_constraint,
1136 SET_OF_decode_ber,
1137 SET_OF_encode_der,
1138 SET_OF_decode_xer,
1139 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001140 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001141 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001142 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001143 asn_DEF_SetOfEnums_tags_1,
1144 sizeof(asn_DEF_SetOfEnums_tags_1)
1145 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
1146 asn_DEF_SetOfEnums_tags_1, /* Same as above */
1147 sizeof(asn_DEF_SetOfEnums_tags_1)
1148 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001149 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001150 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001151 asn_MBR_SetOfEnums_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001152 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001153 &asn_SPC_SetOfEnums_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001154};
1155
1156
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001157/*** <<< INCLUDES [NamedSetOfNULL] >>> ***/
1158
1159#include <NULL.h>
1160#include <asn_SET_OF.h>
1161#include <constr_SET_OF.h>
1162
1163/*** <<< TYPE-DECLS [NamedSetOfNULL] >>> ***/
1164
1165typedef struct NamedSetOfNULL {
1166 A_SET_OF(NULL_t) list;
1167
1168 /* Context for parsing across buffer boundaries */
1169 asn_struct_ctx_t _asn_ctx;
1170} NamedSetOfNULL_t;
1171
1172/*** <<< FUNC-DECLS [NamedSetOfNULL] >>> ***/
1173
1174extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001175extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1;
1176extern asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001177
1178/*** <<< STAT-DEFS [NamedSetOfNULL] >>> ***/
1179
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001180asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001181 { ATF_POINTER, 0, 0,
1182 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1183 .tag_mode = 0,
1184 .type = &asn_DEF_NULL,
1185 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001186 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001187 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1188 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001189 .name = "y"
1190 },
1191};
Lev Walkina7591b52014-10-12 18:37:35 -07001192static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001193 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1194};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001195asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001196 sizeof(struct NamedSetOfNULL),
1197 offsetof(struct NamedSetOfNULL, _asn_ctx),
1198 1, /* XER encoding is XMLValueList */
1199};
1200asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL = {
1201 "NamedSetOfNULL",
1202 "NamedSetOfNULL",
1203 SET_OF_free,
1204 SET_OF_print,
1205 SET_OF_constraint,
1206 SET_OF_decode_ber,
1207 SET_OF_encode_der,
1208 SET_OF_decode_xer,
1209 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001210 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001211 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001212 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001213 asn_DEF_NamedSetOfNULL_tags_1,
1214 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1215 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
1216 asn_DEF_NamedSetOfNULL_tags_1, /* Same as above */
1217 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1218 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001219 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001220 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001221 asn_MBR_NamedSetOfNULL_1,
1222 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001223 &asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001224};
1225
1226
1227/*** <<< INCLUDES [NamedSetOfREAL] >>> ***/
1228
1229#include <REAL.h>
1230#include <asn_SET_OF.h>
1231#include <constr_SET_OF.h>
1232
1233/*** <<< TYPE-DECLS [NamedSetOfREAL] >>> ***/
1234
1235typedef struct NamedSetOfREAL {
1236 A_SET_OF(REAL_t) list;
1237
1238 /* Context for parsing across buffer boundaries */
1239 asn_struct_ctx_t _asn_ctx;
1240} NamedSetOfREAL_t;
1241
1242/*** <<< FUNC-DECLS [NamedSetOfREAL] >>> ***/
1243
1244extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001245extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1;
1246extern asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001247
1248/*** <<< STAT-DEFS [NamedSetOfREAL] >>> ***/
1249
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001250asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001251 { ATF_POINTER, 0, 0,
1252 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1253 .tag_mode = 0,
1254 .type = &asn_DEF_REAL,
1255 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001256 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001257 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1258 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001259 .name = "name"
1260 },
1261};
Lev Walkina7591b52014-10-12 18:37:35 -07001262static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001263 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1264};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001265asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001266 sizeof(struct NamedSetOfREAL),
1267 offsetof(struct NamedSetOfREAL, _asn_ctx),
1268 0, /* XER encoding is XMLDelimitedItemList */
1269};
1270asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL = {
1271 "NamedSetOfREAL",
1272 "NamedSetOfREAL",
1273 SET_OF_free,
1274 SET_OF_print,
1275 SET_OF_constraint,
1276 SET_OF_decode_ber,
1277 SET_OF_encode_der,
1278 SET_OF_decode_xer,
1279 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001280 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001281 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001282 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001283 asn_DEF_NamedSetOfREAL_tags_1,
1284 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1285 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
1286 asn_DEF_NamedSetOfREAL_tags_1, /* Same as above */
1287 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1288 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001289 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001290 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001291 asn_MBR_NamedSetOfREAL_1,
1292 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001293 &asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001294};
1295
1296
1297/*** <<< INCLUDES [NamedSetOfEnums] >>> ***/
1298
1299#include <ENUMERATED.h>
1300#include <asn_SET_OF.h>
1301#include <constr_SET_OF.h>
1302
1303/*** <<< DEPS [NamedSetOfEnums] >>> ***/
1304
1305typedef enum name {
1306 name_one = 0,
1307 name_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001308} e_name;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001309
1310/*** <<< TYPE-DECLS [NamedSetOfEnums] >>> ***/
1311
1312typedef struct NamedSetOfEnums {
1313 A_SET_OF(ENUMERATED_t) list;
1314
1315 /* Context for parsing across buffer boundaries */
1316 asn_struct_ctx_t _asn_ctx;
1317} NamedSetOfEnums_t;
1318
1319/*** <<< FUNC-DECLS [NamedSetOfEnums] >>> ***/
1320
1321/* extern asn_TYPE_descriptor_t asn_DEF_name_2; // (Use -fall-defs-global to expose) */
1322extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001323extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1;
1324extern asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001325
1326/*** <<< CODE [NamedSetOfEnums] >>> ***/
1327
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001328/*
1329 * This type is implemented using ENUMERATED,
1330 * so here we adjust the DEF accordingly.
1331 */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001332
1333/*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/
1334
Lev Walkina7591b52014-10-12 18:37:35 -07001335static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001336 { 0, 3, "one" },
1337 { 1, 7, "oneMore" }
1338};
Lev Walkina7591b52014-10-12 18:37:35 -07001339static const unsigned int asn_MAP_name_enum2value_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001340 0, /* one(0) */
1341 1 /* oneMore(1) */
1342};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001343static const asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001344 asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */
1345 asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001346 2, /* Number of elements in the maps */
1347 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001348 1, /* Strict enumeration */
1349 0, /* Native long size */
1350 0
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001351};
Lev Walkina7591b52014-10-12 18:37:35 -07001352static const ber_tlv_tag_t asn_DEF_name_tags_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001353 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1354};
1355static /* Use -fall-defs-global to expose */
1356asn_TYPE_descriptor_t asn_DEF_name_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001357 "ENUMERATED",
1358 "ENUMERATED",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001359 ENUMERATED_free,
1360 ENUMERATED_print,
1361 ENUMERATED_constraint,
1362 ENUMERATED_decode_ber,
1363 ENUMERATED_encode_der,
1364 ENUMERATED_decode_xer,
1365 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001366 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001367 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001368 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001369 asn_DEF_name_tags_2,
1370 sizeof(asn_DEF_name_tags_2)
1371 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
1372 asn_DEF_name_tags_2, /* Same as above */
1373 sizeof(asn_DEF_name_tags_2)
1374 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001375 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001376 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001377 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001378 &asn_SPC_name_specs_2 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001379};
1380
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001381asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001382 { ATF_POINTER, 0, 0,
1383 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1384 .tag_mode = 0,
1385 .type = &asn_DEF_name_2,
1386 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001387 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001388 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1389 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001390 .name = "name"
1391 },
1392};
Lev Walkina7591b52014-10-12 18:37:35 -07001393static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001394 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1395};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001396asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001397 sizeof(struct NamedSetOfEnums),
1398 offsetof(struct NamedSetOfEnums, _asn_ctx),
1399 1, /* XER encoding is XMLValueList */
1400};
1401asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums = {
1402 "NamedSetOfEnums",
1403 "NamedSetOfEnums",
1404 SET_OF_free,
1405 SET_OF_print,
1406 SET_OF_constraint,
1407 SET_OF_decode_ber,
1408 SET_OF_encode_der,
1409 SET_OF_decode_xer,
1410 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001411 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001412 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001413 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001414 asn_DEF_NamedSetOfEnums_tags_1,
1415 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1416 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
1417 asn_DEF_NamedSetOfEnums_tags_1, /* Same as above */
1418 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1419 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001420 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001421 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001422 asn_MBR_NamedSetOfEnums_1,
1423 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001424 &asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001425};
1426
1427
Lev Walkin843a2462005-02-18 16:30:26 +00001428/*** <<< INCLUDES [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001429
1430#include <INTEGER.h>
1431#include <asn_SEQUENCE_OF.h>
1432#include <constr_SEQUENCE_OF.h>
1433
Lev Walkin843a2462005-02-18 16:30:26 +00001434/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001435
Lev Walkin843a2462005-02-18 16:30:26 +00001436typedef struct SequenceOf {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001437 A_SEQUENCE_OF(INTEGER_t) list;
1438
1439 /* Context for parsing across buffer boundaries */
1440 asn_struct_ctx_t _asn_ctx;
Lev Walkin843a2462005-02-18 16:30:26 +00001441} SequenceOf_t;
Lev Walkin0ef9f142005-02-14 20:40:57 +00001442
Lev Walkinc8285712005-03-04 22:18:20 +00001443/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
1444
1445extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001446extern asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1;
1447extern asn_TYPE_member_t asn_MBR_SequenceOf_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001448
Lev Walkin843a2462005-02-18 16:30:26 +00001449/*** <<< STAT-DEFS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001450
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001451asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001452 { ATF_POINTER, 0, 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001453 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
1454 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001455 .type = &asn_DEF_INTEGER,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001456 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001457 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001458 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1459 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001460 .name = "id"
1461 },
1462};
Lev Walkina7591b52014-10-12 18:37:35 -07001463static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001464 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1465};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001466asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +00001467 sizeof(struct SequenceOf),
1468 offsetof(struct SequenceOf, _asn_ctx),
Lev Walkin0ef9f142005-02-14 20:40:57 +00001469 0, /* XER encoding is XMLDelimitedItemList */
1470};
Lev Walkin843a2462005-02-18 16:30:26 +00001471asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
1472 "SequenceOf",
1473 "SequenceOf",
Lev Walkin0ef9f142005-02-14 20:40:57 +00001474 SEQUENCE_OF_free,
1475 SEQUENCE_OF_print,
1476 SEQUENCE_OF_constraint,
1477 SEQUENCE_OF_decode_ber,
1478 SEQUENCE_OF_encode_der,
1479 SEQUENCE_OF_decode_xer,
1480 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001481 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001482 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001483 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001484 asn_DEF_SequenceOf_tags_1,
1485 sizeof(asn_DEF_SequenceOf_tags_1)
1486 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
1487 asn_DEF_SequenceOf_tags_1, /* Same as above */
1488 sizeof(asn_DEF_SequenceOf_tags_1)
1489 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001490 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001491 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001492 asn_MBR_SequenceOf_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001493 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001494 &asn_SPC_SequenceOf_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001495};
1496
Lev Walkinf5db6142005-02-24 22:38:43 +00001497
1498/*** <<< INCLUDES [SeqOfZuka] >>> ***/
1499
1500#include <NULL.h>
1501#include <asn_SEQUENCE_OF.h>
1502#include <constr_SEQUENCE_OF.h>
1503
Lev Walkinf5db6142005-02-24 22:38:43 +00001504/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
1505
Lev Walkinf5db6142005-02-24 22:38:43 +00001506typedef struct SeqOfZuka {
1507 A_SEQUENCE_OF(NULL_t) list;
1508
1509 /* Context for parsing across buffer boundaries */
1510 asn_struct_ctx_t _asn_ctx;
1511} SeqOfZuka_t;
1512
Lev Walkinc8285712005-03-04 22:18:20 +00001513/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/
1514
1515extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001516extern asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1;
1517extern asn_TYPE_member_t asn_MBR_SeqOfZuka_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001518
Lev Walkinf5db6142005-02-24 22:38:43 +00001519/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
1520
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001521asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001522 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001523 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1524 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001525 .type = &asn_DEF_NULL,
Lev Walkinf5db6142005-02-24 22:38:43 +00001526 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001527 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001528 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1529 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001530 .name = "zuka"
1531 },
1532};
Lev Walkina7591b52014-10-12 18:37:35 -07001533static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001534 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1535};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001536asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001537 sizeof(struct SeqOfZuka),
1538 offsetof(struct SeqOfZuka, _asn_ctx),
1539 1, /* XER encoding is XMLValueList */
1540};
1541asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
1542 "SeqOfZuka",
1543 "SeqOfZuka",
1544 SEQUENCE_OF_free,
1545 SEQUENCE_OF_print,
1546 SEQUENCE_OF_constraint,
1547 SEQUENCE_OF_decode_ber,
1548 SEQUENCE_OF_encode_der,
1549 SEQUENCE_OF_decode_xer,
1550 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001551 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001552 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001553 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001554 asn_DEF_SeqOfZuka_tags_1,
1555 sizeof(asn_DEF_SeqOfZuka_tags_1)
1556 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
1557 asn_DEF_SeqOfZuka_tags_1, /* Same as above */
1558 sizeof(asn_DEF_SeqOfZuka_tags_1)
1559 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001560 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001561 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001562 asn_MBR_SeqOfZuka_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001563 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001564 &asn_SPC_SeqOfZuka_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001565};
1566
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001567
1568/*** <<< INCLUDES [SetOfChoice] >>> ***/
1569
1570#include <asn_SET_OF.h>
1571#include <constr_SET_OF.h>
1572
1573/*** <<< FWD-DECLS [SetOfChoice] >>> ***/
1574
1575struct SimpleChoice;
1576
1577/*** <<< TYPE-DECLS [SetOfChoice] >>> ***/
1578
1579typedef struct SetOfChoice {
1580 A_SET_OF(struct SimpleChoice) list;
1581
1582 /* Context for parsing across buffer boundaries */
1583 asn_struct_ctx_t _asn_ctx;
1584} SetOfChoice_t;
1585
1586/*** <<< FUNC-DECLS [SetOfChoice] >>> ***/
1587
1588extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001589extern asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1;
1590extern asn_TYPE_member_t asn_MBR_SetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001591
1592/*** <<< POST-INCLUDE [SetOfChoice] >>> ***/
1593
Lev Walkin22b5ed42006-09-13 02:51:20 +00001594#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001595
1596/*** <<< STAT-DEFS [SetOfChoice] >>> ***/
1597
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001598asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001599 { ATF_POINTER, 0, 0,
1600 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1601 .tag_mode = 0,
1602 .type = &asn_DEF_SimpleChoice,
1603 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001604 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001605 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1606 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001607 .name = ""
1608 },
1609};
Lev Walkina7591b52014-10-12 18:37:35 -07001610static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001611 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1612};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001613asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001614 sizeof(struct SetOfChoice),
1615 offsetof(struct SetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001616 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001617};
1618asn_TYPE_descriptor_t asn_DEF_SetOfChoice = {
1619 "SetOfChoice",
1620 "SetOfChoice",
1621 SET_OF_free,
1622 SET_OF_print,
1623 SET_OF_constraint,
1624 SET_OF_decode_ber,
1625 SET_OF_encode_der,
1626 SET_OF_decode_xer,
1627 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001628 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001629 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001630 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001631 asn_DEF_SetOfChoice_tags_1,
1632 sizeof(asn_DEF_SetOfChoice_tags_1)
1633 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
1634 asn_DEF_SetOfChoice_tags_1, /* Same as above */
1635 sizeof(asn_DEF_SetOfChoice_tags_1)
1636 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001637 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001638 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001639 asn_MBR_SetOfChoice_1,
1640 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001641 &asn_SPC_SetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001642};
1643
1644
1645/*** <<< INCLUDES [NamedSetOfChoice] >>> ***/
1646
1647#include <asn_SET_OF.h>
1648#include <constr_SET_OF.h>
1649
1650/*** <<< FWD-DECLS [NamedSetOfChoice] >>> ***/
1651
1652struct SimpleChoice;
1653
1654/*** <<< TYPE-DECLS [NamedSetOfChoice] >>> ***/
1655
1656typedef struct NamedSetOfChoice {
1657 A_SET_OF(struct SimpleChoice) list;
1658
1659 /* Context for parsing across buffer boundaries */
1660 asn_struct_ctx_t _asn_ctx;
1661} NamedSetOfChoice_t;
1662
1663/*** <<< FUNC-DECLS [NamedSetOfChoice] >>> ***/
1664
1665extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001666extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1;
1667extern asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001668
1669/*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/
1670
Lev Walkin22b5ed42006-09-13 02:51:20 +00001671#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001672
1673/*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/
1674
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001675asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001676 { ATF_POINTER, 0, 0,
1677 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1678 .tag_mode = 0,
1679 .type = &asn_DEF_SimpleChoice,
1680 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001681 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001682 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1683 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001684 .name = "whatever"
1685 },
1686};
Lev Walkina7591b52014-10-12 18:37:35 -07001687static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001688 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1689};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001690asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001691 sizeof(struct NamedSetOfChoice),
1692 offsetof(struct NamedSetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001693 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001694};
1695asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice = {
1696 "NamedSetOfChoice",
1697 "NamedSetOfChoice",
1698 SET_OF_free,
1699 SET_OF_print,
1700 SET_OF_constraint,
1701 SET_OF_decode_ber,
1702 SET_OF_encode_der,
1703 SET_OF_decode_xer,
1704 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001705 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001706 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001707 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001708 asn_DEF_NamedSetOfChoice_tags_1,
1709 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1710 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
1711 asn_DEF_NamedSetOfChoice_tags_1, /* Same as above */
1712 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1713 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001714 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001715 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001716 asn_MBR_NamedSetOfChoice_1,
1717 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001718 &asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001719};
1720
1721
1722/*** <<< INCLUDES [SimpleChoice] >>> ***/
1723
1724#include <NULL.h>
1725#include <INTEGER.h>
1726#include <constr_CHOICE.h>
1727
1728/*** <<< DEPS [SimpleChoice] >>> ***/
1729
1730typedef enum SimpleChoice_PR {
1731 SimpleChoice_PR_NOTHING, /* No components present */
1732 SimpleChoice_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001733 SimpleChoice_PR_b
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001734} SimpleChoice_PR;
1735
1736/*** <<< TYPE-DECLS [SimpleChoice] >>> ***/
1737
1738typedef struct SimpleChoice {
1739 SimpleChoice_PR present;
1740 union SimpleChoice_u {
1741 NULL_t a;
1742 INTEGER_t b;
1743 } choice;
1744
1745 /* Context for parsing across buffer boundaries */
1746 asn_struct_ctx_t _asn_ctx;
1747} SimpleChoice_t;
1748
1749/*** <<< FUNC-DECLS [SimpleChoice] >>> ***/
1750
1751extern asn_TYPE_descriptor_t asn_DEF_SimpleChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001752extern asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1;
1753extern asn_TYPE_member_t asn_MBR_SimpleChoice_1[2];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001754
1755/*** <<< STAT-DEFS [SimpleChoice] >>> ***/
1756
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001757asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001758 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.a),
1759 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1760 .tag_mode = -1, /* IMPLICIT tag at current level */
1761 .type = &asn_DEF_NULL,
1762 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001763 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001764 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1765 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001766 .name = "a"
1767 },
1768 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.b),
1769 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1770 .tag_mode = -1, /* IMPLICIT tag at current level */
1771 .type = &asn_DEF_INTEGER,
1772 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001773 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001774 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1775 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001776 .name = "b"
1777 },
1778};
Lev Walkina7591b52014-10-12 18:37:35 -07001779static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001780 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1781 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001782};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001783asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001784 sizeof(struct SimpleChoice),
1785 offsetof(struct SimpleChoice, _asn_ctx),
1786 offsetof(struct SimpleChoice, present),
1787 sizeof(((struct SimpleChoice *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +00001788 asn_MAP_SimpleChoice_tag2el_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001789 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001790 .canonical_order = 0,
1791 .ext_start = -1 /* Extensions start */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001792};
1793asn_TYPE_descriptor_t asn_DEF_SimpleChoice = {
1794 "SimpleChoice",
1795 "SimpleChoice",
1796 CHOICE_free,
1797 CHOICE_print,
1798 CHOICE_constraint,
1799 CHOICE_decode_ber,
1800 CHOICE_encode_der,
1801 CHOICE_decode_xer,
1802 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001803 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001804 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001805 CHOICE_outmost_tag,
1806 0, /* No effective tags (pointer) */
1807 0, /* No effective tags (count) */
1808 0, /* No tags (pointer) */
1809 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +04001810 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001811 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001812 asn_MBR_SimpleChoice_1,
1813 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001814 &asn_SPC_SimpleChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001815};
1816