blob: 307f3be875f673bf11442002a22c83a23f108bae [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,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700264 CHOICE_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000265 CHOICE_constraint,
266 CHOICE_decode_ber,
267 CHOICE_encode_der,
268 CHOICE_decode_xer,
269 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700270 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400271 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000272 CHOICE_outmost_tag,
273 0, /* No effective tags (pointer) */
274 0, /* No effective tags (count) */
275 0, /* No tags (pointer) */
276 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400277 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000278 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000279 asn_MBR_PDU_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000280 15, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000281 &asn_SPC_PDU_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000282};
283
284
285/*** <<< INCLUDES [Sequence] >>> ***/
286
287#include <INTEGER.h>
Lev Walkin0ef9f142005-02-14 20:40:57 +0000288#include <BIT_STRING.h>
289#include <UTF8String.h>
290#include <constr_SEQUENCE.h>
291
Lev Walkinc8285712005-03-04 22:18:20 +0000292/*** <<< FWD-DECLS [Sequence] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000293
Lev Walkinbf56d542005-03-04 23:50:56 +0000294struct Sequence;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000295
296/*** <<< TYPE-DECLS [Sequence] >>> ***/
297
Lev Walkin0ef9f142005-02-14 20:40:57 +0000298typedef struct Sequence {
299 INTEGER_t integer;
300 struct Sequence *sequence /* OPTIONAL */;
301 BIT_STRING_t *bits /* OPTIONAL */;
302 UTF8String_t string;
303
304 /* Context for parsing across buffer boundaries */
305 asn_struct_ctx_t _asn_ctx;
306} Sequence_t;
307
Lev Walkinc8285712005-03-04 22:18:20 +0000308/*** <<< FUNC-DECLS [Sequence] >>> ***/
309
310extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800311extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
312extern asn_TYPE_member_t asn_MBR_Sequence_1[4];
Lev Walkinc8285712005-03-04 22:18:20 +0000313
314/*** <<< POST-INCLUDE [Sequence] >>> ***/
315
Lev Walkin22b5ed42006-09-13 02:51:20 +0000316#include "Sequence.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000317
Lev Walkin0ef9f142005-02-14 20:40:57 +0000318/*** <<< STAT-DEFS [Sequence] >>> ***/
319
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800320asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000321 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
322 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
323 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000324 .type = &asn_DEF_INTEGER,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000325 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400326 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000327 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
328 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000329 .name = "integer"
330 },
331 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
332 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
333 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000334 .type = &asn_DEF_Sequence,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000335 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400336 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000337 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
338 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000339 .name = "sequence"
340 },
341 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
342 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
343 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000344 .type = &asn_DEF_BIT_STRING,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000345 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400346 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000347 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
348 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000349 .name = "bits"
350 },
351 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
352 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
353 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000354 .type = &asn_DEF_UTF8String,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000355 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400356 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000357 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
358 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000359 .name = "string"
360 },
361};
Lev Walkina7591b52014-10-12 18:37:35 -0700362static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000363 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
364};
Lev Walkina7591b52014-10-12 18:37:35 -0700365static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700366 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
367 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence */
368 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits */
369 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000370};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800371asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000372 sizeof(struct Sequence),
373 offsetof(struct Sequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000374 asn_MAP_Sequence_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000375 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000376 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000377 -1, /* Start extensions */
378 -1 /* Stop extensions */
379};
380asn_TYPE_descriptor_t asn_DEF_Sequence = {
381 "Sequence",
382 "Sequence",
383 SEQUENCE_free,
384 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700385 SEQUENCE_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000386 SEQUENCE_constraint,
387 SEQUENCE_decode_ber,
388 SEQUENCE_encode_der,
389 SEQUENCE_decode_xer,
390 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700391 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400392 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000393 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000394 asn_DEF_Sequence_tags_1,
395 sizeof(asn_DEF_Sequence_tags_1)
396 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
397 asn_DEF_Sequence_tags_1, /* Same as above */
398 sizeof(asn_DEF_Sequence_tags_1)
399 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400400 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000401 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000402 asn_MBR_Sequence_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000403 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000404 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000405};
406
407
408/*** <<< INCLUDES [Set] >>> ***/
409
410#include <RELATIVE-OID.h>
411#include <OCTET_STRING.h>
412#include <constr_SET.h>
413
414/*** <<< DEPS [Set] >>> ***/
415
416
417/*
418 * Method of determining the components presence
419 */
420typedef enum Set_PR {
421 Set_PR_roid, /* Member roid is present */
422 Set_PR_opaque, /* Member opaque is present */
423} Set_PR;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000424
425/*** <<< TYPE-DECLS [Set] >>> ***/
426
Lev Walkin0ef9f142005-02-14 20:40:57 +0000427typedef struct Set {
428 RELATIVE_OID_t roid;
429 OCTET_STRING_t *opaque /* OPTIONAL */;
430
431 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
432 unsigned int _presence_map
433 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
434
435 /* Context for parsing across buffer boundaries */
436 asn_struct_ctx_t _asn_ctx;
437} Set_t;
438
Lev Walkinc8285712005-03-04 22:18:20 +0000439/*** <<< FUNC-DECLS [Set] >>> ***/
440
441extern asn_TYPE_descriptor_t asn_DEF_Set;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800442extern asn_SET_specifics_t asn_SPC_Set_specs_1;
443extern asn_TYPE_member_t asn_MBR_Set_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000444
Lev Walkin0ef9f142005-02-14 20:40:57 +0000445/*** <<< STAT-DEFS [Set] >>> ***/
446
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800447asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000448 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
449 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
450 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000451 .type = &asn_DEF_RELATIVE_OID,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000452 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400453 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000454 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
455 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000456 .name = "roid"
457 },
458 { ATF_POINTER, 1, offsetof(struct Set, opaque),
459 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
460 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000461 .type = &asn_DEF_OCTET_STRING,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000462 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400463 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000464 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
465 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000466 .name = "opaque"
467 },
468};
Lev Walkina7591b52014-10-12 18:37:35 -0700469static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000470 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
471};
Lev Walkina7591b52014-10-12 18:37:35 -0700472static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700473 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */
474 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000475};
Lev Walkina7591b52014-10-12 18:37:35 -0700476static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000477 (1 << 7) | (0 << 6)
478};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800479asn_SET_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000480 sizeof(struct Set),
481 offsetof(struct Set, _asn_ctx),
482 offsetof(struct Set, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000483 asn_MAP_Set_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000484 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000485 asn_MAP_Set_tag2el_1, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000486 2, /* Count of tags in the CXER map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000487 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700488 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000489};
490asn_TYPE_descriptor_t asn_DEF_Set = {
491 "Set",
492 "Set",
493 SET_free,
494 SET_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700495 SET_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000496 SET_constraint,
497 SET_decode_ber,
498 SET_encode_der,
499 SET_decode_xer,
500 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700501 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400502 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000503 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000504 asn_DEF_Set_tags_1,
505 sizeof(asn_DEF_Set_tags_1)
506 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
507 asn_DEF_Set_tags_1, /* Same as above */
508 sizeof(asn_DEF_Set_tags_1)
509 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400510 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000511 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000512 asn_MBR_Set_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000513 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000514 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000515};
516
517
Lev Walkin843a2462005-02-18 16:30:26 +0000518/*** <<< INCLUDES [ExtensibleSet] >>> ***/
519
520#include <UTF8String.h>
Lev Walkinc92a7462005-03-10 11:20:47 +0000521#include <ENUMERATED.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000522#include <constr_SET.h>
523
524/*** <<< DEPS [ExtensibleSet] >>> ***/
525
526
527/*
528 * Method of determining the components presence
529 */
530typedef enum ExtensibleSet_PR {
531 ExtensibleSet_PR_string, /* Member string is present */
Lev Walkinc92a7462005-03-10 11:20:47 +0000532 ExtensibleSet_PR_enum, /* Member enum is present */
Lev Walkin843a2462005-02-18 16:30:26 +0000533} ExtensibleSet_PR;
Lev Walkinc92a7462005-03-10 11:20:47 +0000534typedef enum Enum {
535 enum_b = 0,
536 enum_a = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000537} e_enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000538
539/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
540
Lev Walkin843a2462005-02-18 16:30:26 +0000541typedef struct ExtensibleSet {
542 UTF8String_t *string /* OPTIONAL */;
543 /*
544 * This type is extensible,
545 * possible extensions are below.
546 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000547 ENUMERATED_t *Enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000548
549 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
550 unsigned int _presence_map
Lev Walkinc92a7462005-03-10 11:20:47 +0000551 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin843a2462005-02-18 16:30:26 +0000552
553 /* Context for parsing across buffer boundaries */
554 asn_struct_ctx_t _asn_ctx;
555} ExtensibleSet_t;
556
Lev Walkinc8285712005-03-04 22:18:20 +0000557/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/
558
Lev Walkinc92a7462005-03-10 11:20:47 +0000559/* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000560extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800561extern asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1;
562extern asn_TYPE_member_t asn_MBR_ExtensibleSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000563
Lev Walkinc92a7462005-03-10 11:20:47 +0000564/*** <<< CODE [ExtensibleSet] >>> ***/
565
Lev Walkinc92a7462005-03-10 11:20:47 +0000566/*
567 * This type is implemented using ENUMERATED,
568 * so here we adjust the DEF accordingly.
569 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000570
Lev Walkin843a2462005-02-18 16:30:26 +0000571/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
572
Lev Walkina7591b52014-10-12 18:37:35 -0700573static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000574 { 0, 1, "b" },
575 { 1, 1, "a" }
576};
Lev Walkina7591b52014-10-12 18:37:35 -0700577static const unsigned int asn_MAP_enum_enum2value_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000578 1, /* a(1) */
579 0 /* b(0) */
580};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800581static const asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000582 asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */
583 asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */
Lev Walkinc92a7462005-03-10 11:20:47 +0000584 2, /* Number of elements in the maps */
585 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000586 1, /* Strict enumeration */
587 0, /* Native long size */
588 0
Lev Walkinc92a7462005-03-10 11:20:47 +0000589};
Lev Walkina7591b52014-10-12 18:37:35 -0700590static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000591 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
592 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
593};
594static /* Use -fall-defs-global to expose */
595asn_TYPE_descriptor_t asn_DEF_enum_4 = {
596 "enum",
597 "enum",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800598 ENUMERATED_free,
599 ENUMERATED_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700600 ENUMERATED_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800601 ENUMERATED_constraint,
602 ENUMERATED_decode_ber,
603 ENUMERATED_encode_der,
604 ENUMERATED_decode_xer,
605 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700606 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400607 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinc92a7462005-03-10 11:20:47 +0000608 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000609 asn_DEF_enum_tags_4,
610 sizeof(asn_DEF_enum_tags_4)
611 /sizeof(asn_DEF_enum_tags_4[0]) - 1, /* 1 */
612 asn_DEF_enum_tags_4, /* Same as above */
613 sizeof(asn_DEF_enum_tags_4)
614 /sizeof(asn_DEF_enum_tags_4[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400615 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000616 0, /* No PER visible constraints */
Lev Walkinc92a7462005-03-10 11:20:47 +0000617 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000618 &asn_SPC_enum_specs_4 /* Additional specs */
Lev Walkinc92a7462005-03-10 11:20:47 +0000619};
620
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800621asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000622 { ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000623 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
624 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000625 .type = &asn_DEF_UTF8String,
Lev Walkin843a2462005-02-18 16:30:26 +0000626 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400627 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000628 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
629 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000630 .name = "string"
631 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000632 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
Lev Walkinc92a7462005-03-10 11:20:47 +0000633 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
634 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000635 .type = &asn_DEF_enum_4,
Lev Walkinc92a7462005-03-10 11:20:47 +0000636 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400637 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000638 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
639 .default_value = 0,
Lev Walkinc92a7462005-03-10 11:20:47 +0000640 .name = "enum"
641 },
Lev Walkin843a2462005-02-18 16:30:26 +0000642};
Lev Walkina7591b52014-10-12 18:37:35 -0700643static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000644 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
645};
Lev Walkina7591b52014-10-12 18:37:35 -0700646static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700647 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
648 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */
Lev Walkin843a2462005-02-18 16:30:26 +0000649};
Lev Walkina7591b52014-10-12 18:37:35 -0700650static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000651 (0 << 7) | (0 << 6)
Lev Walkin843a2462005-02-18 16:30:26 +0000652};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800653asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000654 sizeof(struct ExtensibleSet),
655 offsetof(struct ExtensibleSet, _asn_ctx),
656 offsetof(struct ExtensibleSet, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000657 asn_MAP_ExtensibleSet_tag2el_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000658 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000659 asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */
Lev Walkinc92a7462005-03-10 11:20:47 +0000660 2, /* Count of tags in the CXER map */
Lev Walkin843a2462005-02-18 16:30:26 +0000661 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700662 (const unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */
Lev Walkin843a2462005-02-18 16:30:26 +0000663};
664asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
665 "ExtensibleSet",
666 "ExtensibleSet",
667 SET_free,
668 SET_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700669 SET_compare,
Lev Walkin843a2462005-02-18 16:30:26 +0000670 SET_constraint,
671 SET_decode_ber,
672 SET_encode_der,
673 SET_decode_xer,
674 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700675 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400676 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000677 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000678 asn_DEF_ExtensibleSet_tags_1,
679 sizeof(asn_DEF_ExtensibleSet_tags_1)
680 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
681 asn_DEF_ExtensibleSet_tags_1, /* Same as above */
682 sizeof(asn_DEF_ExtensibleSet_tags_1)
683 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400684 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000685 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000686 asn_MBR_ExtensibleSet_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000687 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000688 &asn_SPC_ExtensibleSet_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000689};
690
691
692/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
693
694#include <UTF8String.h>
695#include <INTEGER.h>
Lev Walkin15750402005-07-03 05:27:19 +0000696#include <GeneralizedTime.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000697#include <constr_SEQUENCE.h>
698
Lev Walkin843a2462005-02-18 16:30:26 +0000699/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
700
Lev Walkin843a2462005-02-18 16:30:26 +0000701typedef struct ExtensibleSequence {
702 UTF8String_t *string /* OPTIONAL */;
703 /*
704 * This type is extensible,
705 * possible extensions are below.
706 */
707 INTEGER_t *integer /* OPTIONAL */;
Lev Walkin15750402005-07-03 05:27:19 +0000708 GeneralizedTime_t *gtime;
Lev Walkin843a2462005-02-18 16:30:26 +0000709
710 /* Context for parsing across buffer boundaries */
711 asn_struct_ctx_t _asn_ctx;
712} ExtensibleSequence_t;
713
Lev Walkinc8285712005-03-04 22:18:20 +0000714/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/
715
716extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800717extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1;
718extern asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[3];
Lev Walkinc8285712005-03-04 22:18:20 +0000719
Lev Walkin843a2462005-02-18 16:30:26 +0000720/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
721
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800722asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000723 { ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000724 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
725 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000726 .type = &asn_DEF_UTF8String,
Lev Walkin843a2462005-02-18 16:30:26 +0000727 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400728 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000729 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
730 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000731 .name = "string"
732 },
Lev Walkin15750402005-07-03 05:27:19 +0000733 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
Lev Walkin843a2462005-02-18 16:30:26 +0000734 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
735 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000736 .type = &asn_DEF_INTEGER,
Lev Walkin843a2462005-02-18 16:30:26 +0000737 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400738 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000739 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
740 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000741 .name = "integer"
742 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000743 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
Lev Walkin15750402005-07-03 05:27:19 +0000744 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
745 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000746 .type = &asn_DEF_GeneralizedTime,
Lev Walkin15750402005-07-03 05:27:19 +0000747 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400748 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000749 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
750 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000751 .name = "gtime"
752 },
Lev Walkin843a2462005-02-18 16:30:26 +0000753};
Lev Walkina7591b52014-10-12 18:37:35 -0700754static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000755 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
756};
Lev Walkina7591b52014-10-12 18:37:35 -0700757static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700758 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
759 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer */
760 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime */
Lev Walkin843a2462005-02-18 16:30:26 +0000761};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800762asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000763 sizeof(struct ExtensibleSequence),
764 offsetof(struct ExtensibleSequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000765 asn_MAP_ExtensibleSequence_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000766 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000767 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin843a2462005-02-18 16:30:26 +0000768 0, /* Start extensions */
Lev Walkin15750402005-07-03 05:27:19 +0000769 4 /* Stop extensions */
Lev Walkin843a2462005-02-18 16:30:26 +0000770};
771asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
772 "ExtensibleSequence",
773 "ExtensibleSequence",
774 SEQUENCE_free,
775 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700776 SEQUENCE_compare,
Lev Walkin843a2462005-02-18 16:30:26 +0000777 SEQUENCE_constraint,
778 SEQUENCE_decode_ber,
779 SEQUENCE_encode_der,
780 SEQUENCE_decode_xer,
781 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700782 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400783 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000784 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000785 asn_DEF_ExtensibleSequence_tags_1,
786 sizeof(asn_DEF_ExtensibleSequence_tags_1)
787 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
788 asn_DEF_ExtensibleSequence_tags_1, /* Same as above */
789 sizeof(asn_DEF_ExtensibleSequence_tags_1)
790 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400791 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000792 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000793 asn_MBR_ExtensibleSequence_1,
Lev Walkin15750402005-07-03 05:27:19 +0000794 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000795 &asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000796};
797
798
Lev Walkin15750402005-07-03 05:27:19 +0000799/*** <<< INCLUDES [ExtensibleSequence2] >>> ***/
800
801#include <UTF8String.h>
802#include <INTEGER.h>
803#include <constr_SEQUENCE.h>
804
805/*** <<< TYPE-DECLS [ExtensibleSequence2] >>> ***/
806
807typedef struct ExtensibleSequence2 {
808 UTF8String_t *string /* OPTIONAL */;
809 /*
810 * This type is extensible,
811 * possible extensions are below.
812 */
813 INTEGER_t *integer /* OPTIONAL */;
814
815 /* Context for parsing across buffer boundaries */
816 asn_struct_ctx_t _asn_ctx;
817} ExtensibleSequence2_t;
818
819/*** <<< FUNC-DECLS [ExtensibleSequence2] >>> ***/
820
821extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800822extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1;
823extern asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[2];
Lev Walkin15750402005-07-03 05:27:19 +0000824
825/*** <<< STAT-DEFS [ExtensibleSequence2] >>> ***/
826
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800827asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000828 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
829 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
830 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000831 .type = &asn_DEF_UTF8String,
Lev Walkin15750402005-07-03 05:27:19 +0000832 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400833 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000834 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
835 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000836 .name = "string"
837 },
838 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
839 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
840 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000841 .type = &asn_DEF_INTEGER,
Lev Walkin15750402005-07-03 05:27:19 +0000842 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400843 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000844 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
845 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000846 .name = "integer"
847 },
848};
Lev Walkina7591b52014-10-12 18:37:35 -0700849static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000850 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
851};
Lev Walkina7591b52014-10-12 18:37:35 -0700852static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700853 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
854 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */
Lev Walkin15750402005-07-03 05:27:19 +0000855};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800856asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = {
Lev Walkin15750402005-07-03 05:27:19 +0000857 sizeof(struct ExtensibleSequence2),
858 offsetof(struct ExtensibleSequence2, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000859 asn_MAP_ExtensibleSequence2_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000860 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000861 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin15750402005-07-03 05:27:19 +0000862 0, /* Start extensions */
863 3 /* Stop extensions */
864};
865asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2 = {
866 "ExtensibleSequence2",
867 "ExtensibleSequence2",
868 SEQUENCE_free,
869 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700870 SEQUENCE_compare,
Lev Walkin15750402005-07-03 05:27:19 +0000871 SEQUENCE_constraint,
872 SEQUENCE_decode_ber,
873 SEQUENCE_encode_der,
874 SEQUENCE_decode_xer,
875 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700876 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400877 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin15750402005-07-03 05:27:19 +0000878 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000879 asn_DEF_ExtensibleSequence2_tags_1,
880 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
881 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
882 asn_DEF_ExtensibleSequence2_tags_1, /* Same as above */
883 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
884 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400885 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000886 0, /* No PER visible constraints */
Lev Walkin15750402005-07-03 05:27:19 +0000887 asn_MBR_ExtensibleSequence2_1,
888 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000889 &asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */
Lev Walkin15750402005-07-03 05:27:19 +0000890};
891
892
Lev Walkinf5db6142005-02-24 22:38:43 +0000893/*** <<< INCLUDES [SetOfNULL] >>> ***/
894
895#include <NULL.h>
896#include <asn_SET_OF.h>
897#include <constr_SET_OF.h>
898
Lev Walkinf5db6142005-02-24 22:38:43 +0000899/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
900
Lev Walkinf5db6142005-02-24 22:38:43 +0000901typedef struct SetOfNULL {
902 A_SET_OF(NULL_t) list;
903
904 /* Context for parsing across buffer boundaries */
905 asn_struct_ctx_t _asn_ctx;
906} SetOfNULL_t;
907
Lev Walkinc8285712005-03-04 22:18:20 +0000908/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/
909
910extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800911extern asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1;
912extern asn_TYPE_member_t asn_MBR_SetOfNULL_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000913
Lev Walkinf5db6142005-02-24 22:38:43 +0000914/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
915
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800916asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000917 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000918 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
919 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000920 .type = &asn_DEF_NULL,
Lev Walkinf5db6142005-02-24 22:38:43 +0000921 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400922 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000923 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
924 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000925 .name = ""
926 },
927};
Lev Walkina7591b52014-10-12 18:37:35 -0700928static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000929 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
930};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800931asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000932 sizeof(struct SetOfNULL),
933 offsetof(struct SetOfNULL, _asn_ctx),
934 1, /* XER encoding is XMLValueList */
935};
936asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
937 "SetOfNULL",
938 "SetOfNULL",
939 SET_OF_free,
940 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700941 SET_OF_compare,
Lev Walkinf5db6142005-02-24 22:38:43 +0000942 SET_OF_constraint,
943 SET_OF_decode_ber,
944 SET_OF_encode_der,
945 SET_OF_decode_xer,
946 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700947 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400948 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +0000949 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000950 asn_DEF_SetOfNULL_tags_1,
951 sizeof(asn_DEF_SetOfNULL_tags_1)
952 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
953 asn_DEF_SetOfNULL_tags_1, /* Same as above */
954 sizeof(asn_DEF_SetOfNULL_tags_1)
955 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400956 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000957 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000958 asn_MBR_SetOfNULL_1,
Lev Walkinf5db6142005-02-24 22:38:43 +0000959 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000960 &asn_SPC_SetOfNULL_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +0000961};
962
963
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000964/*** <<< INCLUDES [SetOfREAL] >>> ***/
965
966#include <REAL.h>
967#include <asn_SET_OF.h>
968#include <constr_SET_OF.h>
969
970/*** <<< TYPE-DECLS [SetOfREAL] >>> ***/
971
972typedef struct SetOfREAL {
973 A_SET_OF(REAL_t) list;
974
975 /* Context for parsing across buffer boundaries */
976 asn_struct_ctx_t _asn_ctx;
977} SetOfREAL_t;
978
979/*** <<< FUNC-DECLS [SetOfREAL] >>> ***/
980
981extern asn_TYPE_descriptor_t asn_DEF_SetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800982extern asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1;
983extern asn_TYPE_member_t asn_MBR_SetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000984
985/*** <<< STAT-DEFS [SetOfREAL] >>> ***/
986
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800987asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000988 { ATF_POINTER, 0, 0,
989 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
990 .tag_mode = 0,
991 .type = &asn_DEF_REAL,
992 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400993 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000994 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
995 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000996 .name = ""
997 },
998};
Lev Walkina7591b52014-10-12 18:37:35 -0700999static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001000 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1001};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001002asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001003 sizeof(struct SetOfREAL),
1004 offsetof(struct SetOfREAL, _asn_ctx),
1005 0, /* XER encoding is XMLDelimitedItemList */
1006};
1007asn_TYPE_descriptor_t asn_DEF_SetOfREAL = {
1008 "SetOfREAL",
1009 "SetOfREAL",
1010 SET_OF_free,
1011 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001012 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001013 SET_OF_constraint,
1014 SET_OF_decode_ber,
1015 SET_OF_encode_der,
1016 SET_OF_decode_xer,
1017 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001018 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001019 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001020 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001021 asn_DEF_SetOfREAL_tags_1,
1022 sizeof(asn_DEF_SetOfREAL_tags_1)
1023 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
1024 asn_DEF_SetOfREAL_tags_1, /* Same as above */
1025 sizeof(asn_DEF_SetOfREAL_tags_1)
1026 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001027 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001028 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001029 asn_MBR_SetOfREAL_1,
1030 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001031 &asn_SPC_SetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001032};
1033
1034
Lev Walkinf5db6142005-02-24 22:38:43 +00001035/*** <<< INCLUDES [SetOfEnums] >>> ***/
1036
1037#include <ENUMERATED.h>
1038#include <asn_SET_OF.h>
1039#include <constr_SET_OF.h>
1040
1041/*** <<< DEPS [SetOfEnums] >>> ***/
1042
Lev Walkine0272aa2005-03-04 11:26:08 +00001043typedef enum Member {
1044 Member_one = 0,
1045 Member_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001046} e_Member;
Lev Walkinf5db6142005-02-24 22:38:43 +00001047
1048/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
1049
Lev Walkinf5db6142005-02-24 22:38:43 +00001050typedef struct SetOfEnums {
1051 A_SET_OF(ENUMERATED_t) list;
1052
1053 /* Context for parsing across buffer boundaries */
1054 asn_struct_ctx_t _asn_ctx;
1055} SetOfEnums_t;
1056
Lev Walkinb47df092005-02-25 08:35:54 +00001057/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
1058
Lev Walkine0272aa2005-03-04 11:26:08 +00001059/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +00001060extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001061extern asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1;
1062extern asn_TYPE_member_t asn_MBR_SetOfEnums_1[1];
Lev Walkinb47df092005-02-25 08:35:54 +00001063
1064/*** <<< CODE [SetOfEnums] >>> ***/
1065
Lev Walkinb47df092005-02-25 08:35:54 +00001066/*
1067 * This type is implemented using ENUMERATED,
1068 * so here we adjust the DEF accordingly.
1069 */
Lev Walkinb47df092005-02-25 08:35:54 +00001070
Lev Walkinf5db6142005-02-24 22:38:43 +00001071/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
1072
Lev Walkina7591b52014-10-12 18:37:35 -07001073static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001074 { 0, 3, "one" },
1075 { 1, 7, "oneMore" }
1076};
Lev Walkina7591b52014-10-12 18:37:35 -07001077static const unsigned int asn_MAP_Member_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001078 0, /* one(0) */
1079 1 /* oneMore(1) */
Lev Walkinb47df092005-02-25 08:35:54 +00001080};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001081static const asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001082 asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */
1083 asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +00001084 2, /* Number of elements in the maps */
Lev Walkin295e2452005-02-25 11:47:59 +00001085 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001086 1, /* Strict enumeration */
1087 0, /* Native long size */
1088 0
Lev Walkinb47df092005-02-25 08:35:54 +00001089};
Lev Walkina7591b52014-10-12 18:37:35 -07001090static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkinb47df092005-02-25 08:35:54 +00001091 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1092};
1093static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +00001094asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001095 "ENUMERATED",
1096 "ENUMERATED",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001097 ENUMERATED_free,
1098 ENUMERATED_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001099 ENUMERATED_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001100 ENUMERATED_constraint,
1101 ENUMERATED_decode_ber,
1102 ENUMERATED_encode_der,
1103 ENUMERATED_decode_xer,
1104 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001105 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001106 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb47df092005-02-25 08:35:54 +00001107 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001108 asn_DEF_Member_tags_2,
1109 sizeof(asn_DEF_Member_tags_2)
1110 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
1111 asn_DEF_Member_tags_2, /* Same as above */
1112 sizeof(asn_DEF_Member_tags_2)
1113 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001114 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001115 0, /* No PER visible constraints */
Lev Walkinb47df092005-02-25 08:35:54 +00001116 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001117 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkinb47df092005-02-25 08:35:54 +00001118};
1119
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001120asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001121 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001122 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1123 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001124 .type = &asn_DEF_Member_2,
Lev Walkinf5db6142005-02-24 22:38:43 +00001125 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001126 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001127 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1128 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001129 .name = ""
1130 },
1131};
Lev Walkina7591b52014-10-12 18:37:35 -07001132static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001133 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1134};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001135asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001136 sizeof(struct SetOfEnums),
1137 offsetof(struct SetOfEnums, _asn_ctx),
Lev Walkinb47df092005-02-25 08:35:54 +00001138 1, /* XER encoding is XMLValueList */
Lev Walkinf5db6142005-02-24 22:38:43 +00001139};
1140asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
1141 "SetOfEnums",
1142 "SetOfEnums",
1143 SET_OF_free,
1144 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001145 SET_OF_compare,
Lev Walkinf5db6142005-02-24 22:38:43 +00001146 SET_OF_constraint,
1147 SET_OF_decode_ber,
1148 SET_OF_encode_der,
1149 SET_OF_decode_xer,
1150 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001151 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001152 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001153 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001154 asn_DEF_SetOfEnums_tags_1,
1155 sizeof(asn_DEF_SetOfEnums_tags_1)
1156 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
1157 asn_DEF_SetOfEnums_tags_1, /* Same as above */
1158 sizeof(asn_DEF_SetOfEnums_tags_1)
1159 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001160 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001161 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001162 asn_MBR_SetOfEnums_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001163 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001164 &asn_SPC_SetOfEnums_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001165};
1166
1167
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001168/*** <<< INCLUDES [NamedSetOfNULL] >>> ***/
1169
1170#include <NULL.h>
1171#include <asn_SET_OF.h>
1172#include <constr_SET_OF.h>
1173
1174/*** <<< TYPE-DECLS [NamedSetOfNULL] >>> ***/
1175
1176typedef struct NamedSetOfNULL {
1177 A_SET_OF(NULL_t) list;
1178
1179 /* Context for parsing across buffer boundaries */
1180 asn_struct_ctx_t _asn_ctx;
1181} NamedSetOfNULL_t;
1182
1183/*** <<< FUNC-DECLS [NamedSetOfNULL] >>> ***/
1184
1185extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001186extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1;
1187extern asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001188
1189/*** <<< STAT-DEFS [NamedSetOfNULL] >>> ***/
1190
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001191asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001192 { ATF_POINTER, 0, 0,
1193 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1194 .tag_mode = 0,
1195 .type = &asn_DEF_NULL,
1196 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001197 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001198 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1199 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001200 .name = "y"
1201 },
1202};
Lev Walkina7591b52014-10-12 18:37:35 -07001203static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001204 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1205};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001206asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001207 sizeof(struct NamedSetOfNULL),
1208 offsetof(struct NamedSetOfNULL, _asn_ctx),
1209 1, /* XER encoding is XMLValueList */
1210};
1211asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL = {
1212 "NamedSetOfNULL",
1213 "NamedSetOfNULL",
1214 SET_OF_free,
1215 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001216 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001217 SET_OF_constraint,
1218 SET_OF_decode_ber,
1219 SET_OF_encode_der,
1220 SET_OF_decode_xer,
1221 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001222 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001223 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001224 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001225 asn_DEF_NamedSetOfNULL_tags_1,
1226 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1227 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
1228 asn_DEF_NamedSetOfNULL_tags_1, /* Same as above */
1229 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1230 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001231 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001232 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001233 asn_MBR_NamedSetOfNULL_1,
1234 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001235 &asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001236};
1237
1238
1239/*** <<< INCLUDES [NamedSetOfREAL] >>> ***/
1240
1241#include <REAL.h>
1242#include <asn_SET_OF.h>
1243#include <constr_SET_OF.h>
1244
1245/*** <<< TYPE-DECLS [NamedSetOfREAL] >>> ***/
1246
1247typedef struct NamedSetOfREAL {
1248 A_SET_OF(REAL_t) list;
1249
1250 /* Context for parsing across buffer boundaries */
1251 asn_struct_ctx_t _asn_ctx;
1252} NamedSetOfREAL_t;
1253
1254/*** <<< FUNC-DECLS [NamedSetOfREAL] >>> ***/
1255
1256extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001257extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1;
1258extern asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001259
1260/*** <<< STAT-DEFS [NamedSetOfREAL] >>> ***/
1261
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001262asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001263 { ATF_POINTER, 0, 0,
1264 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1265 .tag_mode = 0,
1266 .type = &asn_DEF_REAL,
1267 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001268 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001269 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1270 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001271 .name = "name"
1272 },
1273};
Lev Walkina7591b52014-10-12 18:37:35 -07001274static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001275 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1276};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001277asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001278 sizeof(struct NamedSetOfREAL),
1279 offsetof(struct NamedSetOfREAL, _asn_ctx),
1280 0, /* XER encoding is XMLDelimitedItemList */
1281};
1282asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL = {
1283 "NamedSetOfREAL",
1284 "NamedSetOfREAL",
1285 SET_OF_free,
1286 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001287 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001288 SET_OF_constraint,
1289 SET_OF_decode_ber,
1290 SET_OF_encode_der,
1291 SET_OF_decode_xer,
1292 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001293 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001294 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001295 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001296 asn_DEF_NamedSetOfREAL_tags_1,
1297 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1298 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
1299 asn_DEF_NamedSetOfREAL_tags_1, /* Same as above */
1300 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1301 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001302 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001303 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001304 asn_MBR_NamedSetOfREAL_1,
1305 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001306 &asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001307};
1308
1309
1310/*** <<< INCLUDES [NamedSetOfEnums] >>> ***/
1311
1312#include <ENUMERATED.h>
1313#include <asn_SET_OF.h>
1314#include <constr_SET_OF.h>
1315
1316/*** <<< DEPS [NamedSetOfEnums] >>> ***/
1317
1318typedef enum name {
1319 name_one = 0,
1320 name_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001321} e_name;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001322
1323/*** <<< TYPE-DECLS [NamedSetOfEnums] >>> ***/
1324
1325typedef struct NamedSetOfEnums {
1326 A_SET_OF(ENUMERATED_t) list;
1327
1328 /* Context for parsing across buffer boundaries */
1329 asn_struct_ctx_t _asn_ctx;
1330} NamedSetOfEnums_t;
1331
1332/*** <<< FUNC-DECLS [NamedSetOfEnums] >>> ***/
1333
1334/* extern asn_TYPE_descriptor_t asn_DEF_name_2; // (Use -fall-defs-global to expose) */
1335extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001336extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1;
1337extern asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001338
1339/*** <<< CODE [NamedSetOfEnums] >>> ***/
1340
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001341/*
1342 * This type is implemented using ENUMERATED,
1343 * so here we adjust the DEF accordingly.
1344 */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001345
1346/*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/
1347
Lev Walkina7591b52014-10-12 18:37:35 -07001348static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001349 { 0, 3, "one" },
1350 { 1, 7, "oneMore" }
1351};
Lev Walkina7591b52014-10-12 18:37:35 -07001352static const unsigned int asn_MAP_name_enum2value_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001353 0, /* one(0) */
1354 1 /* oneMore(1) */
1355};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001356static const asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001357 asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */
1358 asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001359 2, /* Number of elements in the maps */
1360 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001361 1, /* Strict enumeration */
1362 0, /* Native long size */
1363 0
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001364};
Lev Walkina7591b52014-10-12 18:37:35 -07001365static const ber_tlv_tag_t asn_DEF_name_tags_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001366 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1367};
1368static /* Use -fall-defs-global to expose */
1369asn_TYPE_descriptor_t asn_DEF_name_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001370 "ENUMERATED",
1371 "ENUMERATED",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001372 ENUMERATED_free,
1373 ENUMERATED_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001374 ENUMERATED_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001375 ENUMERATED_constraint,
1376 ENUMERATED_decode_ber,
1377 ENUMERATED_encode_der,
1378 ENUMERATED_decode_xer,
1379 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001380 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001381 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001382 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001383 asn_DEF_name_tags_2,
1384 sizeof(asn_DEF_name_tags_2)
1385 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
1386 asn_DEF_name_tags_2, /* Same as above */
1387 sizeof(asn_DEF_name_tags_2)
1388 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001389 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001390 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001391 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001392 &asn_SPC_name_specs_2 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001393};
1394
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001395asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001396 { ATF_POINTER, 0, 0,
1397 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1398 .tag_mode = 0,
1399 .type = &asn_DEF_name_2,
1400 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001401 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001402 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1403 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001404 .name = "name"
1405 },
1406};
Lev Walkina7591b52014-10-12 18:37:35 -07001407static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001408 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1409};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001410asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001411 sizeof(struct NamedSetOfEnums),
1412 offsetof(struct NamedSetOfEnums, _asn_ctx),
1413 1, /* XER encoding is XMLValueList */
1414};
1415asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums = {
1416 "NamedSetOfEnums",
1417 "NamedSetOfEnums",
1418 SET_OF_free,
1419 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001420 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001421 SET_OF_constraint,
1422 SET_OF_decode_ber,
1423 SET_OF_encode_der,
1424 SET_OF_decode_xer,
1425 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001426 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001427 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001428 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001429 asn_DEF_NamedSetOfEnums_tags_1,
1430 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1431 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
1432 asn_DEF_NamedSetOfEnums_tags_1, /* Same as above */
1433 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1434 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001435 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001436 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001437 asn_MBR_NamedSetOfEnums_1,
1438 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001439 &asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001440};
1441
1442
Lev Walkin843a2462005-02-18 16:30:26 +00001443/*** <<< INCLUDES [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001444
1445#include <INTEGER.h>
1446#include <asn_SEQUENCE_OF.h>
1447#include <constr_SEQUENCE_OF.h>
1448
Lev Walkin843a2462005-02-18 16:30:26 +00001449/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001450
Lev Walkin843a2462005-02-18 16:30:26 +00001451typedef struct SequenceOf {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001452 A_SEQUENCE_OF(INTEGER_t) list;
1453
1454 /* Context for parsing across buffer boundaries */
1455 asn_struct_ctx_t _asn_ctx;
Lev Walkin843a2462005-02-18 16:30:26 +00001456} SequenceOf_t;
Lev Walkin0ef9f142005-02-14 20:40:57 +00001457
Lev Walkinc8285712005-03-04 22:18:20 +00001458/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
1459
1460extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001461extern asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1;
1462extern asn_TYPE_member_t asn_MBR_SequenceOf_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001463
Lev Walkin843a2462005-02-18 16:30:26 +00001464/*** <<< STAT-DEFS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001465
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001466asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001467 { ATF_POINTER, 0, 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001468 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
1469 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001470 .type = &asn_DEF_INTEGER,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001471 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001472 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001473 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1474 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001475 .name = "id"
1476 },
1477};
Lev Walkina7591b52014-10-12 18:37:35 -07001478static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001479 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1480};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001481asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +00001482 sizeof(struct SequenceOf),
1483 offsetof(struct SequenceOf, _asn_ctx),
Lev Walkin0ef9f142005-02-14 20:40:57 +00001484 0, /* XER encoding is XMLDelimitedItemList */
1485};
Lev Walkin843a2462005-02-18 16:30:26 +00001486asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
1487 "SequenceOf",
1488 "SequenceOf",
Lev Walkin0ef9f142005-02-14 20:40:57 +00001489 SEQUENCE_OF_free,
1490 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001491 SEQUENCE_OF_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001492 SEQUENCE_OF_constraint,
1493 SEQUENCE_OF_decode_ber,
1494 SEQUENCE_OF_encode_der,
1495 SEQUENCE_OF_decode_xer,
1496 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001497 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001498 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001499 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001500 asn_DEF_SequenceOf_tags_1,
1501 sizeof(asn_DEF_SequenceOf_tags_1)
1502 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
1503 asn_DEF_SequenceOf_tags_1, /* Same as above */
1504 sizeof(asn_DEF_SequenceOf_tags_1)
1505 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001506 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001507 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001508 asn_MBR_SequenceOf_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001509 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001510 &asn_SPC_SequenceOf_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001511};
1512
Lev Walkinf5db6142005-02-24 22:38:43 +00001513
1514/*** <<< INCLUDES [SeqOfZuka] >>> ***/
1515
1516#include <NULL.h>
1517#include <asn_SEQUENCE_OF.h>
1518#include <constr_SEQUENCE_OF.h>
1519
Lev Walkinf5db6142005-02-24 22:38:43 +00001520/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
1521
Lev Walkinf5db6142005-02-24 22:38:43 +00001522typedef struct SeqOfZuka {
1523 A_SEQUENCE_OF(NULL_t) list;
1524
1525 /* Context for parsing across buffer boundaries */
1526 asn_struct_ctx_t _asn_ctx;
1527} SeqOfZuka_t;
1528
Lev Walkinc8285712005-03-04 22:18:20 +00001529/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/
1530
1531extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001532extern asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1;
1533extern asn_TYPE_member_t asn_MBR_SeqOfZuka_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001534
Lev Walkinf5db6142005-02-24 22:38:43 +00001535/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
1536
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001537asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001538 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001539 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1540 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001541 .type = &asn_DEF_NULL,
Lev Walkinf5db6142005-02-24 22:38:43 +00001542 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001543 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001544 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1545 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001546 .name = "zuka"
1547 },
1548};
Lev Walkina7591b52014-10-12 18:37:35 -07001549static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001550 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1551};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001552asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001553 sizeof(struct SeqOfZuka),
1554 offsetof(struct SeqOfZuka, _asn_ctx),
1555 1, /* XER encoding is XMLValueList */
1556};
1557asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
1558 "SeqOfZuka",
1559 "SeqOfZuka",
1560 SEQUENCE_OF_free,
1561 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001562 SEQUENCE_OF_compare,
Lev Walkinf5db6142005-02-24 22:38:43 +00001563 SEQUENCE_OF_constraint,
1564 SEQUENCE_OF_decode_ber,
1565 SEQUENCE_OF_encode_der,
1566 SEQUENCE_OF_decode_xer,
1567 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001568 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001569 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001570 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001571 asn_DEF_SeqOfZuka_tags_1,
1572 sizeof(asn_DEF_SeqOfZuka_tags_1)
1573 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
1574 asn_DEF_SeqOfZuka_tags_1, /* Same as above */
1575 sizeof(asn_DEF_SeqOfZuka_tags_1)
1576 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001577 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001578 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001579 asn_MBR_SeqOfZuka_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001580 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001581 &asn_SPC_SeqOfZuka_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001582};
1583
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001584
1585/*** <<< INCLUDES [SetOfChoice] >>> ***/
1586
1587#include <asn_SET_OF.h>
1588#include <constr_SET_OF.h>
1589
1590/*** <<< FWD-DECLS [SetOfChoice] >>> ***/
1591
1592struct SimpleChoice;
1593
1594/*** <<< TYPE-DECLS [SetOfChoice] >>> ***/
1595
1596typedef struct SetOfChoice {
1597 A_SET_OF(struct SimpleChoice) list;
1598
1599 /* Context for parsing across buffer boundaries */
1600 asn_struct_ctx_t _asn_ctx;
1601} SetOfChoice_t;
1602
1603/*** <<< FUNC-DECLS [SetOfChoice] >>> ***/
1604
1605extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001606extern asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1;
1607extern asn_TYPE_member_t asn_MBR_SetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001608
1609/*** <<< POST-INCLUDE [SetOfChoice] >>> ***/
1610
Lev Walkin22b5ed42006-09-13 02:51:20 +00001611#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001612
1613/*** <<< STAT-DEFS [SetOfChoice] >>> ***/
1614
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001615asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001616 { ATF_POINTER, 0, 0,
1617 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1618 .tag_mode = 0,
1619 .type = &asn_DEF_SimpleChoice,
1620 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001621 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001622 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1623 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001624 .name = ""
1625 },
1626};
Lev Walkina7591b52014-10-12 18:37:35 -07001627static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001628 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1629};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001630asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001631 sizeof(struct SetOfChoice),
1632 offsetof(struct SetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001633 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001634};
1635asn_TYPE_descriptor_t asn_DEF_SetOfChoice = {
1636 "SetOfChoice",
1637 "SetOfChoice",
1638 SET_OF_free,
1639 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001640 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001641 SET_OF_constraint,
1642 SET_OF_decode_ber,
1643 SET_OF_encode_der,
1644 SET_OF_decode_xer,
1645 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001646 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001647 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001648 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001649 asn_DEF_SetOfChoice_tags_1,
1650 sizeof(asn_DEF_SetOfChoice_tags_1)
1651 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
1652 asn_DEF_SetOfChoice_tags_1, /* Same as above */
1653 sizeof(asn_DEF_SetOfChoice_tags_1)
1654 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001655 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001656 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001657 asn_MBR_SetOfChoice_1,
1658 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001659 &asn_SPC_SetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001660};
1661
1662
1663/*** <<< INCLUDES [NamedSetOfChoice] >>> ***/
1664
1665#include <asn_SET_OF.h>
1666#include <constr_SET_OF.h>
1667
1668/*** <<< FWD-DECLS [NamedSetOfChoice] >>> ***/
1669
1670struct SimpleChoice;
1671
1672/*** <<< TYPE-DECLS [NamedSetOfChoice] >>> ***/
1673
1674typedef struct NamedSetOfChoice {
1675 A_SET_OF(struct SimpleChoice) list;
1676
1677 /* Context for parsing across buffer boundaries */
1678 asn_struct_ctx_t _asn_ctx;
1679} NamedSetOfChoice_t;
1680
1681/*** <<< FUNC-DECLS [NamedSetOfChoice] >>> ***/
1682
1683extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001684extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1;
1685extern asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001686
1687/*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/
1688
Lev Walkin22b5ed42006-09-13 02:51:20 +00001689#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001690
1691/*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/
1692
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001693asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001694 { ATF_POINTER, 0, 0,
1695 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1696 .tag_mode = 0,
1697 .type = &asn_DEF_SimpleChoice,
1698 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001699 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001700 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1701 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001702 .name = "whatever"
1703 },
1704};
Lev Walkina7591b52014-10-12 18:37:35 -07001705static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001706 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1707};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001708asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001709 sizeof(struct NamedSetOfChoice),
1710 offsetof(struct NamedSetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001711 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001712};
1713asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice = {
1714 "NamedSetOfChoice",
1715 "NamedSetOfChoice",
1716 SET_OF_free,
1717 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001718 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001719 SET_OF_constraint,
1720 SET_OF_decode_ber,
1721 SET_OF_encode_der,
1722 SET_OF_decode_xer,
1723 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001724 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001725 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001726 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001727 asn_DEF_NamedSetOfChoice_tags_1,
1728 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1729 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
1730 asn_DEF_NamedSetOfChoice_tags_1, /* Same as above */
1731 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1732 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001733 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001734 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001735 asn_MBR_NamedSetOfChoice_1,
1736 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001737 &asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001738};
1739
1740
1741/*** <<< INCLUDES [SimpleChoice] >>> ***/
1742
1743#include <NULL.h>
1744#include <INTEGER.h>
1745#include <constr_CHOICE.h>
1746
1747/*** <<< DEPS [SimpleChoice] >>> ***/
1748
1749typedef enum SimpleChoice_PR {
1750 SimpleChoice_PR_NOTHING, /* No components present */
1751 SimpleChoice_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001752 SimpleChoice_PR_b
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001753} SimpleChoice_PR;
1754
1755/*** <<< TYPE-DECLS [SimpleChoice] >>> ***/
1756
1757typedef struct SimpleChoice {
1758 SimpleChoice_PR present;
1759 union SimpleChoice_u {
1760 NULL_t a;
1761 INTEGER_t b;
1762 } choice;
1763
1764 /* Context for parsing across buffer boundaries */
1765 asn_struct_ctx_t _asn_ctx;
1766} SimpleChoice_t;
1767
1768/*** <<< FUNC-DECLS [SimpleChoice] >>> ***/
1769
1770extern asn_TYPE_descriptor_t asn_DEF_SimpleChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001771extern asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1;
1772extern asn_TYPE_member_t asn_MBR_SimpleChoice_1[2];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001773
1774/*** <<< STAT-DEFS [SimpleChoice] >>> ***/
1775
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001776asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001777 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.a),
1778 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1779 .tag_mode = -1, /* IMPLICIT tag at current level */
1780 .type = &asn_DEF_NULL,
1781 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001782 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001783 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1784 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001785 .name = "a"
1786 },
1787 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.b),
1788 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1789 .tag_mode = -1, /* IMPLICIT tag at current level */
1790 .type = &asn_DEF_INTEGER,
1791 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001792 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001793 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1794 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001795 .name = "b"
1796 },
1797};
Lev Walkina7591b52014-10-12 18:37:35 -07001798static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001799 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1800 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001801};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001802asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001803 sizeof(struct SimpleChoice),
1804 offsetof(struct SimpleChoice, _asn_ctx),
1805 offsetof(struct SimpleChoice, present),
1806 sizeof(((struct SimpleChoice *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +00001807 asn_MAP_SimpleChoice_tag2el_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001808 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001809 .canonical_order = 0,
1810 .ext_start = -1 /* Extensions start */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001811};
1812asn_TYPE_descriptor_t asn_DEF_SimpleChoice = {
1813 "SimpleChoice",
1814 "SimpleChoice",
1815 CHOICE_free,
1816 CHOICE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001817 CHOICE_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001818 CHOICE_constraint,
1819 CHOICE_decode_ber,
1820 CHOICE_encode_der,
1821 CHOICE_decode_xer,
1822 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001823 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001824 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001825 CHOICE_outmost_tag,
1826 0, /* No effective tags (pointer) */
1827 0, /* No effective tags (count) */
1828 0, /* No tags (pointer) */
1829 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +04001830 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001831 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001832 asn_MBR_SimpleChoice_1,
1833 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001834 &asn_SPC_SimpleChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001835};
1836