blob: 0bda67ca6ee9608a02080afd63b5c579313bd7e7 [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 Walkin0ef9f142005-02-14 20:40:57 +000086 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040087 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000088 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
89 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +000090 .name = "sequence"
91 },
92 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.set),
93 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
94 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000095 .type = &asn_DEF_Set,
Lev Walkin67a30122017-08-10 05:48:54 -070096 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +000097 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040098 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000099 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
100 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000101 .name = "set"
102 },
Lev Walkin843a2462005-02-18 16:30:26 +0000103 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.sequenceOf),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000104 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin0ef9f142005-02-14 20:40:57 +0000105 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000106 .type = &asn_DEF_SequenceOf,
Lev Walkin67a30122017-08-10 05:48:54 -0700107 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000108 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400109 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000110 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
111 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000112 .name = "sequenceOf"
113 },
114 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSet),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000115 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000116 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000117 .type = &asn_DEF_ExtensibleSet,
Lev Walkin67a30122017-08-10 05:48:54 -0700118 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000119 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400120 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000121 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
122 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000123 .name = "extensibleSet"
124 },
125 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000126 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
Lev Walkin843a2462005-02-18 16:30:26 +0000127 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000128 .type = &asn_DEF_ExtensibleSequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700129 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000130 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400131 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000132 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
133 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000134 .name = "extensibleSequence"
Lev Walkin0ef9f142005-02-14 20:40:57 +0000135 },
Lev Walkin15750402005-07-03 05:27:19 +0000136 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.extensibleSequence2),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000137 .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000138 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000139 .type = &asn_DEF_ExtensibleSequence2,
Lev Walkin67a30122017-08-10 05:48:54 -0700140 .type_selector = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000141 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400142 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000143 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
144 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000145 .name = "extensibleSequence2"
146 },
147 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfNULL),
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000148 .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
Lev Walkin15750402005-07-03 05:27:19 +0000149 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000150 .type = &asn_DEF_SetOfNULL,
Lev Walkin67a30122017-08-10 05:48:54 -0700151 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000152 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400153 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000154 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
155 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000156 .name = "setOfNULL"
157 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000158 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfREAL),
159 .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
160 .tag_mode = -1, /* IMPLICIT tag at current level */
161 .type = &asn_DEF_SetOfREAL,
Lev Walkin67a30122017-08-10 05:48:54 -0700162 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000163 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400164 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000165 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
166 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000167 .name = "setOfREAL"
168 },
Lev Walkinf5db6142005-02-24 22:38:43 +0000169 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfEnums),
Lev Walkin15750402005-07-03 05:27:19 +0000170 .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000171 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000172 .type = &asn_DEF_SetOfEnums,
Lev Walkin67a30122017-08-10 05:48:54 -0700173 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000174 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400175 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000176 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
177 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000178 .name = "setOfEnums"
179 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000180 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfNULL),
Lev Walkin15750402005-07-03 05:27:19 +0000181 .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
Lev Walkinf5db6142005-02-24 22:38:43 +0000182 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000183 .type = &asn_DEF_NamedSetOfNULL,
Lev Walkin67a30122017-08-10 05:48:54 -0700184 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000185 .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 = "namedSetOfNULL"
190 },
191 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfREAL),
192 .tag = (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
193 .tag_mode = -1, /* IMPLICIT tag at current level */
194 .type = &asn_DEF_NamedSetOfREAL,
Lev Walkin67a30122017-08-10 05:48:54 -0700195 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000196 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400197 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000198 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
199 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000200 .name = "namedSetOfREAL"
201 },
202 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfEnums),
203 .tag = (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
204 .tag_mode = -1, /* IMPLICIT tag at current level */
205 .type = &asn_DEF_NamedSetOfEnums,
Lev Walkin67a30122017-08-10 05:48:54 -0700206 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000207 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400208 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000209 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
210 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000211 .name = "namedSetOfEnums"
212 },
213 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.seqOfZuka),
214 .tag = (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
215 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000216 .type = &asn_DEF_SeqOfZuka,
Lev Walkin67a30122017-08-10 05:48:54 -0700217 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000218 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400219 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000220 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
221 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000222 .name = "seqOfZuka"
223 },
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000224 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.setOfChoice),
225 .tag = (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
226 .tag_mode = -1, /* IMPLICIT tag at current level */
227 .type = &asn_DEF_SetOfChoice,
Lev Walkin67a30122017-08-10 05:48:54 -0700228 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000229 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400230 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000231 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
232 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000233 .name = "setOfChoice"
234 },
235 { ATF_NOFLAGS, 0, offsetof(struct PDU, choice.namedSetOfChoice),
236 .tag = (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
237 .tag_mode = -1, /* IMPLICIT tag at current level */
238 .type = &asn_DEF_NamedSetOfChoice,
Lev Walkin67a30122017-08-10 05:48:54 -0700239 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000240 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400241 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000242 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
243 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000244 .name = "namedSetOfChoice"
245 },
Lev Walkin0ef9f142005-02-14 20:40:57 +0000246};
Lev Walkina7591b52014-10-12 18:37:35 -0700247static const asn_TYPE_tag2member_t asn_MAP_PDU_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700248 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* sequence */
249 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set */
250 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* sequenceOf */
251 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* extensibleSet */
252 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* extensibleSequence */
253 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* extensibleSequence2 */
254 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* setOfNULL */
255 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* setOfREAL */
256 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* setOfEnums */
257 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* namedSetOfNULL */
258 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* namedSetOfREAL */
259 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 }, /* namedSetOfEnums */
260 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 }, /* seqOfZuka */
261 { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 }, /* setOfChoice */
262 { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 } /* namedSetOfChoice */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000263};
Lev Walkin59b176e2005-11-26 11:25:14 +0000264static asn_CHOICE_specifics_t asn_SPC_PDU_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000265 sizeof(struct PDU),
266 offsetof(struct PDU, _asn_ctx),
267 offsetof(struct PDU, present),
268 sizeof(((struct PDU *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700269 .tag2el = asn_MAP_PDU_tag2el_1,
270 .tag2el_count = 15, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000271 .canonical_order = 0,
272 .ext_start = 15 /* Extensions start */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000273};
274asn_TYPE_descriptor_t asn_DEF_PDU = {
275 "PDU",
276 "PDU",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800277 &asn_OP_CHOICE,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000278 CHOICE_constraint,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000279 0, /* No effective tags (pointer) */
280 0, /* No effective tags (count) */
281 0, /* No tags (pointer) */
282 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400283 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000284 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000285 asn_MBR_PDU_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000286 15, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000287 &asn_SPC_PDU_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000288};
289
290
291/*** <<< INCLUDES [Sequence] >>> ***/
292
293#include <INTEGER.h>
Lev Walkin0ef9f142005-02-14 20:40:57 +0000294#include <BIT_STRING.h>
295#include <UTF8String.h>
296#include <constr_SEQUENCE.h>
297
Lev Walkinc8285712005-03-04 22:18:20 +0000298/*** <<< FWD-DECLS [Sequence] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000299
Lev Walkinbf56d542005-03-04 23:50:56 +0000300struct Sequence;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000301
302/*** <<< TYPE-DECLS [Sequence] >>> ***/
303
Lev Walkin0ef9f142005-02-14 20:40:57 +0000304typedef struct Sequence {
305 INTEGER_t integer;
306 struct Sequence *sequence /* OPTIONAL */;
307 BIT_STRING_t *bits /* OPTIONAL */;
308 UTF8String_t string;
309
310 /* Context for parsing across buffer boundaries */
311 asn_struct_ctx_t _asn_ctx;
312} Sequence_t;
313
Lev Walkinc8285712005-03-04 22:18:20 +0000314/*** <<< FUNC-DECLS [Sequence] >>> ***/
315
316extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800317extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
318extern asn_TYPE_member_t asn_MBR_Sequence_1[4];
Lev Walkinc8285712005-03-04 22:18:20 +0000319
320/*** <<< POST-INCLUDE [Sequence] >>> ***/
321
Lev Walkin22b5ed42006-09-13 02:51:20 +0000322#include "Sequence.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000323
Lev Walkin0ef9f142005-02-14 20:40:57 +0000324/*** <<< STAT-DEFS [Sequence] >>> ***/
325
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800326asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000327 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
328 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
329 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000330 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700331 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000332 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400333 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000334 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
335 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000336 .name = "integer"
337 },
338 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
339 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
340 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000341 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700342 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000343 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400344 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000345 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
346 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000347 .name = "sequence"
348 },
349 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
350 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
351 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000352 .type = &asn_DEF_BIT_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700353 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000354 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400355 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000356 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
357 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000358 .name = "bits"
359 },
360 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
361 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
362 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000363 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700364 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000365 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400366 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000367 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
368 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000369 .name = "string"
370 },
371};
Lev Walkina7591b52014-10-12 18:37:35 -0700372static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000373 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
374};
Lev Walkina7591b52014-10-12 18:37:35 -0700375static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700376 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
377 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence */
378 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits */
379 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000380};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800381asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000382 sizeof(struct Sequence),
383 offsetof(struct Sequence, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700384 .tag2el = asn_MAP_Sequence_tag2el_1,
385 .tag2el_count = 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000386 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000387 -1, /* Start extensions */
388 -1 /* Stop extensions */
389};
390asn_TYPE_descriptor_t asn_DEF_Sequence = {
391 "Sequence",
392 "Sequence",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800393 &asn_OP_SEQUENCE,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000394 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000395 asn_DEF_Sequence_tags_1,
396 sizeof(asn_DEF_Sequence_tags_1)
397 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
398 asn_DEF_Sequence_tags_1, /* Same as above */
399 sizeof(asn_DEF_Sequence_tags_1)
400 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400401 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000402 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000403 asn_MBR_Sequence_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000404 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000405 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000406};
407
408
409/*** <<< INCLUDES [Set] >>> ***/
410
411#include <RELATIVE-OID.h>
412#include <OCTET_STRING.h>
413#include <constr_SET.h>
414
415/*** <<< DEPS [Set] >>> ***/
416
417
418/*
419 * Method of determining the components presence
420 */
421typedef enum Set_PR {
422 Set_PR_roid, /* Member roid is present */
423 Set_PR_opaque, /* Member opaque is present */
424} Set_PR;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000425
426/*** <<< TYPE-DECLS [Set] >>> ***/
427
Lev Walkin0ef9f142005-02-14 20:40:57 +0000428typedef struct Set {
429 RELATIVE_OID_t roid;
430 OCTET_STRING_t *opaque /* OPTIONAL */;
431
432 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
433 unsigned int _presence_map
434 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
435
436 /* Context for parsing across buffer boundaries */
437 asn_struct_ctx_t _asn_ctx;
438} Set_t;
439
Lev Walkinc8285712005-03-04 22:18:20 +0000440/*** <<< FUNC-DECLS [Set] >>> ***/
441
442extern asn_TYPE_descriptor_t asn_DEF_Set;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800443extern asn_SET_specifics_t asn_SPC_Set_specs_1;
444extern asn_TYPE_member_t asn_MBR_Set_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000445
Lev Walkin0ef9f142005-02-14 20:40:57 +0000446/*** <<< STAT-DEFS [Set] >>> ***/
447
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800448asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000449 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
450 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
451 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000452 .type = &asn_DEF_RELATIVE_OID,
Lev Walkin67a30122017-08-10 05:48:54 -0700453 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000454 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400455 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000456 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
457 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000458 .name = "roid"
459 },
460 { ATF_POINTER, 1, offsetof(struct Set, opaque),
461 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
462 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000463 .type = &asn_DEF_OCTET_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700464 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000465 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400466 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000467 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
468 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000469 .name = "opaque"
470 },
471};
Lev Walkina7591b52014-10-12 18:37:35 -0700472static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000473 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
474};
Lev Walkina7591b52014-10-12 18:37:35 -0700475static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700476 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */
477 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000478};
Lev Walkina7591b52014-10-12 18:37:35 -0700479static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000480 (1 << 7) | (0 << 6)
481};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800482asn_SET_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000483 sizeof(struct Set),
484 offsetof(struct Set, _asn_ctx),
485 offsetof(struct Set, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700486 .tag2el = asn_MAP_Set_tag2el_1,
487 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000488 asn_MAP_Set_tag2el_1, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000489 2, /* Count of tags in the CXER map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000490 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700491 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000492};
493asn_TYPE_descriptor_t asn_DEF_Set = {
494 "Set",
495 "Set",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800496 &asn_OP_SET,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000497 SET_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000498 asn_DEF_Set_tags_1,
499 sizeof(asn_DEF_Set_tags_1)
500 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
501 asn_DEF_Set_tags_1, /* Same as above */
502 sizeof(asn_DEF_Set_tags_1)
503 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400504 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000505 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000506 asn_MBR_Set_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000507 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000508 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000509};
510
511
Lev Walkin843a2462005-02-18 16:30:26 +0000512/*** <<< INCLUDES [ExtensibleSet] >>> ***/
513
514#include <UTF8String.h>
Lev Walkinc92a7462005-03-10 11:20:47 +0000515#include <ENUMERATED.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000516#include <constr_SET.h>
517
518/*** <<< DEPS [ExtensibleSet] >>> ***/
519
520
521/*
522 * Method of determining the components presence
523 */
524typedef enum ExtensibleSet_PR {
525 ExtensibleSet_PR_string, /* Member string is present */
Lev Walkinc92a7462005-03-10 11:20:47 +0000526 ExtensibleSet_PR_enum, /* Member enum is present */
Lev Walkin843a2462005-02-18 16:30:26 +0000527} ExtensibleSet_PR;
Lev Walkinc92a7462005-03-10 11:20:47 +0000528typedef enum Enum {
529 enum_b = 0,
530 enum_a = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000531} e_enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000532
533/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
534
Lev Walkin843a2462005-02-18 16:30:26 +0000535typedef struct ExtensibleSet {
536 UTF8String_t *string /* OPTIONAL */;
537 /*
538 * This type is extensible,
539 * possible extensions are below.
540 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000541 ENUMERATED_t *Enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000542
543 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
544 unsigned int _presence_map
Lev Walkinc92a7462005-03-10 11:20:47 +0000545 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin843a2462005-02-18 16:30:26 +0000546
547 /* Context for parsing across buffer boundaries */
548 asn_struct_ctx_t _asn_ctx;
549} ExtensibleSet_t;
550
Lev Walkinc8285712005-03-04 22:18:20 +0000551/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/
552
Lev Walkinc92a7462005-03-10 11:20:47 +0000553/* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000554extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800555extern asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1;
556extern asn_TYPE_member_t asn_MBR_ExtensibleSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000557
Lev Walkinc92a7462005-03-10 11:20:47 +0000558/*** <<< CODE [ExtensibleSet] >>> ***/
559
Lev Walkinc92a7462005-03-10 11:20:47 +0000560/*
561 * This type is implemented using ENUMERATED,
562 * so here we adjust the DEF accordingly.
563 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000564
Lev Walkin843a2462005-02-18 16:30:26 +0000565/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
566
Lev Walkina7591b52014-10-12 18:37:35 -0700567static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000568 { 0, 1, "b" },
569 { 1, 1, "a" }
570};
Lev Walkina7591b52014-10-12 18:37:35 -0700571static const unsigned int asn_MAP_enum_enum2value_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000572 1, /* a(1) */
573 0 /* b(0) */
574};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800575static const asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000576 asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */
577 asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */
Lev Walkinc92a7462005-03-10 11:20:47 +0000578 2, /* Number of elements in the maps */
579 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000580 1, /* Strict enumeration */
581 0, /* Native long size */
582 0
Lev Walkinc92a7462005-03-10 11:20:47 +0000583};
Lev Walkina7591b52014-10-12 18:37:35 -0700584static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000585 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
586 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
587};
588static /* Use -fall-defs-global to expose */
589asn_TYPE_descriptor_t asn_DEF_enum_4 = {
590 "enum",
591 "enum",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800592 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800593 ENUMERATED_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000594 asn_DEF_enum_tags_4,
595 sizeof(asn_DEF_enum_tags_4)
596 /sizeof(asn_DEF_enum_tags_4[0]) - 1, /* 1 */
597 asn_DEF_enum_tags_4, /* Same as above */
598 sizeof(asn_DEF_enum_tags_4)
599 /sizeof(asn_DEF_enum_tags_4[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400600 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000601 0, /* No PER visible constraints */
Lev Walkinc92a7462005-03-10 11:20:47 +0000602 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000603 &asn_SPC_enum_specs_4 /* Additional specs */
Lev Walkinc92a7462005-03-10 11:20:47 +0000604};
605
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800606asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000607 { ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000608 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
609 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000610 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700611 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000612 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400613 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000614 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
615 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000616 .name = "string"
617 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000618 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
Lev Walkinc92a7462005-03-10 11:20:47 +0000619 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
620 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000621 .type = &asn_DEF_enum_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700622 .type_selector = 0,
Lev Walkinc92a7462005-03-10 11:20:47 +0000623 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400624 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000625 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
626 .default_value = 0,
Lev Walkinc92a7462005-03-10 11:20:47 +0000627 .name = "enum"
628 },
Lev Walkin843a2462005-02-18 16:30:26 +0000629};
Lev Walkina7591b52014-10-12 18:37:35 -0700630static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000631 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
632};
Lev Walkina7591b52014-10-12 18:37:35 -0700633static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700634 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
635 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */
Lev Walkin843a2462005-02-18 16:30:26 +0000636};
Lev Walkina7591b52014-10-12 18:37:35 -0700637static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000638 (0 << 7) | (0 << 6)
Lev Walkin843a2462005-02-18 16:30:26 +0000639};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800640asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000641 sizeof(struct ExtensibleSet),
642 offsetof(struct ExtensibleSet, _asn_ctx),
643 offsetof(struct ExtensibleSet, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700644 .tag2el = asn_MAP_ExtensibleSet_tag2el_1,
645 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000646 asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */
Lev Walkinc92a7462005-03-10 11:20:47 +0000647 2, /* Count of tags in the CXER map */
Lev Walkin843a2462005-02-18 16:30:26 +0000648 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700649 (const unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */
Lev Walkin843a2462005-02-18 16:30:26 +0000650};
651asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
652 "ExtensibleSet",
653 "ExtensibleSet",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800654 &asn_OP_SET,
Lev Walkin843a2462005-02-18 16:30:26 +0000655 SET_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000656 asn_DEF_ExtensibleSet_tags_1,
657 sizeof(asn_DEF_ExtensibleSet_tags_1)
658 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
659 asn_DEF_ExtensibleSet_tags_1, /* Same as above */
660 sizeof(asn_DEF_ExtensibleSet_tags_1)
661 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400662 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000663 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000664 asn_MBR_ExtensibleSet_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000665 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000666 &asn_SPC_ExtensibleSet_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000667};
668
669
670/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
671
672#include <UTF8String.h>
673#include <INTEGER.h>
Lev Walkin15750402005-07-03 05:27:19 +0000674#include <GeneralizedTime.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000675#include <constr_SEQUENCE.h>
676
Lev Walkin843a2462005-02-18 16:30:26 +0000677/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
678
Lev Walkin843a2462005-02-18 16:30:26 +0000679typedef struct ExtensibleSequence {
680 UTF8String_t *string /* OPTIONAL */;
681 /*
682 * This type is extensible,
683 * possible extensions are below.
684 */
685 INTEGER_t *integer /* OPTIONAL */;
Lev Walkin15750402005-07-03 05:27:19 +0000686 GeneralizedTime_t *gtime;
Lev Walkin843a2462005-02-18 16:30:26 +0000687
688 /* Context for parsing across buffer boundaries */
689 asn_struct_ctx_t _asn_ctx;
690} ExtensibleSequence_t;
691
Lev Walkinc8285712005-03-04 22:18:20 +0000692/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/
693
694extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800695extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1;
696extern asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[3];
Lev Walkinc8285712005-03-04 22:18:20 +0000697
Lev Walkin843a2462005-02-18 16:30:26 +0000698/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
699
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800700asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000701 { ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000702 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
703 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000704 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700705 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000706 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400707 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000708 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
709 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000710 .name = "string"
711 },
Lev Walkin15750402005-07-03 05:27:19 +0000712 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
Lev Walkin843a2462005-02-18 16:30:26 +0000713 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
714 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000715 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700716 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000717 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400718 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000719 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
720 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000721 .name = "integer"
722 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000723 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
Lev Walkin15750402005-07-03 05:27:19 +0000724 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
725 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000726 .type = &asn_DEF_GeneralizedTime,
Lev Walkin67a30122017-08-10 05:48:54 -0700727 .type_selector = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000728 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400729 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000730 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
731 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000732 .name = "gtime"
733 },
Lev Walkin843a2462005-02-18 16:30:26 +0000734};
Lev Walkina7591b52014-10-12 18:37:35 -0700735static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000736 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
737};
Lev Walkina7591b52014-10-12 18:37:35 -0700738static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700739 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
740 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer */
741 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime */
Lev Walkin843a2462005-02-18 16:30:26 +0000742};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800743asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000744 sizeof(struct ExtensibleSequence),
745 offsetof(struct ExtensibleSequence, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700746 .tag2el = asn_MAP_ExtensibleSequence_tag2el_1,
747 .tag2el_count = 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000748 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin843a2462005-02-18 16:30:26 +0000749 0, /* Start extensions */
Lev Walkin15750402005-07-03 05:27:19 +0000750 4 /* Stop extensions */
Lev Walkin843a2462005-02-18 16:30:26 +0000751};
752asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
753 "ExtensibleSequence",
754 "ExtensibleSequence",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800755 &asn_OP_SEQUENCE,
Lev Walkin843a2462005-02-18 16:30:26 +0000756 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000757 asn_DEF_ExtensibleSequence_tags_1,
758 sizeof(asn_DEF_ExtensibleSequence_tags_1)
759 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
760 asn_DEF_ExtensibleSequence_tags_1, /* Same as above */
761 sizeof(asn_DEF_ExtensibleSequence_tags_1)
762 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400763 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000764 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000765 asn_MBR_ExtensibleSequence_1,
Lev Walkin15750402005-07-03 05:27:19 +0000766 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000767 &asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000768};
769
770
Lev Walkin15750402005-07-03 05:27:19 +0000771/*** <<< INCLUDES [ExtensibleSequence2] >>> ***/
772
773#include <UTF8String.h>
774#include <INTEGER.h>
775#include <constr_SEQUENCE.h>
776
777/*** <<< TYPE-DECLS [ExtensibleSequence2] >>> ***/
778
779typedef struct ExtensibleSequence2 {
780 UTF8String_t *string /* OPTIONAL */;
781 /*
782 * This type is extensible,
783 * possible extensions are below.
784 */
785 INTEGER_t *integer /* OPTIONAL */;
786
787 /* Context for parsing across buffer boundaries */
788 asn_struct_ctx_t _asn_ctx;
789} ExtensibleSequence2_t;
790
791/*** <<< FUNC-DECLS [ExtensibleSequence2] >>> ***/
792
793extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800794extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1;
795extern asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[2];
Lev Walkin15750402005-07-03 05:27:19 +0000796
797/*** <<< STAT-DEFS [ExtensibleSequence2] >>> ***/
798
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800799asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000800 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
801 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
802 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000803 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700804 .type_selector = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000805 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400806 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000807 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
808 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000809 .name = "string"
810 },
811 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
812 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
813 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000814 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700815 .type_selector = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000816 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400817 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000818 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
819 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000820 .name = "integer"
821 },
822};
Lev Walkina7591b52014-10-12 18:37:35 -0700823static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000824 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
825};
Lev Walkina7591b52014-10-12 18:37:35 -0700826static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700827 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
828 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */
Lev Walkin15750402005-07-03 05:27:19 +0000829};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800830asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = {
Lev Walkin15750402005-07-03 05:27:19 +0000831 sizeof(struct ExtensibleSequence2),
832 offsetof(struct ExtensibleSequence2, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700833 .tag2el = asn_MAP_ExtensibleSequence2_tag2el_1,
834 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000835 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin15750402005-07-03 05:27:19 +0000836 0, /* Start extensions */
837 3 /* Stop extensions */
838};
839asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2 = {
840 "ExtensibleSequence2",
841 "ExtensibleSequence2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800842 &asn_OP_SEQUENCE,
Lev Walkin15750402005-07-03 05:27:19 +0000843 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000844 asn_DEF_ExtensibleSequence2_tags_1,
845 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
846 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
847 asn_DEF_ExtensibleSequence2_tags_1, /* Same as above */
848 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
849 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400850 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000851 0, /* No PER visible constraints */
Lev Walkin15750402005-07-03 05:27:19 +0000852 asn_MBR_ExtensibleSequence2_1,
853 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000854 &asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */
Lev Walkin15750402005-07-03 05:27:19 +0000855};
856
857
Lev Walkinf5db6142005-02-24 22:38:43 +0000858/*** <<< INCLUDES [SetOfNULL] >>> ***/
859
860#include <NULL.h>
861#include <asn_SET_OF.h>
862#include <constr_SET_OF.h>
863
Lev Walkinf5db6142005-02-24 22:38:43 +0000864/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
865
Lev Walkinf5db6142005-02-24 22:38:43 +0000866typedef struct SetOfNULL {
867 A_SET_OF(NULL_t) list;
868
869 /* Context for parsing across buffer boundaries */
870 asn_struct_ctx_t _asn_ctx;
871} SetOfNULL_t;
872
Lev Walkinc8285712005-03-04 22:18:20 +0000873/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/
874
875extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800876extern asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1;
877extern asn_TYPE_member_t asn_MBR_SetOfNULL_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000878
Lev Walkinf5db6142005-02-24 22:38:43 +0000879/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
880
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800881asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000882 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000883 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
884 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000885 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -0700886 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000887 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400888 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000889 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
890 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000891 .name = ""
892 },
893};
Lev Walkina7591b52014-10-12 18:37:35 -0700894static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000895 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
896};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800897asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000898 sizeof(struct SetOfNULL),
899 offsetof(struct SetOfNULL, _asn_ctx),
900 1, /* XER encoding is XMLValueList */
901};
902asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
903 "SetOfNULL",
904 "SetOfNULL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800905 &asn_OP_SET_OF,
Lev Walkinf5db6142005-02-24 22:38:43 +0000906 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000907 asn_DEF_SetOfNULL_tags_1,
908 sizeof(asn_DEF_SetOfNULL_tags_1)
909 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
910 asn_DEF_SetOfNULL_tags_1, /* Same as above */
911 sizeof(asn_DEF_SetOfNULL_tags_1)
912 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400913 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000914 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000915 asn_MBR_SetOfNULL_1,
Lev Walkinf5db6142005-02-24 22:38:43 +0000916 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000917 &asn_SPC_SetOfNULL_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +0000918};
919
920
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000921/*** <<< INCLUDES [SetOfREAL] >>> ***/
922
923#include <REAL.h>
924#include <asn_SET_OF.h>
925#include <constr_SET_OF.h>
926
927/*** <<< TYPE-DECLS [SetOfREAL] >>> ***/
928
929typedef struct SetOfREAL {
930 A_SET_OF(REAL_t) list;
931
932 /* Context for parsing across buffer boundaries */
933 asn_struct_ctx_t _asn_ctx;
934} SetOfREAL_t;
935
936/*** <<< FUNC-DECLS [SetOfREAL] >>> ***/
937
938extern asn_TYPE_descriptor_t asn_DEF_SetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800939extern asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1;
940extern asn_TYPE_member_t asn_MBR_SetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000941
942/*** <<< STAT-DEFS [SetOfREAL] >>> ***/
943
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800944asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000945 { ATF_POINTER, 0, 0,
946 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
947 .tag_mode = 0,
948 .type = &asn_DEF_REAL,
Lev Walkin67a30122017-08-10 05:48:54 -0700949 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000950 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400951 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000952 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
953 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000954 .name = ""
955 },
956};
Lev Walkina7591b52014-10-12 18:37:35 -0700957static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000958 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
959};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800960asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000961 sizeof(struct SetOfREAL),
962 offsetof(struct SetOfREAL, _asn_ctx),
963 0, /* XER encoding is XMLDelimitedItemList */
964};
965asn_TYPE_descriptor_t asn_DEF_SetOfREAL = {
966 "SetOfREAL",
967 "SetOfREAL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800968 &asn_OP_SET_OF,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000969 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000970 asn_DEF_SetOfREAL_tags_1,
971 sizeof(asn_DEF_SetOfREAL_tags_1)
972 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
973 asn_DEF_SetOfREAL_tags_1, /* Same as above */
974 sizeof(asn_DEF_SetOfREAL_tags_1)
975 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400976 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000977 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000978 asn_MBR_SetOfREAL_1,
979 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000980 &asn_SPC_SetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000981};
982
983
Lev Walkinf5db6142005-02-24 22:38:43 +0000984/*** <<< INCLUDES [SetOfEnums] >>> ***/
985
986#include <ENUMERATED.h>
987#include <asn_SET_OF.h>
988#include <constr_SET_OF.h>
989
990/*** <<< DEPS [SetOfEnums] >>> ***/
991
Lev Walkine0272aa2005-03-04 11:26:08 +0000992typedef enum Member {
993 Member_one = 0,
994 Member_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000995} e_Member;
Lev Walkinf5db6142005-02-24 22:38:43 +0000996
997/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
998
Lev Walkinf5db6142005-02-24 22:38:43 +0000999typedef struct SetOfEnums {
1000 A_SET_OF(ENUMERATED_t) list;
1001
1002 /* Context for parsing across buffer boundaries */
1003 asn_struct_ctx_t _asn_ctx;
1004} SetOfEnums_t;
1005
Lev Walkinb47df092005-02-25 08:35:54 +00001006/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
1007
Lev Walkine0272aa2005-03-04 11:26:08 +00001008/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +00001009extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001010extern asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1;
1011extern asn_TYPE_member_t asn_MBR_SetOfEnums_1[1];
Lev Walkinb47df092005-02-25 08:35:54 +00001012
1013/*** <<< CODE [SetOfEnums] >>> ***/
1014
Lev Walkinb47df092005-02-25 08:35:54 +00001015/*
1016 * This type is implemented using ENUMERATED,
1017 * so here we adjust the DEF accordingly.
1018 */
Lev Walkinb47df092005-02-25 08:35:54 +00001019
Lev Walkinf5db6142005-02-24 22:38:43 +00001020/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
1021
Lev Walkina7591b52014-10-12 18:37:35 -07001022static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001023 { 0, 3, "one" },
1024 { 1, 7, "oneMore" }
1025};
Lev Walkina7591b52014-10-12 18:37:35 -07001026static const unsigned int asn_MAP_Member_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001027 0, /* one(0) */
1028 1 /* oneMore(1) */
Lev Walkinb47df092005-02-25 08:35:54 +00001029};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001030static const asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001031 asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */
1032 asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +00001033 2, /* Number of elements in the maps */
Lev Walkin295e2452005-02-25 11:47:59 +00001034 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001035 1, /* Strict enumeration */
1036 0, /* Native long size */
1037 0
Lev Walkinb47df092005-02-25 08:35:54 +00001038};
Lev Walkina7591b52014-10-12 18:37:35 -07001039static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkinb47df092005-02-25 08:35:54 +00001040 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1041};
1042static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +00001043asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001044 "ENUMERATED",
1045 "ENUMERATED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001046 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001047 ENUMERATED_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001048 asn_DEF_Member_tags_2,
1049 sizeof(asn_DEF_Member_tags_2)
1050 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
1051 asn_DEF_Member_tags_2, /* Same as above */
1052 sizeof(asn_DEF_Member_tags_2)
1053 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001054 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001055 0, /* No PER visible constraints */
Lev Walkinb47df092005-02-25 08:35:54 +00001056 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001057 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkinb47df092005-02-25 08:35:54 +00001058};
1059
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001060asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001061 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001062 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1063 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001064 .type = &asn_DEF_Member_2,
Lev Walkin67a30122017-08-10 05:48:54 -07001065 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001066 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001067 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001068 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1069 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001070 .name = ""
1071 },
1072};
Lev Walkina7591b52014-10-12 18:37:35 -07001073static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001074 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1075};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001076asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001077 sizeof(struct SetOfEnums),
1078 offsetof(struct SetOfEnums, _asn_ctx),
Lev Walkinb47df092005-02-25 08:35:54 +00001079 1, /* XER encoding is XMLValueList */
Lev Walkinf5db6142005-02-24 22:38:43 +00001080};
1081asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
1082 "SetOfEnums",
1083 "SetOfEnums",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001084 &asn_OP_SET_OF,
Lev Walkinf5db6142005-02-24 22:38:43 +00001085 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001086 asn_DEF_SetOfEnums_tags_1,
1087 sizeof(asn_DEF_SetOfEnums_tags_1)
1088 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
1089 asn_DEF_SetOfEnums_tags_1, /* Same as above */
1090 sizeof(asn_DEF_SetOfEnums_tags_1)
1091 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001092 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001093 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001094 asn_MBR_SetOfEnums_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001095 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001096 &asn_SPC_SetOfEnums_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001097};
1098
1099
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001100/*** <<< INCLUDES [NamedSetOfNULL] >>> ***/
1101
1102#include <NULL.h>
1103#include <asn_SET_OF.h>
1104#include <constr_SET_OF.h>
1105
1106/*** <<< TYPE-DECLS [NamedSetOfNULL] >>> ***/
1107
1108typedef struct NamedSetOfNULL {
1109 A_SET_OF(NULL_t) list;
1110
1111 /* Context for parsing across buffer boundaries */
1112 asn_struct_ctx_t _asn_ctx;
1113} NamedSetOfNULL_t;
1114
1115/*** <<< FUNC-DECLS [NamedSetOfNULL] >>> ***/
1116
1117extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001118extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1;
1119extern asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001120
1121/*** <<< STAT-DEFS [NamedSetOfNULL] >>> ***/
1122
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001123asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001124 { ATF_POINTER, 0, 0,
1125 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1126 .tag_mode = 0,
1127 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001128 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001129 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001130 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001131 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1132 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001133 .name = "y"
1134 },
1135};
Lev Walkina7591b52014-10-12 18:37:35 -07001136static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001137 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1138};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001139asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001140 sizeof(struct NamedSetOfNULL),
1141 offsetof(struct NamedSetOfNULL, _asn_ctx),
1142 1, /* XER encoding is XMLValueList */
1143};
1144asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL = {
1145 "NamedSetOfNULL",
1146 "NamedSetOfNULL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001147 &asn_OP_SET_OF,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001148 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001149 asn_DEF_NamedSetOfNULL_tags_1,
1150 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1151 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
1152 asn_DEF_NamedSetOfNULL_tags_1, /* Same as above */
1153 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1154 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001155 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001156 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001157 asn_MBR_NamedSetOfNULL_1,
1158 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001159 &asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001160};
1161
1162
1163/*** <<< INCLUDES [NamedSetOfREAL] >>> ***/
1164
1165#include <REAL.h>
1166#include <asn_SET_OF.h>
1167#include <constr_SET_OF.h>
1168
1169/*** <<< TYPE-DECLS [NamedSetOfREAL] >>> ***/
1170
1171typedef struct NamedSetOfREAL {
1172 A_SET_OF(REAL_t) list;
1173
1174 /* Context for parsing across buffer boundaries */
1175 asn_struct_ctx_t _asn_ctx;
1176} NamedSetOfREAL_t;
1177
1178/*** <<< FUNC-DECLS [NamedSetOfREAL] >>> ***/
1179
1180extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001181extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1;
1182extern asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001183
1184/*** <<< STAT-DEFS [NamedSetOfREAL] >>> ***/
1185
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001186asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001187 { ATF_POINTER, 0, 0,
1188 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1189 .tag_mode = 0,
1190 .type = &asn_DEF_REAL,
Lev Walkin67a30122017-08-10 05:48:54 -07001191 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001192 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001193 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001194 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1195 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001196 .name = "name"
1197 },
1198};
Lev Walkina7591b52014-10-12 18:37:35 -07001199static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001200 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1201};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001202asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001203 sizeof(struct NamedSetOfREAL),
1204 offsetof(struct NamedSetOfREAL, _asn_ctx),
1205 0, /* XER encoding is XMLDelimitedItemList */
1206};
1207asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL = {
1208 "NamedSetOfREAL",
1209 "NamedSetOfREAL",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001210 &asn_OP_SET_OF,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001211 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001212 asn_DEF_NamedSetOfREAL_tags_1,
1213 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1214 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
1215 asn_DEF_NamedSetOfREAL_tags_1, /* Same as above */
1216 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1217 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001218 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001219 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001220 asn_MBR_NamedSetOfREAL_1,
1221 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001222 &asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001223};
1224
1225
1226/*** <<< INCLUDES [NamedSetOfEnums] >>> ***/
1227
1228#include <ENUMERATED.h>
1229#include <asn_SET_OF.h>
1230#include <constr_SET_OF.h>
1231
1232/*** <<< DEPS [NamedSetOfEnums] >>> ***/
1233
1234typedef enum name {
1235 name_one = 0,
1236 name_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001237} e_name;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001238
1239/*** <<< TYPE-DECLS [NamedSetOfEnums] >>> ***/
1240
1241typedef struct NamedSetOfEnums {
1242 A_SET_OF(ENUMERATED_t) list;
1243
1244 /* Context for parsing across buffer boundaries */
1245 asn_struct_ctx_t _asn_ctx;
1246} NamedSetOfEnums_t;
1247
1248/*** <<< FUNC-DECLS [NamedSetOfEnums] >>> ***/
1249
1250/* extern asn_TYPE_descriptor_t asn_DEF_name_2; // (Use -fall-defs-global to expose) */
1251extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001252extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1;
1253extern asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001254
1255/*** <<< CODE [NamedSetOfEnums] >>> ***/
1256
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001257/*
1258 * This type is implemented using ENUMERATED,
1259 * so here we adjust the DEF accordingly.
1260 */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001261
1262/*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/
1263
Lev Walkina7591b52014-10-12 18:37:35 -07001264static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001265 { 0, 3, "one" },
1266 { 1, 7, "oneMore" }
1267};
Lev Walkina7591b52014-10-12 18:37:35 -07001268static const unsigned int asn_MAP_name_enum2value_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001269 0, /* one(0) */
1270 1 /* oneMore(1) */
1271};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001272static const asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001273 asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */
1274 asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001275 2, /* Number of elements in the maps */
1276 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001277 1, /* Strict enumeration */
1278 0, /* Native long size */
1279 0
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001280};
Lev Walkina7591b52014-10-12 18:37:35 -07001281static const ber_tlv_tag_t asn_DEF_name_tags_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001282 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1283};
1284static /* Use -fall-defs-global to expose */
1285asn_TYPE_descriptor_t asn_DEF_name_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001286 "ENUMERATED",
1287 "ENUMERATED",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001288 &asn_OP_ENUMERATED,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001289 ENUMERATED_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001290 asn_DEF_name_tags_2,
1291 sizeof(asn_DEF_name_tags_2)
1292 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
1293 asn_DEF_name_tags_2, /* Same as above */
1294 sizeof(asn_DEF_name_tags_2)
1295 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001296 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001297 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001298 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001299 &asn_SPC_name_specs_2 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001300};
1301
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001302asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001303 { ATF_POINTER, 0, 0,
1304 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1305 .tag_mode = 0,
1306 .type = &asn_DEF_name_2,
Lev Walkin67a30122017-08-10 05:48:54 -07001307 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001308 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001309 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001310 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1311 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001312 .name = "name"
1313 },
1314};
Lev Walkina7591b52014-10-12 18:37:35 -07001315static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001316 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1317};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001318asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001319 sizeof(struct NamedSetOfEnums),
1320 offsetof(struct NamedSetOfEnums, _asn_ctx),
1321 1, /* XER encoding is XMLValueList */
1322};
1323asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums = {
1324 "NamedSetOfEnums",
1325 "NamedSetOfEnums",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001326 &asn_OP_SET_OF,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001327 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001328 asn_DEF_NamedSetOfEnums_tags_1,
1329 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1330 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
1331 asn_DEF_NamedSetOfEnums_tags_1, /* Same as above */
1332 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1333 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001334 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001335 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001336 asn_MBR_NamedSetOfEnums_1,
1337 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001338 &asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001339};
1340
1341
Lev Walkin843a2462005-02-18 16:30:26 +00001342/*** <<< INCLUDES [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001343
1344#include <INTEGER.h>
1345#include <asn_SEQUENCE_OF.h>
1346#include <constr_SEQUENCE_OF.h>
1347
Lev Walkin843a2462005-02-18 16:30:26 +00001348/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001349
Lev Walkin843a2462005-02-18 16:30:26 +00001350typedef struct SequenceOf {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001351 A_SEQUENCE_OF(INTEGER_t) list;
1352
1353 /* Context for parsing across buffer boundaries */
1354 asn_struct_ctx_t _asn_ctx;
Lev Walkin843a2462005-02-18 16:30:26 +00001355} SequenceOf_t;
Lev Walkin0ef9f142005-02-14 20:40:57 +00001356
Lev Walkinc8285712005-03-04 22:18:20 +00001357/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
1358
1359extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001360extern asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1;
1361extern asn_TYPE_member_t asn_MBR_SequenceOf_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001362
Lev Walkin843a2462005-02-18 16:30:26 +00001363/*** <<< STAT-DEFS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001364
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001365asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001366 { ATF_POINTER, 0, 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001367 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
1368 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001369 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -07001370 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001371 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001372 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001373 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1374 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001375 .name = "id"
1376 },
1377};
Lev Walkina7591b52014-10-12 18:37:35 -07001378static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001379 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1380};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001381asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +00001382 sizeof(struct SequenceOf),
1383 offsetof(struct SequenceOf, _asn_ctx),
Lev Walkin0ef9f142005-02-14 20:40:57 +00001384 0, /* XER encoding is XMLDelimitedItemList */
1385};
Lev Walkin843a2462005-02-18 16:30:26 +00001386asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
1387 "SequenceOf",
1388 "SequenceOf",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001389 &asn_OP_SEQUENCE_OF,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001390 SEQUENCE_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001391 asn_DEF_SequenceOf_tags_1,
1392 sizeof(asn_DEF_SequenceOf_tags_1)
1393 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
1394 asn_DEF_SequenceOf_tags_1, /* Same as above */
1395 sizeof(asn_DEF_SequenceOf_tags_1)
1396 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001397 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001398 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001399 asn_MBR_SequenceOf_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001400 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001401 &asn_SPC_SequenceOf_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001402};
1403
Lev Walkinf5db6142005-02-24 22:38:43 +00001404
1405/*** <<< INCLUDES [SeqOfZuka] >>> ***/
1406
1407#include <NULL.h>
1408#include <asn_SEQUENCE_OF.h>
1409#include <constr_SEQUENCE_OF.h>
1410
Lev Walkinf5db6142005-02-24 22:38:43 +00001411/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
1412
Lev Walkinf5db6142005-02-24 22:38:43 +00001413typedef struct SeqOfZuka {
1414 A_SEQUENCE_OF(NULL_t) list;
1415
1416 /* Context for parsing across buffer boundaries */
1417 asn_struct_ctx_t _asn_ctx;
1418} SeqOfZuka_t;
1419
Lev Walkinc8285712005-03-04 22:18:20 +00001420/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/
1421
1422extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001423extern asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1;
1424extern asn_TYPE_member_t asn_MBR_SeqOfZuka_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001425
Lev Walkinf5db6142005-02-24 22:38:43 +00001426/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
1427
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001428asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001429 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001430 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1431 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001432 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001433 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001434 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001435 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001436 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1437 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001438 .name = "zuka"
1439 },
1440};
Lev Walkina7591b52014-10-12 18:37:35 -07001441static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001442 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1443};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001444asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001445 sizeof(struct SeqOfZuka),
1446 offsetof(struct SeqOfZuka, _asn_ctx),
1447 1, /* XER encoding is XMLValueList */
1448};
1449asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
1450 "SeqOfZuka",
1451 "SeqOfZuka",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001452 &asn_OP_SEQUENCE_OF,
Lev Walkinf5db6142005-02-24 22:38:43 +00001453 SEQUENCE_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001454 asn_DEF_SeqOfZuka_tags_1,
1455 sizeof(asn_DEF_SeqOfZuka_tags_1)
1456 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
1457 asn_DEF_SeqOfZuka_tags_1, /* Same as above */
1458 sizeof(asn_DEF_SeqOfZuka_tags_1)
1459 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001460 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001461 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001462 asn_MBR_SeqOfZuka_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001463 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001464 &asn_SPC_SeqOfZuka_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001465};
1466
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001467
1468/*** <<< INCLUDES [SetOfChoice] >>> ***/
1469
1470#include <asn_SET_OF.h>
1471#include <constr_SET_OF.h>
1472
1473/*** <<< FWD-DECLS [SetOfChoice] >>> ***/
1474
1475struct SimpleChoice;
1476
1477/*** <<< TYPE-DECLS [SetOfChoice] >>> ***/
1478
1479typedef struct SetOfChoice {
1480 A_SET_OF(struct SimpleChoice) list;
1481
1482 /* Context for parsing across buffer boundaries */
1483 asn_struct_ctx_t _asn_ctx;
1484} SetOfChoice_t;
1485
1486/*** <<< FUNC-DECLS [SetOfChoice] >>> ***/
1487
1488extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001489extern asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1;
1490extern asn_TYPE_member_t asn_MBR_SetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001491
1492/*** <<< POST-INCLUDE [SetOfChoice] >>> ***/
1493
Lev Walkin22b5ed42006-09-13 02:51:20 +00001494#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001495
1496/*** <<< STAT-DEFS [SetOfChoice] >>> ***/
1497
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001498asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001499 { ATF_POINTER, 0, 0,
1500 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1501 .tag_mode = 0,
1502 .type = &asn_DEF_SimpleChoice,
Lev Walkin67a30122017-08-10 05:48:54 -07001503 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001504 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001505 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001506 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1507 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001508 .name = ""
1509 },
1510};
Lev Walkina7591b52014-10-12 18:37:35 -07001511static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001512 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1513};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001514asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001515 sizeof(struct SetOfChoice),
1516 offsetof(struct SetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001517 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001518};
1519asn_TYPE_descriptor_t asn_DEF_SetOfChoice = {
1520 "SetOfChoice",
1521 "SetOfChoice",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001522 &asn_OP_SET_OF,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001523 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001524 asn_DEF_SetOfChoice_tags_1,
1525 sizeof(asn_DEF_SetOfChoice_tags_1)
1526 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
1527 asn_DEF_SetOfChoice_tags_1, /* Same as above */
1528 sizeof(asn_DEF_SetOfChoice_tags_1)
1529 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001530 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001531 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001532 asn_MBR_SetOfChoice_1,
1533 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001534 &asn_SPC_SetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001535};
1536
1537
1538/*** <<< INCLUDES [NamedSetOfChoice] >>> ***/
1539
1540#include <asn_SET_OF.h>
1541#include <constr_SET_OF.h>
1542
1543/*** <<< FWD-DECLS [NamedSetOfChoice] >>> ***/
1544
1545struct SimpleChoice;
1546
1547/*** <<< TYPE-DECLS [NamedSetOfChoice] >>> ***/
1548
1549typedef struct NamedSetOfChoice {
1550 A_SET_OF(struct SimpleChoice) list;
1551
1552 /* Context for parsing across buffer boundaries */
1553 asn_struct_ctx_t _asn_ctx;
1554} NamedSetOfChoice_t;
1555
1556/*** <<< FUNC-DECLS [NamedSetOfChoice] >>> ***/
1557
1558extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001559extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1;
1560extern asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001561
1562/*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/
1563
Lev Walkin22b5ed42006-09-13 02:51:20 +00001564#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001565
1566/*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/
1567
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001568asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001569 { ATF_POINTER, 0, 0,
1570 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1571 .tag_mode = 0,
1572 .type = &asn_DEF_SimpleChoice,
Lev Walkin67a30122017-08-10 05:48:54 -07001573 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001574 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001575 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001576 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1577 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001578 .name = "whatever"
1579 },
1580};
Lev Walkina7591b52014-10-12 18:37:35 -07001581static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001582 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1583};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001584asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001585 sizeof(struct NamedSetOfChoice),
1586 offsetof(struct NamedSetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001587 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001588};
1589asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice = {
1590 "NamedSetOfChoice",
1591 "NamedSetOfChoice",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001592 &asn_OP_SET_OF,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001593 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001594 asn_DEF_NamedSetOfChoice_tags_1,
1595 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1596 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
1597 asn_DEF_NamedSetOfChoice_tags_1, /* Same as above */
1598 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1599 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001600 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001601 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001602 asn_MBR_NamedSetOfChoice_1,
1603 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001604 &asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001605};
1606
1607
1608/*** <<< INCLUDES [SimpleChoice] >>> ***/
1609
1610#include <NULL.h>
1611#include <INTEGER.h>
1612#include <constr_CHOICE.h>
1613
1614/*** <<< DEPS [SimpleChoice] >>> ***/
1615
1616typedef enum SimpleChoice_PR {
1617 SimpleChoice_PR_NOTHING, /* No components present */
1618 SimpleChoice_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001619 SimpleChoice_PR_b
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001620} SimpleChoice_PR;
1621
1622/*** <<< TYPE-DECLS [SimpleChoice] >>> ***/
1623
1624typedef struct SimpleChoice {
1625 SimpleChoice_PR present;
1626 union SimpleChoice_u {
1627 NULL_t a;
1628 INTEGER_t b;
1629 } choice;
1630
1631 /* Context for parsing across buffer boundaries */
1632 asn_struct_ctx_t _asn_ctx;
1633} SimpleChoice_t;
1634
1635/*** <<< FUNC-DECLS [SimpleChoice] >>> ***/
1636
1637extern asn_TYPE_descriptor_t asn_DEF_SimpleChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001638extern asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1;
1639extern asn_TYPE_member_t asn_MBR_SimpleChoice_1[2];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001640
1641/*** <<< STAT-DEFS [SimpleChoice] >>> ***/
1642
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001643asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001644 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.a),
1645 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1646 .tag_mode = -1, /* IMPLICIT tag at current level */
1647 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001648 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001649 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001650 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001651 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1652 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001653 .name = "a"
1654 },
1655 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.b),
1656 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1657 .tag_mode = -1, /* IMPLICIT tag at current level */
1658 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -07001659 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001660 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001661 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001662 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1663 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001664 .name = "b"
1665 },
1666};
Lev Walkina7591b52014-10-12 18:37:35 -07001667static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001668 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1669 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001670};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001671asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001672 sizeof(struct SimpleChoice),
1673 offsetof(struct SimpleChoice, _asn_ctx),
1674 offsetof(struct SimpleChoice, present),
1675 sizeof(((struct SimpleChoice *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -07001676 .tag2el = asn_MAP_SimpleChoice_tag2el_1,
1677 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001678 .canonical_order = 0,
1679 .ext_start = -1 /* Extensions start */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001680};
1681asn_TYPE_descriptor_t asn_DEF_SimpleChoice = {
1682 "SimpleChoice",
1683 "SimpleChoice",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001684 &asn_OP_CHOICE,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001685 CHOICE_constraint,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001686 0, /* No effective tags (pointer) */
1687 0, /* No effective tags (count) */
1688 0, /* No tags (pointer) */
1689 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +04001690 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001691 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001692 asn_MBR_SimpleChoice_1,
1693 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001694 &asn_SPC_SimpleChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001695};
1696