blob: 7879a7cba20e168f6d4a8ff5b1c95c462bad3c9e [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 Walkin67a30122017-08-10 05:48:54 -070085 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070086 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070087 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +000088 .name = "sequence"
89 },
90 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
91 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
92 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000093 .type = &asn_DEF_Set,
Lev Walkin67a30122017-08-10 05:48:54 -070094 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070095 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070096 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +000097 .name = "set"
98 },
Lev Walkin843a2462005-02-18 16:30:26 +000099 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000100 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin0ef9f142005-02-14 20:40:57 +0000101 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000102 .type = &asn_DEF_SequenceOf,
Lev Walkin67a30122017-08-10 05:48:54 -0700103 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700104 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700105 0, 0, /* No default value */
Lev Walkin843a2462005-02-18 16:30:26 +0000106 .name = "sequenceOf"
107 },
108 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000109 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000110 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000111 .type = &asn_DEF_ExtensibleSet,
Lev Walkin67a30122017-08-10 05:48:54 -0700112 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700113 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700114 0, 0, /* No default value */
Lev Walkin843a2462005-02-18 16:30:26 +0000115 .name = "extensibleSet"
116 },
117 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000118 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000119 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000120 .type = &asn_DEF_ExtensibleSequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700121 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700122 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700123 0, 0, /* No default value */
Lev Walkin843a2462005-02-18 16:30:26 +0000124 .name = "extensibleSequence"
Lev Walkin0ef9f142005-02-14 20:40:57 +0000125 },
Lev Walkin15750402005-07-03 05:27:19 +0000126 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000127 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000128 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000129 .type = &asn_DEF_ExtensibleSequence2,
Lev Walkin67a30122017-08-10 05:48:54 -0700130 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700131 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700132 0, 0, /* No default value */
Lev Walkin15750402005-07-03 05:27:19 +0000133 .name = "extensibleSequence2"
134 },
135 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000136 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
Lev Walkin15750402005-07-03 05:27:19 +0000137 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000138 .type = &asn_DEF_SetOfNULL,
Lev Walkin67a30122017-08-10 05:48:54 -0700139 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700140 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700141 0, 0, /* No default value */
Lev Walkinf5db6142005-02-24 22:38:43 +0000142 .name = "setOfNULL"
143 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000144 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfREAL),
145 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
146 .tag_mode = -1, /* IMPLICIT tag at current level */
147 .type = &asn_DEF_SetOfREAL,
Lev Walkin67a30122017-08-10 05:48:54 -0700148 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700149 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700150 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000151 .name = "setOfREAL"
152 },
Lev Walkinf5db6142005-02-24 22:38:43 +0000153 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
Lev Walkin15750402005-07-03 05:27:19 +0000154 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000155 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000156 .type = &asn_DEF_SetOfEnums,
Lev Walkin67a30122017-08-10 05:48:54 -0700157 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700158 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700159 0, 0, /* No default value */
Lev Walkinf5db6142005-02-24 22:38:43 +0000160 .name = "setOfEnums"
161 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000162 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfNULL),
Lev Walkin15750402005-07-03 05:27:19 +0000163 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000164 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000165 .type = &asn_DEF_NamedSetOfNULL,
Lev Walkin67a30122017-08-10 05:48:54 -0700166 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700167 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700168 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000169 .name = "namedSetOfNULL"
170 },
171 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfREAL),
172 .tag = (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
173 .tag_mode = -1, /* IMPLICIT tag at current level */
174 .type = &asn_DEF_NamedSetOfREAL,
Lev Walkin67a30122017-08-10 05:48:54 -0700175 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700176 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700177 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000178 .name = "namedSetOfREAL"
179 },
180 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfEnums),
181 .tag = (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
182 .tag_mode = -1, /* IMPLICIT tag at current level */
183 .type = &asn_DEF_NamedSetOfEnums,
Lev Walkin67a30122017-08-10 05:48:54 -0700184 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700185 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700186 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000187 .name = "namedSetOfEnums"
188 },
189 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
190 .tag = (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
191 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000192 .type = &asn_DEF_SeqOfZuka,
Lev Walkin67a30122017-08-10 05:48:54 -0700193 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700194 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700195 0, 0, /* No default value */
Lev Walkinf5db6142005-02-24 22:38:43 +0000196 .name = "seqOfZuka"
197 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000198 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfChoice),
199 .tag = (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
200 .tag_mode = -1, /* IMPLICIT tag at current level */
201 .type = &asn_DEF_SetOfChoice,
Lev Walkin67a30122017-08-10 05:48:54 -0700202 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700203 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700204 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000205 .name = "setOfChoice"
206 },
207 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfChoice),
208 .tag = (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
209 .tag_mode = -1, /* IMPLICIT tag at current level */
210 .type = &asn_DEF_NamedSetOfChoice,
Lev Walkin67a30122017-08-10 05:48:54 -0700211 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700212 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700213 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000214 .name = "namedSetOfChoice"
215 },
Lev Walkin0ef9f142005-02-14 20:40:57 +0000216};
Lev Walkina7591b52014-10-12 18:37:35 -0700217static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700218 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence */
219 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
220 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceOf */
221 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* extensibleSet */
222 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSequence */
223 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence2 */
224 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL */
225 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfREAL */
226 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setOfEnums */
227 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* namedSetOfNULL */
228 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* namedSetOfREAL */
229 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* namedSetOfEnums */
230 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* seqOfZuka */
231 { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* setOfChoice */
232 { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* namedSetOfChoice */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000233};
Lev Walkin59b176e2005-11-26 11:25:14 +0000234static asn_CHOICE_specifics_t asn_SPC_PDU_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000235 sizeof(struct PDU),
236 offsetof(struct PDU, _asn_ctx),
237 offsetof(struct PDU, present),
238 sizeof(((struct PDU *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700239 .tag2el = asn_MAP_PDU_tag2el_1,
240 .tag2el_count = 15, /* Count of tags in the map */
Lev Walkin20696a42017-10-17 21:27:33 -0700241 0, 0,
Lev Walkindf2edbb2017-10-21 13:40:07 -0700242 .first_extension = 15 /* Extensions start */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000243};
244asn_TYPE_descriptor_t asn_DEF_PDU = {
245 "PDU",
246 "PDU",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800247 &asn_OP_CHOICE,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000248 0, /* No effective tags (pointer) */
249 0, /* No effective tags (count) */
250 0, /* No tags (pointer) */
251 0, /* No tags (count) */
Lev Walkin0bfea562017-09-29 23:16:48 -0700252 { 0, 0, CHOICE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000253 asn_MBR_PDU_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000254 15, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000255 &asn_SPC_PDU_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000256};
257
258
259/*** <<< INCLUDES [Sequence] >>> ***/
260
261#include <INTEGER.h>
Lev Walkin0ef9f142005-02-14 20:40:57 +0000262#include <BIT_STRING.h>
263#include <UTF8String.h>
264#include <constr_SEQUENCE.h>
265
Lev Walkinc8285712005-03-04 22:18:20 +0000266/*** <<< FWD-DECLS [Sequence] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000267
Lev Walkinbf56d542005-03-04 23:50:56 +0000268struct Sequence;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000269
270/*** <<< TYPE-DECLS [Sequence] >>> ***/
271
Lev Walkin0ef9f142005-02-14 20:40:57 +0000272typedef struct Sequence {
273 INTEGER_t integer;
274 struct Sequence *sequence /* OPTIONAL */;
275 BIT_STRING_t *bits /* OPTIONAL */;
276 UTF8String_t string;
277
278 /* Context for parsing across buffer boundaries */
279 asn_struct_ctx_t _asn_ctx;
280} Sequence_t;
281
Lev Walkinc8285712005-03-04 22:18:20 +0000282/*** <<< FUNC-DECLS [Sequence] >>> ***/
283
284extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800285extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
286extern asn_TYPE_member_t asn_MBR_Sequence_1[4];
Lev Walkinc8285712005-03-04 22:18:20 +0000287
288/*** <<< POST-INCLUDE [Sequence] >>> ***/
289
Lev Walkin22b5ed42006-09-13 02:51:20 +0000290#include "Sequence.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000291
Lev Walkin0ef9f142005-02-14 20:40:57 +0000292/*** <<< STAT-DEFS [Sequence] >>> ***/
293
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800294asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000295 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
296 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
297 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000298 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700299 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700300 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700301 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000302 .name = "integer"
303 },
304 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
305 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
306 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000307 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700308 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700309 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700310 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000311 .name = "sequence"
312 },
313 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
314 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
315 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000316 .type = &asn_DEF_BIT_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700317 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700318 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700319 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000320 .name = "bits"
321 },
322 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
323 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
324 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000325 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700326 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700327 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700328 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000329 .name = "string"
330 },
331};
Lev Walkina7591b52014-10-12 18:37:35 -0700332static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000333 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
334};
Lev Walkina7591b52014-10-12 18:37:35 -0700335static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700336 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
337 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence */
338 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits */
339 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000340};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800341asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000342 sizeof(struct Sequence),
343 offsetof(struct Sequence, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700344 .tag2el = asn_MAP_Sequence_tag2el_1,
345 .tag2el_count = 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000346 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700347 -1, /* First extension addition */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000348};
349asn_TYPE_descriptor_t asn_DEF_Sequence = {
350 "Sequence",
351 "Sequence",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800352 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000353 asn_DEF_Sequence_tags_1,
354 sizeof(asn_DEF_Sequence_tags_1)
355 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
356 asn_DEF_Sequence_tags_1, /* Same as above */
357 sizeof(asn_DEF_Sequence_tags_1)
358 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700359 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000360 asn_MBR_Sequence_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000361 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000362 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000363};
364
365
366/*** <<< INCLUDES [Set] >>> ***/
367
368#include <RELATIVE-OID.h>
369#include <OCTET_STRING.h>
370#include <constr_SET.h>
371
372/*** <<< DEPS [Set] >>> ***/
373
374
375/*
376 * Method of determining the components presence
377 */
378typedef enum Set_PR {
379 Set_PR_roid, /* Member roid is present */
380 Set_PR_opaque, /* Member opaque is present */
381} Set_PR;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000382
383/*** <<< TYPE-DECLS [Set] >>> ***/
384
Lev Walkin0ef9f142005-02-14 20:40:57 +0000385typedef struct Set {
386 RELATIVE_OID_t roid;
387 OCTET_STRING_t *opaque /* OPTIONAL */;
388
389 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
390 unsigned int _presence_map
391 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
392
393 /* Context for parsing across buffer boundaries */
394 asn_struct_ctx_t _asn_ctx;
395} Set_t;
396
Lev Walkinc8285712005-03-04 22:18:20 +0000397/*** <<< FUNC-DECLS [Set] >>> ***/
398
399extern asn_TYPE_descriptor_t asn_DEF_Set;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800400extern asn_SET_specifics_t asn_SPC_Set_specs_1;
401extern asn_TYPE_member_t asn_MBR_Set_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000402
Lev Walkin0ef9f142005-02-14 20:40:57 +0000403/*** <<< STAT-DEFS [Set] >>> ***/
404
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800405asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000406 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
407 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
408 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000409 .type = &asn_DEF_RELATIVE_OID,
Lev Walkin67a30122017-08-10 05:48:54 -0700410 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700411 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700412 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000413 .name = "roid"
414 },
415 { ATF_POINTER, 1, offsetof(struct Set, opaque),
416 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
417 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000418 .type = &asn_DEF_OCTET_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700419 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700420 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700421 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000422 .name = "opaque"
423 },
424};
Lev Walkina7591b52014-10-12 18:37:35 -0700425static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000426 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
427};
Lev Walkina7591b52014-10-12 18:37:35 -0700428static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700429 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */
430 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000431};
Lev Walkina7591b52014-10-12 18:37:35 -0700432static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000433 (1 << 7) | (0 << 6)
434};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800435asn_SET_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000436 sizeof(struct Set),
437 offsetof(struct Set, _asn_ctx),
438 offsetof(struct Set, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700439 .tag2el = asn_MAP_Set_tag2el_1,
440 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000441 asn_MAP_Set_tag2el_1, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000442 2, /* Count of tags in the CXER map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000443 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700444 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000445};
446asn_TYPE_descriptor_t asn_DEF_Set = {
447 "Set",
448 "Set",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800449 &asn_OP_SET,
Lev Walkin59b176e2005-11-26 11:25:14 +0000450 asn_DEF_Set_tags_1,
451 sizeof(asn_DEF_Set_tags_1)
452 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
453 asn_DEF_Set_tags_1, /* Same as above */
454 sizeof(asn_DEF_Set_tags_1)
455 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700456 { 0, 0, SET_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000457 asn_MBR_Set_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000458 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000459 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000460};
461
462
Lev Walkin843a2462005-02-18 16:30:26 +0000463/*** <<< INCLUDES [ExtensibleSet] >>> ***/
464
465#include <UTF8String.h>
Lev Walkinc92a7462005-03-10 11:20:47 +0000466#include <ENUMERATED.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000467#include <constr_SET.h>
468
469/*** <<< DEPS [ExtensibleSet] >>> ***/
470
471
472/*
473 * Method of determining the components presence
474 */
475typedef enum ExtensibleSet_PR {
476 ExtensibleSet_PR_string, /* Member string is present */
Lev Walkinc92a7462005-03-10 11:20:47 +0000477 ExtensibleSet_PR_enum, /* Member enum is present */
Lev Walkin843a2462005-02-18 16:30:26 +0000478} ExtensibleSet_PR;
Lev Walkinc92a7462005-03-10 11:20:47 +0000479typedef enum Enum {
480 enum_b = 0,
481 enum_a = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000482} e_enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000483
484/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
485
Lev Walkin843a2462005-02-18 16:30:26 +0000486typedef struct ExtensibleSet {
487 UTF8String_t *string /* OPTIONAL */;
488 /*
489 * This type is extensible,
490 * possible extensions are below.
491 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000492 ENUMERATED_t *Enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000493
494 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
495 unsigned int _presence_map
Lev Walkinc92a7462005-03-10 11:20:47 +0000496 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin843a2462005-02-18 16:30:26 +0000497
498 /* Context for parsing across buffer boundaries */
499 asn_struct_ctx_t _asn_ctx;
500} ExtensibleSet_t;
501
Lev Walkinc8285712005-03-04 22:18:20 +0000502/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/
503
Lev Walkinc92a7462005-03-10 11:20:47 +0000504/* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000505extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800506extern asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1;
507extern asn_TYPE_member_t asn_MBR_ExtensibleSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000508
Lev Walkinc92a7462005-03-10 11:20:47 +0000509/*** <<< CODE [ExtensibleSet] >>> ***/
510
Lev Walkinc92a7462005-03-10 11:20:47 +0000511/*
512 * This type is implemented using ENUMERATED,
513 * so here we adjust the DEF accordingly.
514 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000515
Lev Walkin843a2462005-02-18 16:30:26 +0000516/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
517
Lev Walkina7591b52014-10-12 18:37:35 -0700518static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000519 { 0, 1, "b" },
520 { 1, 1, "a" }
521};
Lev Walkina7591b52014-10-12 18:37:35 -0700522static const unsigned int asn_MAP_enum_enum2value_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000523 1, /* a(1) */
524 0 /* b(0) */
525};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800526static const asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000527 asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */
528 asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */
Lev Walkinc92a7462005-03-10 11:20:47 +0000529 2, /* Number of elements in the maps */
530 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000531 1, /* Strict enumeration */
532 0, /* Native long size */
533 0
Lev Walkinc92a7462005-03-10 11:20:47 +0000534};
Lev Walkina7591b52014-10-12 18:37:35 -0700535static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000536 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
537 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
538};
539static /* Use -fall-defs-global to expose */
540asn_TYPE_descriptor_t asn_DEF_enum_4 = {
541 "enum",
542 "enum",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800543 &asn_OP_ENUMERATED,
Lev Walkin59b176e2005-11-26 11:25:14 +0000544 asn_DEF_enum_tags_4,
545 sizeof(asn_DEF_enum_tags_4)
546 /sizeof(asn_DEF_enum_tags_4[0]) - 1, /* 1 */
547 asn_DEF_enum_tags_4, /* Same as above */
548 sizeof(asn_DEF_enum_tags_4)
549 /sizeof(asn_DEF_enum_tags_4[0]), /* 2 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700550 { 0, 0, ENUMERATED_constraint },
Lev Walkinc92a7462005-03-10 11:20:47 +0000551 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000552 &asn_SPC_enum_specs_4 /* Additional specs */
Lev Walkinc92a7462005-03-10 11:20:47 +0000553};
554
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800555asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000556 { ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000557 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
558 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000559 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700560 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700561 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700562 0, 0, /* No default value */
Lev Walkin843a2462005-02-18 16:30:26 +0000563 .name = "string"
564 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000565 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
Lev Walkinc92a7462005-03-10 11:20:47 +0000566 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
567 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000568 .type = &asn_DEF_enum_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700569 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700570 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700571 0, 0, /* No default value */
Lev Walkinc92a7462005-03-10 11:20:47 +0000572 .name = "enum"
573 },
Lev Walkin843a2462005-02-18 16:30:26 +0000574};
Lev Walkina7591b52014-10-12 18:37:35 -0700575static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000576 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
577};
Lev Walkina7591b52014-10-12 18:37:35 -0700578static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700579 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
580 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */
Lev Walkin843a2462005-02-18 16:30:26 +0000581};
Lev Walkina7591b52014-10-12 18:37:35 -0700582static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000583 (0 << 7) | (0 << 6)
Lev Walkin843a2462005-02-18 16:30:26 +0000584};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800585asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000586 sizeof(struct ExtensibleSet),
587 offsetof(struct ExtensibleSet, _asn_ctx),
588 offsetof(struct ExtensibleSet, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700589 .tag2el = asn_MAP_ExtensibleSet_tag2el_1,
590 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000591 asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */
Lev Walkinc92a7462005-03-10 11:20:47 +0000592 2, /* Count of tags in the CXER map */
Lev Walkin843a2462005-02-18 16:30:26 +0000593 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700594 (const unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */
Lev Walkin843a2462005-02-18 16:30:26 +0000595};
596asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
597 "ExtensibleSet",
598 "ExtensibleSet",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800599 &asn_OP_SET,
Lev Walkin59b176e2005-11-26 11:25:14 +0000600 asn_DEF_ExtensibleSet_tags_1,
601 sizeof(asn_DEF_ExtensibleSet_tags_1)
602 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
603 asn_DEF_ExtensibleSet_tags_1, /* Same as above */
604 sizeof(asn_DEF_ExtensibleSet_tags_1)
605 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700606 { 0, 0, SET_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000607 asn_MBR_ExtensibleSet_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000608 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000609 &asn_SPC_ExtensibleSet_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000610};
611
612
613/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
614
615#include <UTF8String.h>
616#include <INTEGER.h>
Lev Walkin15750402005-07-03 05:27:19 +0000617#include <GeneralizedTime.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000618#include <constr_SEQUENCE.h>
619
Lev Walkin843a2462005-02-18 16:30:26 +0000620/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
621
Lev Walkin843a2462005-02-18 16:30:26 +0000622typedef struct ExtensibleSequence {
623 UTF8String_t *string /* OPTIONAL */;
624 /*
625 * This type is extensible,
626 * possible extensions are below.
627 */
628 INTEGER_t *integer /* OPTIONAL */;
Lev Walkin15750402005-07-03 05:27:19 +0000629 GeneralizedTime_t *gtime;
Lev Walkin843a2462005-02-18 16:30:26 +0000630
631 /* Context for parsing across buffer boundaries */
632 asn_struct_ctx_t _asn_ctx;
633} ExtensibleSequence_t;
634
Lev Walkinc8285712005-03-04 22:18:20 +0000635/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/
636
637extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800638extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1;
639extern asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[3];
Lev Walkinc8285712005-03-04 22:18:20 +0000640
Lev Walkin843a2462005-02-18 16:30:26 +0000641/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
642
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800643asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000644 { ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000645 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
646 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000647 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700648 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700649 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700650 0, 0, /* No default value */
Lev Walkin843a2462005-02-18 16:30:26 +0000651 .name = "string"
652 },
Lev Walkin15750402005-07-03 05:27:19 +0000653 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
Lev Walkin843a2462005-02-18 16:30:26 +0000654 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
655 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000656 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700657 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700658 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700659 0, 0, /* No default value */
Lev Walkin843a2462005-02-18 16:30:26 +0000660 .name = "integer"
661 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000662 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
Lev Walkin15750402005-07-03 05:27:19 +0000663 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
664 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000665 .type = &asn_DEF_GeneralizedTime,
Lev Walkin67a30122017-08-10 05:48:54 -0700666 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700667 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700668 0, 0, /* No default value */
Lev Walkin15750402005-07-03 05:27:19 +0000669 .name = "gtime"
670 },
Lev Walkin843a2462005-02-18 16:30:26 +0000671};
Lev Walkina7591b52014-10-12 18:37:35 -0700672static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000673 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
674};
Lev Walkina7591b52014-10-12 18:37:35 -0700675static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700676 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
677 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer */
678 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime */
Lev Walkin843a2462005-02-18 16:30:26 +0000679};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800680asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000681 sizeof(struct ExtensibleSequence),
682 offsetof(struct ExtensibleSequence, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700683 .tag2el = asn_MAP_ExtensibleSequence_tag2el_1,
684 .tag2el_count = 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000685 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700686 1, /* First extension addition */
Lev Walkin843a2462005-02-18 16:30:26 +0000687};
688asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
689 "ExtensibleSequence",
690 "ExtensibleSequence",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800691 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000692 asn_DEF_ExtensibleSequence_tags_1,
693 sizeof(asn_DEF_ExtensibleSequence_tags_1)
694 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
695 asn_DEF_ExtensibleSequence_tags_1, /* Same as above */
696 sizeof(asn_DEF_ExtensibleSequence_tags_1)
697 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700698 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000699 asn_MBR_ExtensibleSequence_1,
Lev Walkin15750402005-07-03 05:27:19 +0000700 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000701 &asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000702};
703
704
Lev Walkin15750402005-07-03 05:27:19 +0000705/*** <<< INCLUDES [ExtensibleSequence2] >>> ***/
706
707#include <UTF8String.h>
708#include <INTEGER.h>
709#include <constr_SEQUENCE.h>
710
711/*** <<< TYPE-DECLS [ExtensibleSequence2] >>> ***/
712
713typedef struct ExtensibleSequence2 {
714 UTF8String_t *string /* OPTIONAL */;
715 /*
716 * This type is extensible,
717 * possible extensions are below.
718 */
719 INTEGER_t *integer /* OPTIONAL */;
720
721 /* Context for parsing across buffer boundaries */
722 asn_struct_ctx_t _asn_ctx;
723} ExtensibleSequence2_t;
724
725/*** <<< FUNC-DECLS [ExtensibleSequence2] >>> ***/
726
727extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800728extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1;
729extern asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[2];
Lev Walkin15750402005-07-03 05:27:19 +0000730
731/*** <<< STAT-DEFS [ExtensibleSequence2] >>> ***/
732
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800733asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000734 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
735 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
736 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000737 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700738 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700739 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700740 0, 0, /* No default value */
Lev Walkin15750402005-07-03 05:27:19 +0000741 .name = "string"
742 },
743 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
744 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
745 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000746 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700747 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700748 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700749 0, 0, /* No default value */
Lev Walkin15750402005-07-03 05:27:19 +0000750 .name = "integer"
751 },
752};
Lev Walkina7591b52014-10-12 18:37:35 -0700753static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000754 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
755};
Lev Walkina7591b52014-10-12 18:37:35 -0700756static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700757 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
758 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */
Lev Walkin15750402005-07-03 05:27:19 +0000759};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800760asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = {
Lev Walkin15750402005-07-03 05:27:19 +0000761 sizeof(struct ExtensibleSequence2),
762 offsetof(struct ExtensibleSequence2, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700763 .tag2el = asn_MAP_ExtensibleSequence2_tag2el_1,
764 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000765 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700766 1, /* First extension addition */
Lev Walkin15750402005-07-03 05:27:19 +0000767};
768asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2 = {
769 "ExtensibleSequence2",
770 "ExtensibleSequence2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800771 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000772 asn_DEF_ExtensibleSequence2_tags_1,
773 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
774 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
775 asn_DEF_ExtensibleSequence2_tags_1, /* Same as above */
776 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
777 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700778 { 0, 0, SEQUENCE_constraint },
Lev Walkin15750402005-07-03 05:27:19 +0000779 asn_MBR_ExtensibleSequence2_1,
780 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000781 &asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */
Lev Walkin15750402005-07-03 05:27:19 +0000782};
783
784
Lev Walkinf5db6142005-02-24 22:38:43 +0000785/*** <<< INCLUDES [SetOfNULL] >>> ***/
786
787#include <NULL.h>
788#include <asn_SET_OF.h>
789#include <constr_SET_OF.h>
790
Lev Walkinf5db6142005-02-24 22:38:43 +0000791/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
792
Lev Walkinf5db6142005-02-24 22:38:43 +0000793typedef struct SetOfNULL {
794 A_SET_OF(NULL_t) list;
795
796 /* Context for parsing across buffer boundaries */
797 asn_struct_ctx_t _asn_ctx;
798} SetOfNULL_t;
799
Lev Walkinc8285712005-03-04 22:18:20 +0000800/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/
801
802extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800803extern asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1;
804extern asn_TYPE_member_t asn_MBR_SetOfNULL_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000805
Lev Walkinf5db6142005-02-24 22:38:43 +0000806/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
807
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800808asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000809 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000810 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
811 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000812 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -0700813 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700814 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700815 0, 0, /* No default value */
Lev Walkinf5db6142005-02-24 22:38:43 +0000816 .name = ""
817 },
818};
Lev Walkina7591b52014-10-12 18:37:35 -0700819static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000820 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
821};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800822asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000823 sizeof(struct SetOfNULL),
824 offsetof(struct SetOfNULL, _asn_ctx),
825 1, /* XER encoding is XMLValueList */
826};
827asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
828 "SetOfNULL",
829 "SetOfNULL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800830 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000831 asn_DEF_SetOfNULL_tags_1,
832 sizeof(asn_DEF_SetOfNULL_tags_1)
833 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
834 asn_DEF_SetOfNULL_tags_1, /* Same as above */
835 sizeof(asn_DEF_SetOfNULL_tags_1)
836 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700837 { 0, 0, SET_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000838 asn_MBR_SetOfNULL_1,
Lev Walkinf5db6142005-02-24 22:38:43 +0000839 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000840 &asn_SPC_SetOfNULL_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +0000841};
842
843
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000844/*** <<< INCLUDES [SetOfREAL] >>> ***/
845
846#include <REAL.h>
847#include <asn_SET_OF.h>
848#include <constr_SET_OF.h>
849
850/*** <<< TYPE-DECLS [SetOfREAL] >>> ***/
851
852typedef struct SetOfREAL {
853 A_SET_OF(REAL_t) list;
854
855 /* Context for parsing across buffer boundaries */
856 asn_struct_ctx_t _asn_ctx;
857} SetOfREAL_t;
858
859/*** <<< FUNC-DECLS [SetOfREAL] >>> ***/
860
861extern asn_TYPE_descriptor_t asn_DEF_SetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800862extern asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1;
863extern asn_TYPE_member_t asn_MBR_SetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000864
865/*** <<< STAT-DEFS [SetOfREAL] >>> ***/
866
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800867asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000868 { ATF_POINTER, 0, 0,
869 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
870 .tag_mode = 0,
871 .type = &asn_DEF_REAL,
Lev Walkin67a30122017-08-10 05:48:54 -0700872 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700873 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700874 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000875 .name = ""
876 },
877};
Lev Walkina7591b52014-10-12 18:37:35 -0700878static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000879 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
880};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800881asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000882 sizeof(struct SetOfREAL),
883 offsetof(struct SetOfREAL, _asn_ctx),
884 0, /* XER encoding is XMLDelimitedItemList */
885};
886asn_TYPE_descriptor_t asn_DEF_SetOfREAL = {
887 "SetOfREAL",
888 "SetOfREAL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800889 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000890 asn_DEF_SetOfREAL_tags_1,
891 sizeof(asn_DEF_SetOfREAL_tags_1)
892 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
893 asn_DEF_SetOfREAL_tags_1, /* Same as above */
894 sizeof(asn_DEF_SetOfREAL_tags_1)
895 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700896 { 0, 0, SET_OF_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000897 asn_MBR_SetOfREAL_1,
898 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000899 &asn_SPC_SetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000900};
901
902
Lev Walkinf5db6142005-02-24 22:38:43 +0000903/*** <<< INCLUDES [SetOfEnums] >>> ***/
904
905#include <ENUMERATED.h>
906#include <asn_SET_OF.h>
907#include <constr_SET_OF.h>
908
909/*** <<< DEPS [SetOfEnums] >>> ***/
910
Lev Walkine0272aa2005-03-04 11:26:08 +0000911typedef enum Member {
912 Member_one = 0,
913 Member_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000914} e_Member;
Lev Walkinf5db6142005-02-24 22:38:43 +0000915
916/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
917
Lev Walkinf5db6142005-02-24 22:38:43 +0000918typedef struct SetOfEnums {
919 A_SET_OF(ENUMERATED_t) list;
920
921 /* Context for parsing across buffer boundaries */
922 asn_struct_ctx_t _asn_ctx;
923} SetOfEnums_t;
924
Lev Walkinb47df092005-02-25 08:35:54 +0000925/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
926
Lev Walkine0272aa2005-03-04 11:26:08 +0000927/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000928extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800929extern asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1;
930extern asn_TYPE_member_t asn_MBR_SetOfEnums_1[1];
Lev Walkinb47df092005-02-25 08:35:54 +0000931
932/*** <<< CODE [SetOfEnums] >>> ***/
933
Lev Walkinb47df092005-02-25 08:35:54 +0000934/*
935 * This type is implemented using ENUMERATED,
936 * so here we adjust the DEF accordingly.
937 */
Lev Walkinb47df092005-02-25 08:35:54 +0000938
Lev Walkinf5db6142005-02-24 22:38:43 +0000939/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
940
Lev Walkina7591b52014-10-12 18:37:35 -0700941static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000942 { 0, 3, "one" },
943 { 1, 7, "oneMore" }
944};
Lev Walkina7591b52014-10-12 18:37:35 -0700945static const unsigned int asn_MAP_Member_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000946 0, /* one(0) */
947 1 /* oneMore(1) */
Lev Walkinb47df092005-02-25 08:35:54 +0000948};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800949static const asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000950 asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */
951 asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +0000952 2, /* Number of elements in the maps */
Lev Walkin295e2452005-02-25 11:47:59 +0000953 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000954 1, /* Strict enumeration */
955 0, /* Native long size */
956 0
Lev Walkinb47df092005-02-25 08:35:54 +0000957};
Lev Walkina7591b52014-10-12 18:37:35 -0700958static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkinb47df092005-02-25 08:35:54 +0000959 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
960};
961static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000962asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000963 "ENUMERATED",
964 "ENUMERATED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800965 &asn_OP_ENUMERATED,
Lev Walkin59b176e2005-11-26 11:25:14 +0000966 asn_DEF_Member_tags_2,
967 sizeof(asn_DEF_Member_tags_2)
968 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
969 asn_DEF_Member_tags_2, /* Same as above */
970 sizeof(asn_DEF_Member_tags_2)
971 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700972 { 0, 0, ENUMERATED_constraint },
Lev Walkinb47df092005-02-25 08:35:54 +0000973 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000974 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkinb47df092005-02-25 08:35:54 +0000975};
976
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800977asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000978 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000979 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
980 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000981 .type = &asn_DEF_Member_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700982 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700983 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700984 0, 0, /* No default value */
Lev Walkinf5db6142005-02-24 22:38:43 +0000985 .name = ""
986 },
987};
Lev Walkina7591b52014-10-12 18:37:35 -0700988static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000989 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
990};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800991asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000992 sizeof(struct SetOfEnums),
993 offsetof(struct SetOfEnums, _asn_ctx),
Lev Walkinb47df092005-02-25 08:35:54 +0000994 1, /* XER encoding is XMLValueList */
Lev Walkinf5db6142005-02-24 22:38:43 +0000995};
996asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
997 "SetOfEnums",
998 "SetOfEnums",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800999 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001000 asn_DEF_SetOfEnums_tags_1,
1001 sizeof(asn_DEF_SetOfEnums_tags_1)
1002 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
1003 asn_DEF_SetOfEnums_tags_1, /* Same as above */
1004 sizeof(asn_DEF_SetOfEnums_tags_1)
1005 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001006 { 0, 0, SET_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +00001007 asn_MBR_SetOfEnums_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001008 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001009 &asn_SPC_SetOfEnums_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001010};
1011
1012
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001013/*** <<< INCLUDES [NamedSetOfNULL] >>> ***/
1014
1015#include <NULL.h>
1016#include <asn_SET_OF.h>
1017#include <constr_SET_OF.h>
1018
1019/*** <<< TYPE-DECLS [NamedSetOfNULL] >>> ***/
1020
1021typedef struct NamedSetOfNULL {
1022 A_SET_OF(NULL_t) list;
1023
1024 /* Context for parsing across buffer boundaries */
1025 asn_struct_ctx_t _asn_ctx;
1026} NamedSetOfNULL_t;
1027
1028/*** <<< FUNC-DECLS [NamedSetOfNULL] >>> ***/
1029
1030extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001031extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1;
1032extern asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001033
1034/*** <<< STAT-DEFS [NamedSetOfNULL] >>> ***/
1035
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001036asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001037 { ATF_POINTER, 0, 0,
1038 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1039 .tag_mode = 0,
1040 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001041 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001042 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001043 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001044 .name = "y"
1045 },
1046};
Lev Walkina7591b52014-10-12 18:37:35 -07001047static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001048 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1049};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001050asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001051 sizeof(struct NamedSetOfNULL),
1052 offsetof(struct NamedSetOfNULL, _asn_ctx),
1053 1, /* XER encoding is XMLValueList */
1054};
1055asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL = {
1056 "NamedSetOfNULL",
1057 "NamedSetOfNULL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001058 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001059 asn_DEF_NamedSetOfNULL_tags_1,
1060 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1061 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
1062 asn_DEF_NamedSetOfNULL_tags_1, /* Same as above */
1063 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1064 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001065 { 0, 0, SET_OF_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001066 asn_MBR_NamedSetOfNULL_1,
1067 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001068 &asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001069};
1070
1071
1072/*** <<< INCLUDES [NamedSetOfREAL] >>> ***/
1073
1074#include <REAL.h>
1075#include <asn_SET_OF.h>
1076#include <constr_SET_OF.h>
1077
1078/*** <<< TYPE-DECLS [NamedSetOfREAL] >>> ***/
1079
1080typedef struct NamedSetOfREAL {
1081 A_SET_OF(REAL_t) list;
1082
1083 /* Context for parsing across buffer boundaries */
1084 asn_struct_ctx_t _asn_ctx;
1085} NamedSetOfREAL_t;
1086
1087/*** <<< FUNC-DECLS [NamedSetOfREAL] >>> ***/
1088
1089extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001090extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1;
1091extern asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001092
1093/*** <<< STAT-DEFS [NamedSetOfREAL] >>> ***/
1094
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001095asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001096 { ATF_POINTER, 0, 0,
1097 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1098 .tag_mode = 0,
1099 .type = &asn_DEF_REAL,
Lev Walkin67a30122017-08-10 05:48:54 -07001100 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001101 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001102 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001103 .name = "name"
1104 },
1105};
Lev Walkina7591b52014-10-12 18:37:35 -07001106static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001107 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1108};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001109asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001110 sizeof(struct NamedSetOfREAL),
1111 offsetof(struct NamedSetOfREAL, _asn_ctx),
1112 0, /* XER encoding is XMLDelimitedItemList */
1113};
1114asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL = {
1115 "NamedSetOfREAL",
1116 "NamedSetOfREAL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001117 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001118 asn_DEF_NamedSetOfREAL_tags_1,
1119 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1120 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
1121 asn_DEF_NamedSetOfREAL_tags_1, /* Same as above */
1122 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1123 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001124 { 0, 0, SET_OF_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001125 asn_MBR_NamedSetOfREAL_1,
1126 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001127 &asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001128};
1129
1130
1131/*** <<< INCLUDES [NamedSetOfEnums] >>> ***/
1132
1133#include <ENUMERATED.h>
1134#include <asn_SET_OF.h>
1135#include <constr_SET_OF.h>
1136
1137/*** <<< DEPS [NamedSetOfEnums] >>> ***/
1138
1139typedef enum name {
1140 name_one = 0,
1141 name_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001142} e_name;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001143
1144/*** <<< TYPE-DECLS [NamedSetOfEnums] >>> ***/
1145
1146typedef struct NamedSetOfEnums {
1147 A_SET_OF(ENUMERATED_t) list;
1148
1149 /* Context for parsing across buffer boundaries */
1150 asn_struct_ctx_t _asn_ctx;
1151} NamedSetOfEnums_t;
1152
1153/*** <<< FUNC-DECLS [NamedSetOfEnums] >>> ***/
1154
1155/* extern asn_TYPE_descriptor_t asn_DEF_name_2; // (Use -fall-defs-global to expose) */
1156extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001157extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1;
1158extern asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001159
1160/*** <<< CODE [NamedSetOfEnums] >>> ***/
1161
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001162/*
1163 * This type is implemented using ENUMERATED,
1164 * so here we adjust the DEF accordingly.
1165 */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001166
1167/*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/
1168
Lev Walkina7591b52014-10-12 18:37:35 -07001169static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001170 { 0, 3, "one" },
1171 { 1, 7, "oneMore" }
1172};
Lev Walkina7591b52014-10-12 18:37:35 -07001173static const unsigned int asn_MAP_name_enum2value_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001174 0, /* one(0) */
1175 1 /* oneMore(1) */
1176};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001177static const asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001178 asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */
1179 asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001180 2, /* Number of elements in the maps */
1181 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001182 1, /* Strict enumeration */
1183 0, /* Native long size */
1184 0
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001185};
Lev Walkina7591b52014-10-12 18:37:35 -07001186static const ber_tlv_tag_t asn_DEF_name_tags_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001187 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1188};
1189static /* Use -fall-defs-global to expose */
1190asn_TYPE_descriptor_t asn_DEF_name_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001191 "ENUMERATED",
1192 "ENUMERATED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001193 &asn_OP_ENUMERATED,
Lev Walkin59b176e2005-11-26 11:25:14 +00001194 asn_DEF_name_tags_2,
1195 sizeof(asn_DEF_name_tags_2)
1196 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
1197 asn_DEF_name_tags_2, /* Same as above */
1198 sizeof(asn_DEF_name_tags_2)
1199 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001200 { 0, 0, ENUMERATED_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001201 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001202 &asn_SPC_name_specs_2 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001203};
1204
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001205asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001206 { ATF_POINTER, 0, 0,
1207 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1208 .tag_mode = 0,
1209 .type = &asn_DEF_name_2,
Lev Walkin67a30122017-08-10 05:48:54 -07001210 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001211 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001212 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001213 .name = "name"
1214 },
1215};
Lev Walkina7591b52014-10-12 18:37:35 -07001216static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001217 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1218};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001219asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001220 sizeof(struct NamedSetOfEnums),
1221 offsetof(struct NamedSetOfEnums, _asn_ctx),
1222 1, /* XER encoding is XMLValueList */
1223};
1224asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums = {
1225 "NamedSetOfEnums",
1226 "NamedSetOfEnums",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001227 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001228 asn_DEF_NamedSetOfEnums_tags_1,
1229 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1230 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
1231 asn_DEF_NamedSetOfEnums_tags_1, /* Same as above */
1232 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1233 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001234 { 0, 0, SET_OF_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001235 asn_MBR_NamedSetOfEnums_1,
1236 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001237 &asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001238};
1239
1240
Lev Walkin843a2462005-02-18 16:30:26 +00001241/*** <<< INCLUDES [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001242
1243#include <INTEGER.h>
1244#include <asn_SEQUENCE_OF.h>
1245#include <constr_SEQUENCE_OF.h>
1246
Lev Walkin843a2462005-02-18 16:30:26 +00001247/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001248
Lev Walkin843a2462005-02-18 16:30:26 +00001249typedef struct SequenceOf {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001250 A_SEQUENCE_OF(INTEGER_t) list;
1251
1252 /* Context for parsing across buffer boundaries */
1253 asn_struct_ctx_t _asn_ctx;
Lev Walkin843a2462005-02-18 16:30:26 +00001254} SequenceOf_t;
Lev Walkin0ef9f142005-02-14 20:40:57 +00001255
Lev Walkinc8285712005-03-04 22:18:20 +00001256/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
1257
1258extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001259extern asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1;
1260extern asn_TYPE_member_t asn_MBR_SequenceOf_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001261
Lev Walkin843a2462005-02-18 16:30:26 +00001262/*** <<< STAT-DEFS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001263
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001264asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001265 { ATF_POINTER, 0, 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001266 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
1267 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001268 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -07001269 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001270 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001271 0, 0, /* No default value */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001272 .name = "id"
1273 },
1274};
Lev Walkina7591b52014-10-12 18:37:35 -07001275static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001276 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1277};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001278asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +00001279 sizeof(struct SequenceOf),
1280 offsetof(struct SequenceOf, _asn_ctx),
Lev Walkin0ef9f142005-02-14 20:40:57 +00001281 0, /* XER encoding is XMLDelimitedItemList */
1282};
Lev Walkin843a2462005-02-18 16:30:26 +00001283asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
1284 "SequenceOf",
1285 "SequenceOf",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001286 &asn_OP_SEQUENCE_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001287 asn_DEF_SequenceOf_tags_1,
1288 sizeof(asn_DEF_SequenceOf_tags_1)
1289 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
1290 asn_DEF_SequenceOf_tags_1, /* Same as above */
1291 sizeof(asn_DEF_SequenceOf_tags_1)
1292 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001293 { 0, 0, SEQUENCE_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +00001294 asn_MBR_SequenceOf_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001295 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001296 &asn_SPC_SequenceOf_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001297};
1298
Lev Walkinf5db6142005-02-24 22:38:43 +00001299
1300/*** <<< INCLUDES [SeqOfZuka] >>> ***/
1301
1302#include <NULL.h>
1303#include <asn_SEQUENCE_OF.h>
1304#include <constr_SEQUENCE_OF.h>
1305
Lev Walkinf5db6142005-02-24 22:38:43 +00001306/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
1307
Lev Walkinf5db6142005-02-24 22:38:43 +00001308typedef struct SeqOfZuka {
1309 A_SEQUENCE_OF(NULL_t) list;
1310
1311 /* Context for parsing across buffer boundaries */
1312 asn_struct_ctx_t _asn_ctx;
1313} SeqOfZuka_t;
1314
Lev Walkinc8285712005-03-04 22:18:20 +00001315/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/
1316
1317extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001318extern asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1;
1319extern asn_TYPE_member_t asn_MBR_SeqOfZuka_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001320
Lev Walkinf5db6142005-02-24 22:38:43 +00001321/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
1322
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001323asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001324 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001325 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1326 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001327 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001328 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001329 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001330 0, 0, /* No default value */
Lev Walkinf5db6142005-02-24 22:38:43 +00001331 .name = "zuka"
1332 },
1333};
Lev Walkina7591b52014-10-12 18:37:35 -07001334static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001335 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1336};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001337asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001338 sizeof(struct SeqOfZuka),
1339 offsetof(struct SeqOfZuka, _asn_ctx),
1340 1, /* XER encoding is XMLValueList */
1341};
1342asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
1343 "SeqOfZuka",
1344 "SeqOfZuka",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001345 &asn_OP_SEQUENCE_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001346 asn_DEF_SeqOfZuka_tags_1,
1347 sizeof(asn_DEF_SeqOfZuka_tags_1)
1348 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
1349 asn_DEF_SeqOfZuka_tags_1, /* Same as above */
1350 sizeof(asn_DEF_SeqOfZuka_tags_1)
1351 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001352 { 0, 0, SEQUENCE_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +00001353 asn_MBR_SeqOfZuka_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001354 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001355 &asn_SPC_SeqOfZuka_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001356};
1357
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001358
1359/*** <<< INCLUDES [SetOfChoice] >>> ***/
1360
1361#include <asn_SET_OF.h>
1362#include <constr_SET_OF.h>
1363
1364/*** <<< FWD-DECLS [SetOfChoice] >>> ***/
1365
1366struct SimpleChoice;
1367
1368/*** <<< TYPE-DECLS [SetOfChoice] >>> ***/
1369
1370typedef struct SetOfChoice {
1371 A_SET_OF(struct SimpleChoice) list;
1372
1373 /* Context for parsing across buffer boundaries */
1374 asn_struct_ctx_t _asn_ctx;
1375} SetOfChoice_t;
1376
1377/*** <<< FUNC-DECLS [SetOfChoice] >>> ***/
1378
1379extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001380extern asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1;
1381extern asn_TYPE_member_t asn_MBR_SetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001382
1383/*** <<< POST-INCLUDE [SetOfChoice] >>> ***/
1384
Lev Walkin22b5ed42006-09-13 02:51:20 +00001385#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001386
1387/*** <<< STAT-DEFS [SetOfChoice] >>> ***/
1388
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001389asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001390 { ATF_POINTER, 0, 0,
1391 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1392 .tag_mode = 0,
1393 .type = &asn_DEF_SimpleChoice,
Lev Walkin67a30122017-08-10 05:48:54 -07001394 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001395 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001396 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001397 .name = ""
1398 },
1399};
Lev Walkina7591b52014-10-12 18:37:35 -07001400static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001401 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1402};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001403asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001404 sizeof(struct SetOfChoice),
1405 offsetof(struct SetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001406 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001407};
1408asn_TYPE_descriptor_t asn_DEF_SetOfChoice = {
1409 "SetOfChoice",
1410 "SetOfChoice",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001411 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001412 asn_DEF_SetOfChoice_tags_1,
1413 sizeof(asn_DEF_SetOfChoice_tags_1)
1414 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
1415 asn_DEF_SetOfChoice_tags_1, /* Same as above */
1416 sizeof(asn_DEF_SetOfChoice_tags_1)
1417 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001418 { 0, 0, SET_OF_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001419 asn_MBR_SetOfChoice_1,
1420 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001421 &asn_SPC_SetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001422};
1423
1424
1425/*** <<< INCLUDES [NamedSetOfChoice] >>> ***/
1426
1427#include <asn_SET_OF.h>
1428#include <constr_SET_OF.h>
1429
1430/*** <<< FWD-DECLS [NamedSetOfChoice] >>> ***/
1431
1432struct SimpleChoice;
1433
1434/*** <<< TYPE-DECLS [NamedSetOfChoice] >>> ***/
1435
1436typedef struct NamedSetOfChoice {
1437 A_SET_OF(struct SimpleChoice) list;
1438
1439 /* Context for parsing across buffer boundaries */
1440 asn_struct_ctx_t _asn_ctx;
1441} NamedSetOfChoice_t;
1442
1443/*** <<< FUNC-DECLS [NamedSetOfChoice] >>> ***/
1444
1445extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001446extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1;
1447extern asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001448
1449/*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/
1450
Lev Walkin22b5ed42006-09-13 02:51:20 +00001451#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001452
1453/*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/
1454
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001455asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001456 { ATF_POINTER, 0, 0,
1457 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1458 .tag_mode = 0,
1459 .type = &asn_DEF_SimpleChoice,
Lev Walkin67a30122017-08-10 05:48:54 -07001460 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001461 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001462 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001463 .name = "whatever"
1464 },
1465};
Lev Walkina7591b52014-10-12 18:37:35 -07001466static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001467 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1468};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001469asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001470 sizeof(struct NamedSetOfChoice),
1471 offsetof(struct NamedSetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001472 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001473};
1474asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice = {
1475 "NamedSetOfChoice",
1476 "NamedSetOfChoice",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001477 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +00001478 asn_DEF_NamedSetOfChoice_tags_1,
1479 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1480 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
1481 asn_DEF_NamedSetOfChoice_tags_1, /* Same as above */
1482 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1483 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001484 { 0, 0, SET_OF_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001485 asn_MBR_NamedSetOfChoice_1,
1486 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001487 &asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001488};
1489
1490
1491/*** <<< INCLUDES [SimpleChoice] >>> ***/
1492
1493#include <NULL.h>
1494#include <INTEGER.h>
1495#include <constr_CHOICE.h>
1496
1497/*** <<< DEPS [SimpleChoice] >>> ***/
1498
1499typedef enum SimpleChoice_PR {
1500 SimpleChoice_PR_NOTHING, /* No components present */
1501 SimpleChoice_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001502 SimpleChoice_PR_b
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001503} SimpleChoice_PR;
1504
1505/*** <<< TYPE-DECLS [SimpleChoice] >>> ***/
1506
1507typedef struct SimpleChoice {
1508 SimpleChoice_PR present;
1509 union SimpleChoice_u {
1510 NULL_t a;
1511 INTEGER_t b;
1512 } choice;
1513
1514 /* Context for parsing across buffer boundaries */
1515 asn_struct_ctx_t _asn_ctx;
1516} SimpleChoice_t;
1517
1518/*** <<< FUNC-DECLS [SimpleChoice] >>> ***/
1519
1520extern asn_TYPE_descriptor_t asn_DEF_SimpleChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001521extern asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1;
1522extern asn_TYPE_member_t asn_MBR_SimpleChoice_1[2];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001523
1524/*** <<< STAT-DEFS [SimpleChoice] >>> ***/
1525
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001526asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001527 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.a),
1528 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1529 .tag_mode = -1, /* IMPLICIT tag at current level */
1530 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001531 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001532 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001533 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001534 .name = "a"
1535 },
1536 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.b),
1537 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1538 .tag_mode = -1, /* IMPLICIT tag at current level */
1539 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -07001540 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -07001541 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -07001542 0, 0, /* No default value */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001543 .name = "b"
1544 },
1545};
Lev Walkina7591b52014-10-12 18:37:35 -07001546static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001547 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1548 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001549};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001550asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001551 sizeof(struct SimpleChoice),
1552 offsetof(struct SimpleChoice, _asn_ctx),
1553 offsetof(struct SimpleChoice, present),
1554 sizeof(((struct SimpleChoice *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -07001555 .tag2el = asn_MAP_SimpleChoice_tag2el_1,
1556 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin20696a42017-10-17 21:27:33 -07001557 0, 0,
Lev Walkindf2edbb2017-10-21 13:40:07 -07001558 .first_extension = -1 /* Extensions start */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001559};
1560asn_TYPE_descriptor_t asn_DEF_SimpleChoice = {
1561 "SimpleChoice",
1562 "SimpleChoice",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001563 &asn_OP_CHOICE,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001564 0, /* No effective tags (pointer) */
1565 0, /* No effective tags (count) */
1566 0, /* No tags (pointer) */
1567 0, /* No tags (count) */
Lev Walkin0bfea562017-09-29 23:16:48 -07001568 { 0, 0, CHOICE_constraint },
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001569 asn_MBR_SimpleChoice_1,
1570 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001571 &asn_SPC_SimpleChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001572};
1573