blob: b50ab260cf9dada83cdbe4556c2ea73e175c096c [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 Walkin59b176e2005-11-26 11:25:14 +0000269 asn_MAP_PDU_tag2el_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000270 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",
277 CHOICE_free,
278 CHOICE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700279 CHOICE_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000280 CHOICE_constraint,
281 CHOICE_decode_ber,
282 CHOICE_encode_der,
283 CHOICE_decode_xer,
284 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700285 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400286 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000287 CHOICE_outmost_tag,
288 0, /* No effective tags (pointer) */
289 0, /* No effective tags (count) */
290 0, /* No tags (pointer) */
291 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400292 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000293 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000294 asn_MBR_PDU_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000295 15, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000296 &asn_SPC_PDU_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000297};
298
299
300/*** <<< INCLUDES [Sequence] >>> ***/
301
302#include <INTEGER.h>
Lev Walkin0ef9f142005-02-14 20:40:57 +0000303#include <BIT_STRING.h>
304#include <UTF8String.h>
305#include <constr_SEQUENCE.h>
306
Lev Walkinc8285712005-03-04 22:18:20 +0000307/*** <<< FWD-DECLS [Sequence] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +0000308
Lev Walkinbf56d542005-03-04 23:50:56 +0000309struct Sequence;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000310
311/*** <<< TYPE-DECLS [Sequence] >>> ***/
312
Lev Walkin0ef9f142005-02-14 20:40:57 +0000313typedef struct Sequence {
314 INTEGER_t integer;
315 struct Sequence *sequence /* OPTIONAL */;
316 BIT_STRING_t *bits /* OPTIONAL */;
317 UTF8String_t string;
318
319 /* Context for parsing across buffer boundaries */
320 asn_struct_ctx_t _asn_ctx;
321} Sequence_t;
322
Lev Walkinc8285712005-03-04 22:18:20 +0000323/*** <<< FUNC-DECLS [Sequence] >>> ***/
324
325extern asn_TYPE_descriptor_t asn_DEF_Sequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800326extern asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1;
327extern asn_TYPE_member_t asn_MBR_Sequence_1[4];
Lev Walkinc8285712005-03-04 22:18:20 +0000328
329/*** <<< POST-INCLUDE [Sequence] >>> ***/
330
Lev Walkin22b5ed42006-09-13 02:51:20 +0000331#include "Sequence.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000332
Lev Walkin0ef9f142005-02-14 20:40:57 +0000333/*** <<< STAT-DEFS [Sequence] >>> ***/
334
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800335asn_TYPE_member_t asn_MBR_Sequence_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000336 { ATF_NOFLAGS, 0, offsetof(struct Sequence, integer),
337 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
338 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000339 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700340 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000341 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400342 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000343 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
344 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000345 .name = "integer"
346 },
347 { ATF_POINTER, 2, offsetof(struct Sequence, sequence),
348 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
349 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000350 .type = &asn_DEF_Sequence,
Lev Walkin67a30122017-08-10 05:48:54 -0700351 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000352 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400353 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000354 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
355 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000356 .name = "sequence"
357 },
358 { ATF_POINTER, 1, offsetof(struct Sequence, bits),
359 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
360 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000361 .type = &asn_DEF_BIT_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700362 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000363 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400364 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000365 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
366 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000367 .name = "bits"
368 },
369 { ATF_NOFLAGS, 0, offsetof(struct Sequence, string),
370 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
371 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000372 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700373 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000374 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400375 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000376 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
377 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000378 .name = "string"
379 },
380};
Lev Walkina7591b52014-10-12 18:37:35 -0700381static const ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000382 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
383};
Lev Walkina7591b52014-10-12 18:37:35 -0700384static const asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700385 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* integer */
386 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* sequence */
387 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* bits */
388 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* string */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000389};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800390asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000391 sizeof(struct Sequence),
392 offsetof(struct Sequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000393 asn_MAP_Sequence_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000394 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000395 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000396 -1, /* Start extensions */
397 -1 /* Stop extensions */
398};
399asn_TYPE_descriptor_t asn_DEF_Sequence = {
400 "Sequence",
401 "Sequence",
402 SEQUENCE_free,
403 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700404 SEQUENCE_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000405 SEQUENCE_constraint,
406 SEQUENCE_decode_ber,
407 SEQUENCE_encode_der,
408 SEQUENCE_decode_xer,
409 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700410 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400411 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000412 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000413 asn_DEF_Sequence_tags_1,
414 sizeof(asn_DEF_Sequence_tags_1)
415 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
416 asn_DEF_Sequence_tags_1, /* Same as above */
417 sizeof(asn_DEF_Sequence_tags_1)
418 /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400419 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000420 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000421 asn_MBR_Sequence_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000422 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000423 &asn_SPC_Sequence_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000424};
425
426
427/*** <<< INCLUDES [Set] >>> ***/
428
429#include <RELATIVE-OID.h>
430#include <OCTET_STRING.h>
431#include <constr_SET.h>
432
433/*** <<< DEPS [Set] >>> ***/
434
435
436/*
437 * Method of determining the components presence
438 */
439typedef enum Set_PR {
440 Set_PR_roid, /* Member roid is present */
441 Set_PR_opaque, /* Member opaque is present */
442} Set_PR;
Lev Walkin0ef9f142005-02-14 20:40:57 +0000443
444/*** <<< TYPE-DECLS [Set] >>> ***/
445
Lev Walkin0ef9f142005-02-14 20:40:57 +0000446typedef struct Set {
447 RELATIVE_OID_t roid;
448 OCTET_STRING_t *opaque /* OPTIONAL */;
449
450 /* Presence bitmask: ASN_SET_ISPRESENT(pSet, Set_PR_x) */
451 unsigned int _presence_map
452 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
453
454 /* Context for parsing across buffer boundaries */
455 asn_struct_ctx_t _asn_ctx;
456} Set_t;
457
Lev Walkinc8285712005-03-04 22:18:20 +0000458/*** <<< FUNC-DECLS [Set] >>> ***/
459
460extern asn_TYPE_descriptor_t asn_DEF_Set;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800461extern asn_SET_specifics_t asn_SPC_Set_specs_1;
462extern asn_TYPE_member_t asn_MBR_Set_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000463
Lev Walkin0ef9f142005-02-14 20:40:57 +0000464/*** <<< STAT-DEFS [Set] >>> ***/
465
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800466asn_TYPE_member_t asn_MBR_Set_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000467 { ATF_NOFLAGS, 0, offsetof(struct Set, roid),
468 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
469 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000470 .type = &asn_DEF_RELATIVE_OID,
Lev Walkin67a30122017-08-10 05:48:54 -0700471 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000472 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400473 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000474 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
475 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000476 .name = "roid"
477 },
478 { ATF_POINTER, 1, offsetof(struct Set, opaque),
479 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
480 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000481 .type = &asn_DEF_OCTET_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700482 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000483 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400484 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000485 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
486 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000487 .name = "opaque"
488 },
489};
Lev Walkina7591b52014-10-12 18:37:35 -0700490static const ber_tlv_tag_t asn_DEF_Set_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000491 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
492};
Lev Walkina7591b52014-10-12 18:37:35 -0700493static const asn_TYPE_tag2member_t asn_MAP_Set_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700494 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* roid */
495 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* opaque */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000496};
Lev Walkina7591b52014-10-12 18:37:35 -0700497static const uint8_t asn_MAP_Set_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000498 (1 << 7) | (0 << 6)
499};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800500asn_SET_specifics_t asn_SPC_Set_specs_1 = {
Lev Walkin0ef9f142005-02-14 20:40:57 +0000501 sizeof(struct Set),
502 offsetof(struct Set, _asn_ctx),
503 offsetof(struct Set, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000504 asn_MAP_Set_tag2el_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000505 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000506 asn_MAP_Set_tag2el_1, /* Same as above */
Lev Walkinf5db6142005-02-24 22:38:43 +0000507 2, /* Count of tags in the CXER map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000508 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700509 (const unsigned int *)asn_MAP_Set_mmap_1 /* Mandatory elements map */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000510};
511asn_TYPE_descriptor_t asn_DEF_Set = {
512 "Set",
513 "Set",
514 SET_free,
515 SET_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700516 SET_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000517 SET_constraint,
518 SET_decode_ber,
519 SET_encode_der,
520 SET_decode_xer,
521 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700522 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400523 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000524 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000525 asn_DEF_Set_tags_1,
526 sizeof(asn_DEF_Set_tags_1)
527 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
528 asn_DEF_Set_tags_1, /* Same as above */
529 sizeof(asn_DEF_Set_tags_1)
530 /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400531 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000532 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000533 asn_MBR_Set_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +0000534 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000535 &asn_SPC_Set_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +0000536};
537
538
Lev Walkin843a2462005-02-18 16:30:26 +0000539/*** <<< INCLUDES [ExtensibleSet] >>> ***/
540
541#include <UTF8String.h>
Lev Walkinc92a7462005-03-10 11:20:47 +0000542#include <ENUMERATED.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000543#include <constr_SET.h>
544
545/*** <<< DEPS [ExtensibleSet] >>> ***/
546
547
548/*
549 * Method of determining the components presence
550 */
551typedef enum ExtensibleSet_PR {
552 ExtensibleSet_PR_string, /* Member string is present */
Lev Walkinc92a7462005-03-10 11:20:47 +0000553 ExtensibleSet_PR_enum, /* Member enum is present */
Lev Walkin843a2462005-02-18 16:30:26 +0000554} ExtensibleSet_PR;
Lev Walkinc92a7462005-03-10 11:20:47 +0000555typedef enum Enum {
556 enum_b = 0,
557 enum_a = 1
Lev Walkin171487e2006-03-21 07:25:18 +0000558} e_enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000559
560/*** <<< TYPE-DECLS [ExtensibleSet] >>> ***/
561
Lev Walkin843a2462005-02-18 16:30:26 +0000562typedef struct ExtensibleSet {
563 UTF8String_t *string /* OPTIONAL */;
564 /*
565 * This type is extensible,
566 * possible extensions are below.
567 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000568 ENUMERATED_t *Enum;
Lev Walkin843a2462005-02-18 16:30:26 +0000569
570 /* Presence bitmask: ASN_SET_ISPRESENT(pExtensibleSet, ExtensibleSet_PR_x) */
571 unsigned int _presence_map
Lev Walkinc92a7462005-03-10 11:20:47 +0000572 [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin843a2462005-02-18 16:30:26 +0000573
574 /* Context for parsing across buffer boundaries */
575 asn_struct_ctx_t _asn_ctx;
576} ExtensibleSet_t;
577
Lev Walkinc8285712005-03-04 22:18:20 +0000578/*** <<< FUNC-DECLS [ExtensibleSet] >>> ***/
579
Lev Walkinc92a7462005-03-10 11:20:47 +0000580/* extern asn_TYPE_descriptor_t asn_DEF_enum_4; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000581extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800582extern asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1;
583extern asn_TYPE_member_t asn_MBR_ExtensibleSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000584
Lev Walkinc92a7462005-03-10 11:20:47 +0000585/*** <<< CODE [ExtensibleSet] >>> ***/
586
Lev Walkinc92a7462005-03-10 11:20:47 +0000587/*
588 * This type is implemented using ENUMERATED,
589 * so here we adjust the DEF accordingly.
590 */
Lev Walkinc92a7462005-03-10 11:20:47 +0000591
Lev Walkin843a2462005-02-18 16:30:26 +0000592/*** <<< STAT-DEFS [ExtensibleSet] >>> ***/
593
Lev Walkina7591b52014-10-12 18:37:35 -0700594static const asn_INTEGER_enum_map_t asn_MAP_enum_value2enum_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000595 { 0, 1, "b" },
596 { 1, 1, "a" }
597};
Lev Walkina7591b52014-10-12 18:37:35 -0700598static const unsigned int asn_MAP_enum_enum2value_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000599 1, /* a(1) */
600 0 /* b(0) */
601};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800602static const asn_INTEGER_specifics_t asn_SPC_enum_specs_4 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000603 asn_MAP_enum_value2enum_4, /* "tag" => N; sorted by tag */
604 asn_MAP_enum_enum2value_4, /* N => "tag"; sorted by N */
Lev Walkinc92a7462005-03-10 11:20:47 +0000605 2, /* Number of elements in the maps */
606 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000607 1, /* Strict enumeration */
608 0, /* Native long size */
609 0
Lev Walkinc92a7462005-03-10 11:20:47 +0000610};
Lev Walkina7591b52014-10-12 18:37:35 -0700611static const ber_tlv_tag_t asn_DEF_enum_tags_4[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000612 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
613 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
614};
615static /* Use -fall-defs-global to expose */
616asn_TYPE_descriptor_t asn_DEF_enum_4 = {
617 "enum",
618 "enum",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800619 ENUMERATED_free,
620 ENUMERATED_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700621 ENUMERATED_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800622 ENUMERATED_constraint,
623 ENUMERATED_decode_ber,
624 ENUMERATED_encode_der,
625 ENUMERATED_decode_xer,
626 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700627 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400628 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinc92a7462005-03-10 11:20:47 +0000629 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000630 asn_DEF_enum_tags_4,
631 sizeof(asn_DEF_enum_tags_4)
632 /sizeof(asn_DEF_enum_tags_4[0]) - 1, /* 1 */
633 asn_DEF_enum_tags_4, /* Same as above */
634 sizeof(asn_DEF_enum_tags_4)
635 /sizeof(asn_DEF_enum_tags_4[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400636 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000637 0, /* No PER visible constraints */
Lev Walkinc92a7462005-03-10 11:20:47 +0000638 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000639 &asn_SPC_enum_specs_4 /* Additional specs */
Lev Walkinc92a7462005-03-10 11:20:47 +0000640};
641
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800642asn_TYPE_member_t asn_MBR_ExtensibleSet_1[] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000643 { ATF_POINTER, 2, offsetof(struct ExtensibleSet, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000644 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
645 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000646 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700647 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000648 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400649 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000650 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
651 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000652 .name = "string"
653 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000654 { ATF_POINTER, 1, offsetof(struct ExtensibleSet, Enum),
Lev Walkinc92a7462005-03-10 11:20:47 +0000655 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
656 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000657 .type = &asn_DEF_enum_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700658 .type_selector = 0,
Lev Walkinc92a7462005-03-10 11:20:47 +0000659 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400660 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000661 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
662 .default_value = 0,
Lev Walkinc92a7462005-03-10 11:20:47 +0000663 .name = "enum"
664 },
Lev Walkin843a2462005-02-18 16:30:26 +0000665};
Lev Walkina7591b52014-10-12 18:37:35 -0700666static const ber_tlv_tag_t asn_DEF_ExtensibleSet_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000667 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
668};
Lev Walkina7591b52014-10-12 18:37:35 -0700669static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700670 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
671 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* enum */
Lev Walkin843a2462005-02-18 16:30:26 +0000672};
Lev Walkina7591b52014-10-12 18:37:35 -0700673static const uint8_t asn_MAP_ExtensibleSet_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkinc92a7462005-03-10 11:20:47 +0000674 (0 << 7) | (0 << 6)
Lev Walkin843a2462005-02-18 16:30:26 +0000675};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800676asn_SET_specifics_t asn_SPC_ExtensibleSet_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000677 sizeof(struct ExtensibleSet),
678 offsetof(struct ExtensibleSet, _asn_ctx),
679 offsetof(struct ExtensibleSet, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000680 asn_MAP_ExtensibleSet_tag2el_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000681 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000682 asn_MAP_ExtensibleSet_tag2el_1, /* Same as above */
Lev Walkinc92a7462005-03-10 11:20:47 +0000683 2, /* Count of tags in the CXER map */
Lev Walkin843a2462005-02-18 16:30:26 +0000684 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700685 (const unsigned int *)asn_MAP_ExtensibleSet_mmap_1 /* Mandatory elements map */
Lev Walkin843a2462005-02-18 16:30:26 +0000686};
687asn_TYPE_descriptor_t asn_DEF_ExtensibleSet = {
688 "ExtensibleSet",
689 "ExtensibleSet",
690 SET_free,
691 SET_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700692 SET_compare,
Lev Walkin843a2462005-02-18 16:30:26 +0000693 SET_constraint,
694 SET_decode_ber,
695 SET_encode_der,
696 SET_decode_xer,
697 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700698 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400699 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000700 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000701 asn_DEF_ExtensibleSet_tags_1,
702 sizeof(asn_DEF_ExtensibleSet_tags_1)
703 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
704 asn_DEF_ExtensibleSet_tags_1, /* Same as above */
705 sizeof(asn_DEF_ExtensibleSet_tags_1)
706 /sizeof(asn_DEF_ExtensibleSet_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400707 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000708 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000709 asn_MBR_ExtensibleSet_1,
Lev Walkinc92a7462005-03-10 11:20:47 +0000710 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000711 &asn_SPC_ExtensibleSet_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000712};
713
714
715/*** <<< INCLUDES [ExtensibleSequence] >>> ***/
716
717#include <UTF8String.h>
718#include <INTEGER.h>
Lev Walkin15750402005-07-03 05:27:19 +0000719#include <GeneralizedTime.h>
Lev Walkin843a2462005-02-18 16:30:26 +0000720#include <constr_SEQUENCE.h>
721
Lev Walkin843a2462005-02-18 16:30:26 +0000722/*** <<< TYPE-DECLS [ExtensibleSequence] >>> ***/
723
Lev Walkin843a2462005-02-18 16:30:26 +0000724typedef struct ExtensibleSequence {
725 UTF8String_t *string /* OPTIONAL */;
726 /*
727 * This type is extensible,
728 * possible extensions are below.
729 */
730 INTEGER_t *integer /* OPTIONAL */;
Lev Walkin15750402005-07-03 05:27:19 +0000731 GeneralizedTime_t *gtime;
Lev Walkin843a2462005-02-18 16:30:26 +0000732
733 /* Context for parsing across buffer boundaries */
734 asn_struct_ctx_t _asn_ctx;
735} ExtensibleSequence_t;
736
Lev Walkinc8285712005-03-04 22:18:20 +0000737/*** <<< FUNC-DECLS [ExtensibleSequence] >>> ***/
738
739extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800740extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1;
741extern asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[3];
Lev Walkinc8285712005-03-04 22:18:20 +0000742
Lev Walkin843a2462005-02-18 16:30:26 +0000743/*** <<< STAT-DEFS [ExtensibleSequence] >>> ***/
744
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800745asn_TYPE_member_t asn_MBR_ExtensibleSequence_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000746 { ATF_POINTER, 3, offsetof(struct ExtensibleSequence, string),
Lev Walkin843a2462005-02-18 16:30:26 +0000747 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
748 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000749 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700750 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000751 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400752 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000753 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
754 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000755 .name = "string"
756 },
Lev Walkin15750402005-07-03 05:27:19 +0000757 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence, integer),
Lev Walkin843a2462005-02-18 16:30:26 +0000758 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
759 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000760 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700761 .type_selector = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000762 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400763 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000764 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
765 .default_value = 0,
Lev Walkin843a2462005-02-18 16:30:26 +0000766 .name = "integer"
767 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000768 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence, gtime),
Lev Walkin15750402005-07-03 05:27:19 +0000769 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
770 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000771 .type = &asn_DEF_GeneralizedTime,
Lev Walkin67a30122017-08-10 05:48:54 -0700772 .type_selector = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000773 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400774 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000775 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
776 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000777 .name = "gtime"
778 },
Lev Walkin843a2462005-02-18 16:30:26 +0000779};
Lev Walkina7591b52014-10-12 18:37:35 -0700780static const ber_tlv_tag_t asn_DEF_ExtensibleSequence_tags_1[] = {
Lev Walkin843a2462005-02-18 16:30:26 +0000781 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
782};
Lev Walkina7591b52014-10-12 18:37:35 -0700783static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700784 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
785 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* integer */
786 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* gtime */
Lev Walkin843a2462005-02-18 16:30:26 +0000787};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800788asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +0000789 sizeof(struct ExtensibleSequence),
790 offsetof(struct ExtensibleSequence, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000791 asn_MAP_ExtensibleSequence_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000792 3, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000793 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin843a2462005-02-18 16:30:26 +0000794 0, /* Start extensions */
Lev Walkin15750402005-07-03 05:27:19 +0000795 4 /* Stop extensions */
Lev Walkin843a2462005-02-18 16:30:26 +0000796};
797asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence = {
798 "ExtensibleSequence",
799 "ExtensibleSequence",
800 SEQUENCE_free,
801 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700802 SEQUENCE_compare,
Lev Walkin843a2462005-02-18 16:30:26 +0000803 SEQUENCE_constraint,
804 SEQUENCE_decode_ber,
805 SEQUENCE_encode_der,
806 SEQUENCE_decode_xer,
807 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700808 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400809 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin843a2462005-02-18 16:30:26 +0000810 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000811 asn_DEF_ExtensibleSequence_tags_1,
812 sizeof(asn_DEF_ExtensibleSequence_tags_1)
813 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
814 asn_DEF_ExtensibleSequence_tags_1, /* Same as above */
815 sizeof(asn_DEF_ExtensibleSequence_tags_1)
816 /sizeof(asn_DEF_ExtensibleSequence_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400817 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000818 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000819 asn_MBR_ExtensibleSequence_1,
Lev Walkin15750402005-07-03 05:27:19 +0000820 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000821 &asn_SPC_ExtensibleSequence_specs_1 /* Additional specs */
Lev Walkin843a2462005-02-18 16:30:26 +0000822};
823
824
Lev Walkin15750402005-07-03 05:27:19 +0000825/*** <<< INCLUDES [ExtensibleSequence2] >>> ***/
826
827#include <UTF8String.h>
828#include <INTEGER.h>
829#include <constr_SEQUENCE.h>
830
831/*** <<< TYPE-DECLS [ExtensibleSequence2] >>> ***/
832
833typedef struct ExtensibleSequence2 {
834 UTF8String_t *string /* OPTIONAL */;
835 /*
836 * This type is extensible,
837 * possible extensions are below.
838 */
839 INTEGER_t *integer /* OPTIONAL */;
840
841 /* Context for parsing across buffer boundaries */
842 asn_struct_ctx_t _asn_ctx;
843} ExtensibleSequence2_t;
844
845/*** <<< FUNC-DECLS [ExtensibleSequence2] >>> ***/
846
847extern asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800848extern asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1;
849extern asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[2];
Lev Walkin15750402005-07-03 05:27:19 +0000850
851/*** <<< STAT-DEFS [ExtensibleSequence2] >>> ***/
852
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800853asn_TYPE_member_t asn_MBR_ExtensibleSequence2_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000854 { ATF_POINTER, 2, offsetof(struct ExtensibleSequence2, string),
855 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
856 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000857 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700858 .type_selector = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000859 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400860 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000861 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
862 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000863 .name = "string"
864 },
865 { ATF_POINTER, 1, offsetof(struct ExtensibleSequence2, integer),
866 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
867 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000868 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700869 .type_selector = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000870 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400871 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000872 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
873 .default_value = 0,
Lev Walkin15750402005-07-03 05:27:19 +0000874 .name = "integer"
875 },
876};
Lev Walkina7591b52014-10-12 18:37:35 -0700877static const ber_tlv_tag_t asn_DEF_ExtensibleSequence2_tags_1[] = {
Lev Walkin15750402005-07-03 05:27:19 +0000878 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
879};
Lev Walkina7591b52014-10-12 18:37:35 -0700880static const asn_TYPE_tag2member_t asn_MAP_ExtensibleSequence2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700881 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* string */
882 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* integer */
Lev Walkin15750402005-07-03 05:27:19 +0000883};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800884asn_SEQUENCE_specifics_t asn_SPC_ExtensibleSequence2_specs_1 = {
Lev Walkin15750402005-07-03 05:27:19 +0000885 sizeof(struct ExtensibleSequence2),
886 offsetof(struct ExtensibleSequence2, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000887 asn_MAP_ExtensibleSequence2_tag2el_1,
Lev Walkin15750402005-07-03 05:27:19 +0000888 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000889 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin15750402005-07-03 05:27:19 +0000890 0, /* Start extensions */
891 3 /* Stop extensions */
892};
893asn_TYPE_descriptor_t asn_DEF_ExtensibleSequence2 = {
894 "ExtensibleSequence2",
895 "ExtensibleSequence2",
896 SEQUENCE_free,
897 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700898 SEQUENCE_compare,
Lev Walkin15750402005-07-03 05:27:19 +0000899 SEQUENCE_constraint,
900 SEQUENCE_decode_ber,
901 SEQUENCE_encode_der,
902 SEQUENCE_decode_xer,
903 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700904 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400905 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin15750402005-07-03 05:27:19 +0000906 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000907 asn_DEF_ExtensibleSequence2_tags_1,
908 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
909 /sizeof(asn_DEF_ExtensibleSequence2_tags_1[0]), /* 1 */
910 asn_DEF_ExtensibleSequence2_tags_1, /* Same as above */
911 sizeof(asn_DEF_ExtensibleSequence2_tags_1)
912 /sizeof(asn_DEF_ExtensibleSequence2_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 Walkin15750402005-07-03 05:27:19 +0000915 asn_MBR_ExtensibleSequence2_1,
916 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000917 &asn_SPC_ExtensibleSequence2_specs_1 /* Additional specs */
Lev Walkin15750402005-07-03 05:27:19 +0000918};
919
920
Lev Walkinf5db6142005-02-24 22:38:43 +0000921/*** <<< INCLUDES [SetOfNULL] >>> ***/
922
923#include <NULL.h>
924#include <asn_SET_OF.h>
925#include <constr_SET_OF.h>
926
Lev Walkinf5db6142005-02-24 22:38:43 +0000927/*** <<< TYPE-DECLS [SetOfNULL] >>> ***/
928
Lev Walkinf5db6142005-02-24 22:38:43 +0000929typedef struct SetOfNULL {
930 A_SET_OF(NULL_t) list;
931
932 /* Context for parsing across buffer boundaries */
933 asn_struct_ctx_t _asn_ctx;
934} SetOfNULL_t;
935
Lev Walkinc8285712005-03-04 22:18:20 +0000936/*** <<< FUNC-DECLS [SetOfNULL] >>> ***/
937
938extern asn_TYPE_descriptor_t asn_DEF_SetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800939extern asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1;
940extern asn_TYPE_member_t asn_MBR_SetOfNULL_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000941
Lev Walkinf5db6142005-02-24 22:38:43 +0000942/*** <<< STAT-DEFS [SetOfNULL] >>> ***/
943
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800944asn_TYPE_member_t asn_MBR_SetOfNULL_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000945 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +0000946 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
947 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000948 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -0700949 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +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 Walkinf5db6142005-02-24 22:38:43 +0000954 .name = ""
955 },
956};
Lev Walkina7591b52014-10-12 18:37:35 -0700957static const ber_tlv_tag_t asn_DEF_SetOfNULL_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000958 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
959};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800960asn_SET_OF_specifics_t asn_SPC_SetOfNULL_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +0000961 sizeof(struct SetOfNULL),
962 offsetof(struct SetOfNULL, _asn_ctx),
963 1, /* XER encoding is XMLValueList */
964};
965asn_TYPE_descriptor_t asn_DEF_SetOfNULL = {
966 "SetOfNULL",
967 "SetOfNULL",
968 SET_OF_free,
969 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700970 SET_OF_compare,
Lev Walkinf5db6142005-02-24 22:38:43 +0000971 SET_OF_constraint,
972 SET_OF_decode_ber,
973 SET_OF_encode_der,
974 SET_OF_decode_xer,
975 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700976 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400977 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +0000978 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000979 asn_DEF_SetOfNULL_tags_1,
980 sizeof(asn_DEF_SetOfNULL_tags_1)
981 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
982 asn_DEF_SetOfNULL_tags_1, /* Same as above */
983 sizeof(asn_DEF_SetOfNULL_tags_1)
984 /sizeof(asn_DEF_SetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400985 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000986 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000987 asn_MBR_SetOfNULL_1,
Lev Walkinf5db6142005-02-24 22:38:43 +0000988 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000989 &asn_SPC_SetOfNULL_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +0000990};
991
992
Lev Walkin5ab96cd2005-11-07 15:26:47 +0000993/*** <<< INCLUDES [SetOfREAL] >>> ***/
994
995#include <REAL.h>
996#include <asn_SET_OF.h>
997#include <constr_SET_OF.h>
998
999/*** <<< TYPE-DECLS [SetOfREAL] >>> ***/
1000
1001typedef struct SetOfREAL {
1002 A_SET_OF(REAL_t) list;
1003
1004 /* Context for parsing across buffer boundaries */
1005 asn_struct_ctx_t _asn_ctx;
1006} SetOfREAL_t;
1007
1008/*** <<< FUNC-DECLS [SetOfREAL] >>> ***/
1009
1010extern asn_TYPE_descriptor_t asn_DEF_SetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001011extern asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1;
1012extern asn_TYPE_member_t asn_MBR_SetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001013
1014/*** <<< STAT-DEFS [SetOfREAL] >>> ***/
1015
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001016asn_TYPE_member_t asn_MBR_SetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001017 { ATF_POINTER, 0, 0,
1018 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1019 .tag_mode = 0,
1020 .type = &asn_DEF_REAL,
Lev Walkin67a30122017-08-10 05:48:54 -07001021 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001022 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001023 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001024 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1025 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001026 .name = ""
1027 },
1028};
Lev Walkina7591b52014-10-12 18:37:35 -07001029static const ber_tlv_tag_t asn_DEF_SetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001030 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1031};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001032asn_SET_OF_specifics_t asn_SPC_SetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001033 sizeof(struct SetOfREAL),
1034 offsetof(struct SetOfREAL, _asn_ctx),
1035 0, /* XER encoding is XMLDelimitedItemList */
1036};
1037asn_TYPE_descriptor_t asn_DEF_SetOfREAL = {
1038 "SetOfREAL",
1039 "SetOfREAL",
1040 SET_OF_free,
1041 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001042 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001043 SET_OF_constraint,
1044 SET_OF_decode_ber,
1045 SET_OF_encode_der,
1046 SET_OF_decode_xer,
1047 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001048 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001049 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001050 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001051 asn_DEF_SetOfREAL_tags_1,
1052 sizeof(asn_DEF_SetOfREAL_tags_1)
1053 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
1054 asn_DEF_SetOfREAL_tags_1, /* Same as above */
1055 sizeof(asn_DEF_SetOfREAL_tags_1)
1056 /sizeof(asn_DEF_SetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001057 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001058 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001059 asn_MBR_SetOfREAL_1,
1060 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001061 &asn_SPC_SetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001062};
1063
1064
Lev Walkinf5db6142005-02-24 22:38:43 +00001065/*** <<< INCLUDES [SetOfEnums] >>> ***/
1066
1067#include <ENUMERATED.h>
1068#include <asn_SET_OF.h>
1069#include <constr_SET_OF.h>
1070
1071/*** <<< DEPS [SetOfEnums] >>> ***/
1072
Lev Walkine0272aa2005-03-04 11:26:08 +00001073typedef enum Member {
1074 Member_one = 0,
1075 Member_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001076} e_Member;
Lev Walkinf5db6142005-02-24 22:38:43 +00001077
1078/*** <<< TYPE-DECLS [SetOfEnums] >>> ***/
1079
Lev Walkinf5db6142005-02-24 22:38:43 +00001080typedef struct SetOfEnums {
1081 A_SET_OF(ENUMERATED_t) list;
1082
1083 /* Context for parsing across buffer boundaries */
1084 asn_struct_ctx_t _asn_ctx;
1085} SetOfEnums_t;
1086
Lev Walkinb47df092005-02-25 08:35:54 +00001087/*** <<< FUNC-DECLS [SetOfEnums] >>> ***/
1088
Lev Walkine0272aa2005-03-04 11:26:08 +00001089/* extern asn_TYPE_descriptor_t asn_DEF_Member_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +00001090extern asn_TYPE_descriptor_t asn_DEF_SetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001091extern asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1;
1092extern asn_TYPE_member_t asn_MBR_SetOfEnums_1[1];
Lev Walkinb47df092005-02-25 08:35:54 +00001093
1094/*** <<< CODE [SetOfEnums] >>> ***/
1095
Lev Walkinb47df092005-02-25 08:35:54 +00001096/*
1097 * This type is implemented using ENUMERATED,
1098 * so here we adjust the DEF accordingly.
1099 */
Lev Walkinb47df092005-02-25 08:35:54 +00001100
Lev Walkinf5db6142005-02-24 22:38:43 +00001101/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
1102
Lev Walkina7591b52014-10-12 18:37:35 -07001103static const asn_INTEGER_enum_map_t asn_MAP_Member_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001104 { 0, 3, "one" },
1105 { 1, 7, "oneMore" }
1106};
Lev Walkina7591b52014-10-12 18:37:35 -07001107static const unsigned int asn_MAP_Member_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +00001108 0, /* one(0) */
1109 1 /* oneMore(1) */
Lev Walkinb47df092005-02-25 08:35:54 +00001110};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001111static const asn_INTEGER_specifics_t asn_SPC_Member_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001112 asn_MAP_Member_value2enum_2, /* "tag" => N; sorted by tag */
1113 asn_MAP_Member_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinb47df092005-02-25 08:35:54 +00001114 2, /* Number of elements in the maps */
Lev Walkin295e2452005-02-25 11:47:59 +00001115 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001116 1, /* Strict enumeration */
1117 0, /* Native long size */
1118 0
Lev Walkinb47df092005-02-25 08:35:54 +00001119};
Lev Walkina7591b52014-10-12 18:37:35 -07001120static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
Lev Walkinb47df092005-02-25 08:35:54 +00001121 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1122};
1123static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +00001124asn_TYPE_descriptor_t asn_DEF_Member_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001125 "ENUMERATED",
1126 "ENUMERATED",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001127 ENUMERATED_free,
1128 ENUMERATED_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001129 ENUMERATED_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001130 ENUMERATED_constraint,
1131 ENUMERATED_decode_ber,
1132 ENUMERATED_encode_der,
1133 ENUMERATED_decode_xer,
1134 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001135 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001136 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinb47df092005-02-25 08:35:54 +00001137 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001138 asn_DEF_Member_tags_2,
1139 sizeof(asn_DEF_Member_tags_2)
1140 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
1141 asn_DEF_Member_tags_2, /* Same as above */
1142 sizeof(asn_DEF_Member_tags_2)
1143 /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001144 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001145 0, /* No PER visible constraints */
Lev Walkinb47df092005-02-25 08:35:54 +00001146 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001147 &asn_SPC_Member_specs_2 /* Additional specs */
Lev Walkinb47df092005-02-25 08:35:54 +00001148};
1149
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001150asn_TYPE_member_t asn_MBR_SetOfEnums_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001151 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001152 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1153 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001154 .type = &asn_DEF_Member_2,
Lev Walkin67a30122017-08-10 05:48:54 -07001155 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001156 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001157 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001158 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1159 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001160 .name = ""
1161 },
1162};
Lev Walkina7591b52014-10-12 18:37:35 -07001163static const ber_tlv_tag_t asn_DEF_SetOfEnums_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001164 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1165};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001166asn_SET_OF_specifics_t asn_SPC_SetOfEnums_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001167 sizeof(struct SetOfEnums),
1168 offsetof(struct SetOfEnums, _asn_ctx),
Lev Walkinb47df092005-02-25 08:35:54 +00001169 1, /* XER encoding is XMLValueList */
Lev Walkinf5db6142005-02-24 22:38:43 +00001170};
1171asn_TYPE_descriptor_t asn_DEF_SetOfEnums = {
1172 "SetOfEnums",
1173 "SetOfEnums",
1174 SET_OF_free,
1175 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001176 SET_OF_compare,
Lev Walkinf5db6142005-02-24 22:38:43 +00001177 SET_OF_constraint,
1178 SET_OF_decode_ber,
1179 SET_OF_encode_der,
1180 SET_OF_decode_xer,
1181 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001182 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001183 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001184 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001185 asn_DEF_SetOfEnums_tags_1,
1186 sizeof(asn_DEF_SetOfEnums_tags_1)
1187 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
1188 asn_DEF_SetOfEnums_tags_1, /* Same as above */
1189 sizeof(asn_DEF_SetOfEnums_tags_1)
1190 /sizeof(asn_DEF_SetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001191 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001192 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001193 asn_MBR_SetOfEnums_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001194 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001195 &asn_SPC_SetOfEnums_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001196};
1197
1198
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001199/*** <<< INCLUDES [NamedSetOfNULL] >>> ***/
1200
1201#include <NULL.h>
1202#include <asn_SET_OF.h>
1203#include <constr_SET_OF.h>
1204
1205/*** <<< TYPE-DECLS [NamedSetOfNULL] >>> ***/
1206
1207typedef struct NamedSetOfNULL {
1208 A_SET_OF(NULL_t) list;
1209
1210 /* Context for parsing across buffer boundaries */
1211 asn_struct_ctx_t _asn_ctx;
1212} NamedSetOfNULL_t;
1213
1214/*** <<< FUNC-DECLS [NamedSetOfNULL] >>> ***/
1215
1216extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001217extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1;
1218extern asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001219
1220/*** <<< STAT-DEFS [NamedSetOfNULL] >>> ***/
1221
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001222asn_TYPE_member_t asn_MBR_NamedSetOfNULL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001223 { ATF_POINTER, 0, 0,
1224 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1225 .tag_mode = 0,
1226 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001227 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001228 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001229 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001230 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1231 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001232 .name = "y"
1233 },
1234};
Lev Walkina7591b52014-10-12 18:37:35 -07001235static const ber_tlv_tag_t asn_DEF_NamedSetOfNULL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001236 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1237};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001238asn_SET_OF_specifics_t asn_SPC_NamedSetOfNULL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001239 sizeof(struct NamedSetOfNULL),
1240 offsetof(struct NamedSetOfNULL, _asn_ctx),
1241 1, /* XER encoding is XMLValueList */
1242};
1243asn_TYPE_descriptor_t asn_DEF_NamedSetOfNULL = {
1244 "NamedSetOfNULL",
1245 "NamedSetOfNULL",
1246 SET_OF_free,
1247 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001248 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001249 SET_OF_constraint,
1250 SET_OF_decode_ber,
1251 SET_OF_encode_der,
1252 SET_OF_decode_xer,
1253 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001254 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001255 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001256 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001257 asn_DEF_NamedSetOfNULL_tags_1,
1258 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1259 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
1260 asn_DEF_NamedSetOfNULL_tags_1, /* Same as above */
1261 sizeof(asn_DEF_NamedSetOfNULL_tags_1)
1262 /sizeof(asn_DEF_NamedSetOfNULL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001263 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001264 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001265 asn_MBR_NamedSetOfNULL_1,
1266 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001267 &asn_SPC_NamedSetOfNULL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001268};
1269
1270
1271/*** <<< INCLUDES [NamedSetOfREAL] >>> ***/
1272
1273#include <REAL.h>
1274#include <asn_SET_OF.h>
1275#include <constr_SET_OF.h>
1276
1277/*** <<< TYPE-DECLS [NamedSetOfREAL] >>> ***/
1278
1279typedef struct NamedSetOfREAL {
1280 A_SET_OF(REAL_t) list;
1281
1282 /* Context for parsing across buffer boundaries */
1283 asn_struct_ctx_t _asn_ctx;
1284} NamedSetOfREAL_t;
1285
1286/*** <<< FUNC-DECLS [NamedSetOfREAL] >>> ***/
1287
1288extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001289extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1;
1290extern asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001291
1292/*** <<< STAT-DEFS [NamedSetOfREAL] >>> ***/
1293
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001294asn_TYPE_member_t asn_MBR_NamedSetOfREAL_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001295 { ATF_POINTER, 0, 0,
1296 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
1297 .tag_mode = 0,
1298 .type = &asn_DEF_REAL,
Lev Walkin67a30122017-08-10 05:48:54 -07001299 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001300 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001301 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001302 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1303 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001304 .name = "name"
1305 },
1306};
Lev Walkina7591b52014-10-12 18:37:35 -07001307static const ber_tlv_tag_t asn_DEF_NamedSetOfREAL_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001308 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1309};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001310asn_SET_OF_specifics_t asn_SPC_NamedSetOfREAL_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001311 sizeof(struct NamedSetOfREAL),
1312 offsetof(struct NamedSetOfREAL, _asn_ctx),
1313 0, /* XER encoding is XMLDelimitedItemList */
1314};
1315asn_TYPE_descriptor_t asn_DEF_NamedSetOfREAL = {
1316 "NamedSetOfREAL",
1317 "NamedSetOfREAL",
1318 SET_OF_free,
1319 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001320 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001321 SET_OF_constraint,
1322 SET_OF_decode_ber,
1323 SET_OF_encode_der,
1324 SET_OF_decode_xer,
1325 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001326 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001327 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001328 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001329 asn_DEF_NamedSetOfREAL_tags_1,
1330 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1331 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
1332 asn_DEF_NamedSetOfREAL_tags_1, /* Same as above */
1333 sizeof(asn_DEF_NamedSetOfREAL_tags_1)
1334 /sizeof(asn_DEF_NamedSetOfREAL_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001335 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001336 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001337 asn_MBR_NamedSetOfREAL_1,
1338 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001339 &asn_SPC_NamedSetOfREAL_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001340};
1341
1342
1343/*** <<< INCLUDES [NamedSetOfEnums] >>> ***/
1344
1345#include <ENUMERATED.h>
1346#include <asn_SET_OF.h>
1347#include <constr_SET_OF.h>
1348
1349/*** <<< DEPS [NamedSetOfEnums] >>> ***/
1350
1351typedef enum name {
1352 name_one = 0,
1353 name_oneMore = 1
Lev Walkin171487e2006-03-21 07:25:18 +00001354} e_name;
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001355
1356/*** <<< TYPE-DECLS [NamedSetOfEnums] >>> ***/
1357
1358typedef struct NamedSetOfEnums {
1359 A_SET_OF(ENUMERATED_t) list;
1360
1361 /* Context for parsing across buffer boundaries */
1362 asn_struct_ctx_t _asn_ctx;
1363} NamedSetOfEnums_t;
1364
1365/*** <<< FUNC-DECLS [NamedSetOfEnums] >>> ***/
1366
1367/* extern asn_TYPE_descriptor_t asn_DEF_name_2; // (Use -fall-defs-global to expose) */
1368extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001369extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1;
1370extern asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001371
1372/*** <<< CODE [NamedSetOfEnums] >>> ***/
1373
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001374/*
1375 * This type is implemented using ENUMERATED,
1376 * so here we adjust the DEF accordingly.
1377 */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001378
1379/*** <<< STAT-DEFS [NamedSetOfEnums] >>> ***/
1380
Lev Walkina7591b52014-10-12 18:37:35 -07001381static const asn_INTEGER_enum_map_t asn_MAP_name_value2enum_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001382 { 0, 3, "one" },
1383 { 1, 7, "oneMore" }
1384};
Lev Walkina7591b52014-10-12 18:37:35 -07001385static const unsigned int asn_MAP_name_enum2value_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001386 0, /* one(0) */
1387 1 /* oneMore(1) */
1388};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001389static const asn_INTEGER_specifics_t asn_SPC_name_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001390 asn_MAP_name_value2enum_2, /* "tag" => N; sorted by tag */
1391 asn_MAP_name_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001392 2, /* Number of elements in the maps */
1393 0, /* Enumeration is not extensible */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001394 1, /* Strict enumeration */
1395 0, /* Native long size */
1396 0
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001397};
Lev Walkina7591b52014-10-12 18:37:35 -07001398static const ber_tlv_tag_t asn_DEF_name_tags_2[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001399 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
1400};
1401static /* Use -fall-defs-global to expose */
1402asn_TYPE_descriptor_t asn_DEF_name_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001403 "ENUMERATED",
1404 "ENUMERATED",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001405 ENUMERATED_free,
1406 ENUMERATED_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001407 ENUMERATED_compare,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001408 ENUMERATED_constraint,
1409 ENUMERATED_decode_ber,
1410 ENUMERATED_encode_der,
1411 ENUMERATED_decode_xer,
1412 ENUMERATED_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001413 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001414 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001415 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001416 asn_DEF_name_tags_2,
1417 sizeof(asn_DEF_name_tags_2)
1418 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
1419 asn_DEF_name_tags_2, /* Same as above */
1420 sizeof(asn_DEF_name_tags_2)
1421 /sizeof(asn_DEF_name_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001422 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001423 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001424 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +00001425 &asn_SPC_name_specs_2 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001426};
1427
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001428asn_TYPE_member_t asn_MBR_NamedSetOfEnums_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001429 { ATF_POINTER, 0, 0,
1430 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
1431 .tag_mode = 0,
1432 .type = &asn_DEF_name_2,
Lev Walkin67a30122017-08-10 05:48:54 -07001433 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +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 Walkin5ab96cd2005-11-07 15:26:47 +00001438 .name = "name"
1439 },
1440};
Lev Walkina7591b52014-10-12 18:37:35 -07001441static const ber_tlv_tag_t asn_DEF_NamedSetOfEnums_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001442 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1443};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001444asn_SET_OF_specifics_t asn_SPC_NamedSetOfEnums_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001445 sizeof(struct NamedSetOfEnums),
1446 offsetof(struct NamedSetOfEnums, _asn_ctx),
1447 1, /* XER encoding is XMLValueList */
1448};
1449asn_TYPE_descriptor_t asn_DEF_NamedSetOfEnums = {
1450 "NamedSetOfEnums",
1451 "NamedSetOfEnums",
1452 SET_OF_free,
1453 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001454 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001455 SET_OF_constraint,
1456 SET_OF_decode_ber,
1457 SET_OF_encode_der,
1458 SET_OF_decode_xer,
1459 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001460 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001461 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001462 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001463 asn_DEF_NamedSetOfEnums_tags_1,
1464 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1465 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
1466 asn_DEF_NamedSetOfEnums_tags_1, /* Same as above */
1467 sizeof(asn_DEF_NamedSetOfEnums_tags_1)
1468 /sizeof(asn_DEF_NamedSetOfEnums_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001469 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001470 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001471 asn_MBR_NamedSetOfEnums_1,
1472 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001473 &asn_SPC_NamedSetOfEnums_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001474};
1475
1476
Lev Walkin843a2462005-02-18 16:30:26 +00001477/*** <<< INCLUDES [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001478
1479#include <INTEGER.h>
1480#include <asn_SEQUENCE_OF.h>
1481#include <constr_SEQUENCE_OF.h>
1482
Lev Walkin843a2462005-02-18 16:30:26 +00001483/*** <<< TYPE-DECLS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001484
Lev Walkin843a2462005-02-18 16:30:26 +00001485typedef struct SequenceOf {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001486 A_SEQUENCE_OF(INTEGER_t) list;
1487
1488 /* Context for parsing across buffer boundaries */
1489 asn_struct_ctx_t _asn_ctx;
Lev Walkin843a2462005-02-18 16:30:26 +00001490} SequenceOf_t;
Lev Walkin0ef9f142005-02-14 20:40:57 +00001491
Lev Walkinc8285712005-03-04 22:18:20 +00001492/*** <<< FUNC-DECLS [SequenceOf] >>> ***/
1493
1494extern asn_TYPE_descriptor_t asn_DEF_SequenceOf;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001495extern asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1;
1496extern asn_TYPE_member_t asn_MBR_SequenceOf_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001497
Lev Walkin843a2462005-02-18 16:30:26 +00001498/*** <<< STAT-DEFS [SequenceOf] >>> ***/
Lev Walkin0ef9f142005-02-14 20:40:57 +00001499
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001500asn_TYPE_member_t asn_MBR_SequenceOf_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001501 { ATF_POINTER, 0, 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001502 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
1503 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001504 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -07001505 .type_selector = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001506 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001507 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001508 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1509 .default_value = 0,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001510 .name = "id"
1511 },
1512};
Lev Walkina7591b52014-10-12 18:37:35 -07001513static const ber_tlv_tag_t asn_DEF_SequenceOf_tags_1[] = {
Lev Walkin0ef9f142005-02-14 20:40:57 +00001514 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1515};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001516asn_SET_OF_specifics_t asn_SPC_SequenceOf_specs_1 = {
Lev Walkin843a2462005-02-18 16:30:26 +00001517 sizeof(struct SequenceOf),
1518 offsetof(struct SequenceOf, _asn_ctx),
Lev Walkin0ef9f142005-02-14 20:40:57 +00001519 0, /* XER encoding is XMLDelimitedItemList */
1520};
Lev Walkin843a2462005-02-18 16:30:26 +00001521asn_TYPE_descriptor_t asn_DEF_SequenceOf = {
1522 "SequenceOf",
1523 "SequenceOf",
Lev Walkin0ef9f142005-02-14 20:40:57 +00001524 SEQUENCE_OF_free,
1525 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001526 SEQUENCE_OF_compare,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001527 SEQUENCE_OF_constraint,
1528 SEQUENCE_OF_decode_ber,
1529 SEQUENCE_OF_encode_der,
1530 SEQUENCE_OF_decode_xer,
1531 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001532 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001533 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001534 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001535 asn_DEF_SequenceOf_tags_1,
1536 sizeof(asn_DEF_SequenceOf_tags_1)
1537 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
1538 asn_DEF_SequenceOf_tags_1, /* Same as above */
1539 sizeof(asn_DEF_SequenceOf_tags_1)
1540 /sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001541 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001542 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001543 asn_MBR_SequenceOf_1,
Lev Walkin0ef9f142005-02-14 20:40:57 +00001544 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001545 &asn_SPC_SequenceOf_specs_1 /* Additional specs */
Lev Walkin0ef9f142005-02-14 20:40:57 +00001546};
1547
Lev Walkinf5db6142005-02-24 22:38:43 +00001548
1549/*** <<< INCLUDES [SeqOfZuka] >>> ***/
1550
1551#include <NULL.h>
1552#include <asn_SEQUENCE_OF.h>
1553#include <constr_SEQUENCE_OF.h>
1554
Lev Walkinf5db6142005-02-24 22:38:43 +00001555/*** <<< TYPE-DECLS [SeqOfZuka] >>> ***/
1556
Lev Walkinf5db6142005-02-24 22:38:43 +00001557typedef struct SeqOfZuka {
1558 A_SEQUENCE_OF(NULL_t) list;
1559
1560 /* Context for parsing across buffer boundaries */
1561 asn_struct_ctx_t _asn_ctx;
1562} SeqOfZuka_t;
1563
Lev Walkinc8285712005-03-04 22:18:20 +00001564/*** <<< FUNC-DECLS [SeqOfZuka] >>> ***/
1565
1566extern asn_TYPE_descriptor_t asn_DEF_SeqOfZuka;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001567extern asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1;
1568extern asn_TYPE_member_t asn_MBR_SeqOfZuka_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +00001569
Lev Walkinf5db6142005-02-24 22:38:43 +00001570/*** <<< STAT-DEFS [SeqOfZuka] >>> ***/
1571
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001572asn_TYPE_member_t asn_MBR_SeqOfZuka_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +00001573 { ATF_POINTER, 0, 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001574 .tag = (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
1575 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +00001576 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001577 .type_selector = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001578 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001579 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001580 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1581 .default_value = 0,
Lev Walkinf5db6142005-02-24 22:38:43 +00001582 .name = "zuka"
1583 },
1584};
Lev Walkina7591b52014-10-12 18:37:35 -07001585static const ber_tlv_tag_t asn_DEF_SeqOfZuka_tags_1[] = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001586 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
1587};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001588asn_SET_OF_specifics_t asn_SPC_SeqOfZuka_specs_1 = {
Lev Walkinf5db6142005-02-24 22:38:43 +00001589 sizeof(struct SeqOfZuka),
1590 offsetof(struct SeqOfZuka, _asn_ctx),
1591 1, /* XER encoding is XMLValueList */
1592};
1593asn_TYPE_descriptor_t asn_DEF_SeqOfZuka = {
1594 "SeqOfZuka",
1595 "SeqOfZuka",
1596 SEQUENCE_OF_free,
1597 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001598 SEQUENCE_OF_compare,
Lev Walkinf5db6142005-02-24 22:38:43 +00001599 SEQUENCE_OF_constraint,
1600 SEQUENCE_OF_decode_ber,
1601 SEQUENCE_OF_encode_der,
1602 SEQUENCE_OF_decode_xer,
1603 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001604 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001605 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf5db6142005-02-24 22:38:43 +00001606 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001607 asn_DEF_SeqOfZuka_tags_1,
1608 sizeof(asn_DEF_SeqOfZuka_tags_1)
1609 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
1610 asn_DEF_SeqOfZuka_tags_1, /* Same as above */
1611 sizeof(asn_DEF_SeqOfZuka_tags_1)
1612 /sizeof(asn_DEF_SeqOfZuka_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001613 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001614 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +00001615 asn_MBR_SeqOfZuka_1,
Lev Walkinf5db6142005-02-24 22:38:43 +00001616 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001617 &asn_SPC_SeqOfZuka_specs_1 /* Additional specs */
Lev Walkinf5db6142005-02-24 22:38:43 +00001618};
1619
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001620
1621/*** <<< INCLUDES [SetOfChoice] >>> ***/
1622
1623#include <asn_SET_OF.h>
1624#include <constr_SET_OF.h>
1625
1626/*** <<< FWD-DECLS [SetOfChoice] >>> ***/
1627
1628struct SimpleChoice;
1629
1630/*** <<< TYPE-DECLS [SetOfChoice] >>> ***/
1631
1632typedef struct SetOfChoice {
1633 A_SET_OF(struct SimpleChoice) list;
1634
1635 /* Context for parsing across buffer boundaries */
1636 asn_struct_ctx_t _asn_ctx;
1637} SetOfChoice_t;
1638
1639/*** <<< FUNC-DECLS [SetOfChoice] >>> ***/
1640
1641extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001642extern asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1;
1643extern asn_TYPE_member_t asn_MBR_SetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001644
1645/*** <<< POST-INCLUDE [SetOfChoice] >>> ***/
1646
Lev Walkin22b5ed42006-09-13 02:51:20 +00001647#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001648
1649/*** <<< STAT-DEFS [SetOfChoice] >>> ***/
1650
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001651asn_TYPE_member_t asn_MBR_SetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001652 { ATF_POINTER, 0, 0,
1653 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1654 .tag_mode = 0,
1655 .type = &asn_DEF_SimpleChoice,
Lev Walkin67a30122017-08-10 05:48:54 -07001656 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001657 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001658 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001659 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1660 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001661 .name = ""
1662 },
1663};
Lev Walkina7591b52014-10-12 18:37:35 -07001664static const ber_tlv_tag_t asn_DEF_SetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001665 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1666};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001667asn_SET_OF_specifics_t asn_SPC_SetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001668 sizeof(struct SetOfChoice),
1669 offsetof(struct SetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001670 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001671};
1672asn_TYPE_descriptor_t asn_DEF_SetOfChoice = {
1673 "SetOfChoice",
1674 "SetOfChoice",
1675 SET_OF_free,
1676 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001677 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001678 SET_OF_constraint,
1679 SET_OF_decode_ber,
1680 SET_OF_encode_der,
1681 SET_OF_decode_xer,
1682 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001683 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001684 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001685 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001686 asn_DEF_SetOfChoice_tags_1,
1687 sizeof(asn_DEF_SetOfChoice_tags_1)
1688 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
1689 asn_DEF_SetOfChoice_tags_1, /* Same as above */
1690 sizeof(asn_DEF_SetOfChoice_tags_1)
1691 /sizeof(asn_DEF_SetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001692 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001693 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001694 asn_MBR_SetOfChoice_1,
1695 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001696 &asn_SPC_SetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001697};
1698
1699
1700/*** <<< INCLUDES [NamedSetOfChoice] >>> ***/
1701
1702#include <asn_SET_OF.h>
1703#include <constr_SET_OF.h>
1704
1705/*** <<< FWD-DECLS [NamedSetOfChoice] >>> ***/
1706
1707struct SimpleChoice;
1708
1709/*** <<< TYPE-DECLS [NamedSetOfChoice] >>> ***/
1710
1711typedef struct NamedSetOfChoice {
1712 A_SET_OF(struct SimpleChoice) list;
1713
1714 /* Context for parsing across buffer boundaries */
1715 asn_struct_ctx_t _asn_ctx;
1716} NamedSetOfChoice_t;
1717
1718/*** <<< FUNC-DECLS [NamedSetOfChoice] >>> ***/
1719
1720extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001721extern asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1;
1722extern asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[1];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001723
1724/*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/
1725
Lev Walkin22b5ed42006-09-13 02:51:20 +00001726#include "SimpleChoice.h"
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001727
1728/*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/
1729
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001730asn_TYPE_member_t asn_MBR_NamedSetOfChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001731 { ATF_POINTER, 0, 0,
1732 .tag = -1 /* Ambiguous tag (CHOICE?) */,
1733 .tag_mode = 0,
1734 .type = &asn_DEF_SimpleChoice,
Lev Walkin67a30122017-08-10 05:48:54 -07001735 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001736 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001737 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001738 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1739 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001740 .name = "whatever"
1741 },
1742};
Lev Walkina7591b52014-10-12 18:37:35 -07001743static const ber_tlv_tag_t asn_DEF_NamedSetOfChoice_tags_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001744 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
1745};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001746asn_SET_OF_specifics_t asn_SPC_NamedSetOfChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001747 sizeof(struct NamedSetOfChoice),
1748 offsetof(struct NamedSetOfChoice, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +00001749 2, /* XER encoding is XMLValueList */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001750};
1751asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice = {
1752 "NamedSetOfChoice",
1753 "NamedSetOfChoice",
1754 SET_OF_free,
1755 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001756 SET_OF_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001757 SET_OF_constraint,
1758 SET_OF_decode_ber,
1759 SET_OF_encode_der,
1760 SET_OF_decode_xer,
1761 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001762 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001763 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001764 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001765 asn_DEF_NamedSetOfChoice_tags_1,
1766 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1767 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
1768 asn_DEF_NamedSetOfChoice_tags_1, /* Same as above */
1769 sizeof(asn_DEF_NamedSetOfChoice_tags_1)
1770 /sizeof(asn_DEF_NamedSetOfChoice_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001771 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001772 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001773 asn_MBR_NamedSetOfChoice_1,
1774 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +00001775 &asn_SPC_NamedSetOfChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001776};
1777
1778
1779/*** <<< INCLUDES [SimpleChoice] >>> ***/
1780
1781#include <NULL.h>
1782#include <INTEGER.h>
1783#include <constr_CHOICE.h>
1784
1785/*** <<< DEPS [SimpleChoice] >>> ***/
1786
1787typedef enum SimpleChoice_PR {
1788 SimpleChoice_PR_NOTHING, /* No components present */
1789 SimpleChoice_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001790 SimpleChoice_PR_b
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001791} SimpleChoice_PR;
1792
1793/*** <<< TYPE-DECLS [SimpleChoice] >>> ***/
1794
1795typedef struct SimpleChoice {
1796 SimpleChoice_PR present;
1797 union SimpleChoice_u {
1798 NULL_t a;
1799 INTEGER_t b;
1800 } choice;
1801
1802 /* Context for parsing across buffer boundaries */
1803 asn_struct_ctx_t _asn_ctx;
1804} SimpleChoice_t;
1805
1806/*** <<< FUNC-DECLS [SimpleChoice] >>> ***/
1807
1808extern asn_TYPE_descriptor_t asn_DEF_SimpleChoice;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001809extern asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1;
1810extern asn_TYPE_member_t asn_MBR_SimpleChoice_1[2];
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001811
1812/*** <<< STAT-DEFS [SimpleChoice] >>> ***/
1813
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001814asn_TYPE_member_t asn_MBR_SimpleChoice_1[] = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001815 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.a),
1816 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
1817 .tag_mode = -1, /* IMPLICIT tag at current level */
1818 .type = &asn_DEF_NULL,
Lev Walkin67a30122017-08-10 05:48:54 -07001819 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001820 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001821 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001822 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1823 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001824 .name = "a"
1825 },
1826 { ATF_NOFLAGS, 0, offsetof(struct SimpleChoice, choice.b),
1827 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
1828 .tag_mode = -1, /* IMPLICIT tag at current level */
1829 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -07001830 .type_selector = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001831 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +04001832 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +00001833 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
1834 .default_value = 0,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001835 .name = "b"
1836 },
1837};
Lev Walkina7591b52014-10-12 18:37:35 -07001838static const asn_TYPE_tag2member_t asn_MAP_SimpleChoice_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -07001839 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
1840 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001841};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001842asn_CHOICE_specifics_t asn_SPC_SimpleChoice_specs_1 = {
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001843 sizeof(struct SimpleChoice),
1844 offsetof(struct SimpleChoice, _asn_ctx),
1845 offsetof(struct SimpleChoice, present),
1846 sizeof(((struct SimpleChoice *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +00001847 asn_MAP_SimpleChoice_tag2el_1,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001848 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +00001849 .canonical_order = 0,
1850 .ext_start = -1 /* Extensions start */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001851};
1852asn_TYPE_descriptor_t asn_DEF_SimpleChoice = {
1853 "SimpleChoice",
1854 "SimpleChoice",
1855 CHOICE_free,
1856 CHOICE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -07001857 CHOICE_compare,
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001858 CHOICE_constraint,
1859 CHOICE_decode_ber,
1860 CHOICE_encode_der,
1861 CHOICE_decode_xer,
1862 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001863 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001864 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001865 CHOICE_outmost_tag,
1866 0, /* No effective tags (pointer) */
1867 0, /* No effective tags (count) */
1868 0, /* No tags (pointer) */
1869 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +04001870 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001871 0, /* No PER visible constraints */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001872 asn_MBR_SimpleChoice_1,
1873 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +00001874 &asn_SPC_SimpleChoice_specs_1 /* Additional specs */
Lev Walkin5ab96cd2005-11-07 15:26:47 +00001875};
1876