blob: 85e86797282a64bc4f080a01410893486a711110 [file] [log] [blame]
Lev Walkin03ba3e92004-08-22 03:18:17 +00001
2/*** <<< INCLUDES [Forest] >>> ***/
3
Lev Walkin03ba3e92004-08-22 03:18:17 +00004#include <asn_SET_OF.h>
5#include <constr_SET_OF.h>
6
Lev Walkinc8285712005-03-04 22:18:20 +00007/*** <<< FWD-DECLS [Forest] >>> ***/
Lev Walkin03ba3e92004-08-22 03:18:17 +00008
Lev Walkinbf56d542005-03-04 23:50:56 +00009struct Tree;
Lev Walkin03ba3e92004-08-22 03:18:17 +000010
11/*** <<< TYPE-DECLS [Forest] >>> ***/
12
Lev Walkin03ba3e92004-08-22 03:18:17 +000013typedef struct Forest {
Lev Walkinc8285712005-03-04 22:18:20 +000014 A_SET_OF(struct Tree) list;
Lev Walkin03ba3e92004-08-22 03:18:17 +000015
16 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000017 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +000018} Forest_t;
19
Lev Walkinc8285712005-03-04 22:18:20 +000020/*** <<< FUNC-DECLS [Forest] >>> ***/
21
22extern asn_TYPE_descriptor_t asn_DEF_Forest;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080023extern asn_SET_OF_specifics_t asn_SPC_Forest_specs_1;
24extern asn_TYPE_member_t asn_MBR_Forest_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +000025
26/*** <<< POST-INCLUDE [Forest] >>> ***/
27
Lev Walkin22b5ed42006-09-13 02:51:20 +000028#include "Tree.h"
Lev Walkinc8285712005-03-04 22:18:20 +000029
Lev Walkin03ba3e92004-08-22 03:18:17 +000030/*** <<< STAT-DEFS [Forest] >>> ***/
31
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080032asn_TYPE_member_t asn_MBR_Forest_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +000033 { ATF_POINTER, 0, 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +000034 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
35 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000036 .type = &asn_DEF_Tree,
Lev Walkin67a30122017-08-10 05:48:54 -070037 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070038 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +000039 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +000040 .name = ""
41 },
42};
Lev Walkina7591b52014-10-12 18:37:35 -070043static const ber_tlv_tag_t asn_DEF_Forest_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000044 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
45};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080046asn_SET_OF_specifics_t asn_SPC_Forest_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000047 sizeof(struct Forest),
Lev Walkindfae9752004-09-29 13:19:37 +000048 offsetof(struct Forest, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000049 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +000050};
Lev Walkindfae9752004-09-29 13:19:37 +000051asn_TYPE_descriptor_t asn_DEF_Forest = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000052 "Forest",
Lev Walkindc06f6b2004-10-20 15:50:55 +000053 "Forest",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080054 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +000055 asn_DEF_Forest_tags_1,
56 sizeof(asn_DEF_Forest_tags_1)
57 /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */
58 asn_DEF_Forest_tags_1, /* Same as above */
59 sizeof(asn_DEF_Forest_tags_1)
60 /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -070061 { 0, 0, SET_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +000062 asn_MBR_Forest_1,
Lev Walkin03ba3e92004-08-22 03:18:17 +000063 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000064 &asn_SPC_Forest_specs_1 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +000065};
66
67
68/*** <<< INCLUDES [Tree] >>> ***/
69
70#include <INTEGER.h>
71#include <constr_SEQUENCE.h>
72
Lev Walkin03ba3e92004-08-22 03:18:17 +000073/*** <<< TYPE-DECLS [Tree] >>> ***/
74
Lev Walkin03ba3e92004-08-22 03:18:17 +000075typedef struct Tree {
76 INTEGER_t height;
77 INTEGER_t width;
78
79 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000080 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +000081} Tree_t;
82
Lev Walkinc8285712005-03-04 22:18:20 +000083/*** <<< FUNC-DECLS [Tree] >>> ***/
84
85extern asn_TYPE_descriptor_t asn_DEF_Tree;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080086extern asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1;
87extern asn_TYPE_member_t asn_MBR_Tree_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +000088
Lev Walkin03ba3e92004-08-22 03:18:17 +000089/*** <<< STAT-DEFS [Tree] >>> ***/
90
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080091asn_TYPE_member_t asn_MBR_Tree_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +000092 { ATF_NOFLAGS, 0, offsetof(struct Tree, height),
Lev Walkin03ba3e92004-08-22 03:18:17 +000093 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
94 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000095 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -070096 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070097 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +000098 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +000099 .name = "height"
100 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000101 { ATF_NOFLAGS, 0, offsetof(struct Tree, width),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000102 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
103 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000104 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700105 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700106 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000107 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000108 .name = "width"
109 },
110};
Lev Walkina7591b52014-10-12 18:37:35 -0700111static const ber_tlv_tag_t asn_DEF_Tree_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000112 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
113};
Lev Walkina7591b52014-10-12 18:37:35 -0700114static const asn_TYPE_tag2member_t asn_MAP_Tree_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700115 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height */
116 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000117};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800118asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000119 sizeof(struct Tree),
Lev Walkindfae9752004-09-29 13:19:37 +0000120 offsetof(struct Tree, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700121 .tag2el = asn_MAP_Tree_tag2el_1,
122 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000123 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000124 -1, /* Start extensions */
125 -1 /* Stop extensions */
126};
Lev Walkindfae9752004-09-29 13:19:37 +0000127asn_TYPE_descriptor_t asn_DEF_Tree = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000128 "Tree",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000129 "Tree",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800130 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000131 asn_DEF_Tree_tags_1,
132 sizeof(asn_DEF_Tree_tags_1)
133 /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */
134 asn_DEF_Tree_tags_1, /* Same as above */
135 sizeof(asn_DEF_Tree_tags_1)
136 /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700137 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000138 asn_MBR_Tree_1,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000139 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000140 &asn_SPC_Tree_specs_1 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000141};
142
143
144/*** <<< INCLUDES [Stuff] >>> ***/
145
Lev Walkin03ba3e92004-08-22 03:18:17 +0000146#include <asn_SET_OF.h>
147#include <constr_SET_OF.h>
148#include <BIT_STRING.h>
149#include <constr_SEQUENCE.h>
Lev Walkin2a8672e2004-10-03 09:14:49 +0000150#include <INTEGER.h>
151#include <constr_CHOICE.h>
Lev Walkin03ba3e92004-08-22 03:18:17 +0000152#include <constr_SET.h>
153
154/*** <<< DEPS [Stuff] >>> ***/
155
156
157/*
158 * Method of determining the components presence
159 */
160typedef enum Stuff_PR {
161 Stuff_PR_trees, /* Member trees is present */
162 Stuff_PR_anything, /* Member anything is present */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000163 Stuff_PR_other, /* Member other is present */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000164} Stuff_PR;
Lev Walkin2a8672e2004-10-03 09:14:49 +0000165typedef enum other_PR {
166 other_PR_NOTHING, /* No components present */
167 other_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000168 other_PR_b
Lev Walkin2a8672e2004-10-03 09:14:49 +0000169} other_PR;
Lev Walkinc8285712005-03-04 22:18:20 +0000170
171/*** <<< FWD-DECLS [Stuff] >>> ***/
172
Lev Walkinbf56d542005-03-04 23:50:56 +0000173struct Forest;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000174
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800175/*** <<< FWD-DEFS [Stuff] >>> ***/
176
177typedef struct Member {
178 BIT_STRING_t cup_of_coffee;
179 /*
180 * This type is extensible,
181 * possible extensions are below.
182 */
183
184 /* Context for parsing across buffer boundaries */
185 asn_struct_ctx_t _asn_ctx;
186} Member;
187
Lev Walkin03ba3e92004-08-22 03:18:17 +0000188/*** <<< TYPE-DECLS [Stuff] >>> ***/
189
Lev Walkin03ba3e92004-08-22 03:18:17 +0000190typedef struct Stuff {
191 struct trees {
Lev Walkinc8285712005-03-04 22:18:20 +0000192 A_SET_OF(struct Forest) list;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000193
194 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000195 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000196 } *trees;
197 struct anything {
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800198 A_SET_OF(Member) list;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000199
200 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000201 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000202 } *anything;
Lev Walkin2a8672e2004-10-03 09:14:49 +0000203 /*
204 * This type is extensible,
205 * possible extensions are below.
206 */
207 struct other {
208 other_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000209 union Stuff__other_u {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000210 INTEGER_t a;
211 INTEGER_t b;
212 } choice;
213
214 /* Context for parsing across buffer boundaries */
215 asn_struct_ctx_t _asn_ctx;
216 } *other;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000217
218 /* Presence bitmask: ASN_SET_ISPRESENT(pStuff, Stuff_PR_x) */
219 unsigned int _presence_map
Lev Walkin2a8672e2004-10-03 09:14:49 +0000220 [((3+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin03ba3e92004-08-22 03:18:17 +0000221
222 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000223 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000224} Stuff_t;
225
Lev Walkinc8285712005-03-04 22:18:20 +0000226/*** <<< FUNC-DECLS [Stuff] >>> ***/
227
228extern asn_TYPE_descriptor_t asn_DEF_Stuff;
229
230/*** <<< POST-INCLUDE [Stuff] >>> ***/
231
Lev Walkin22b5ed42006-09-13 02:51:20 +0000232#include "Forest.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000233
Lev Walkin03ba3e92004-08-22 03:18:17 +0000234/*** <<< STAT-DEFS [Stuff] >>> ***/
235
Lev Walkine0272aa2005-03-04 11:26:08 +0000236static asn_TYPE_member_t asn_MBR_trees_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000237 { ATF_POINTER, 0, 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000238 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
239 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000240 .type = &asn_DEF_Forest,
Lev Walkin67a30122017-08-10 05:48:54 -0700241 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700242 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000243 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000244 .name = ""
245 },
246};
Lev Walkina7591b52014-10-12 18:37:35 -0700247static const ber_tlv_tag_t asn_DEF_trees_tags_2[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000248 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin188ed2c2004-09-13 08:31:01 +0000249 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
Lev Walkin03ba3e92004-08-22 03:18:17 +0000250};
Lev Walkin59b176e2005-11-26 11:25:14 +0000251static asn_SET_OF_specifics_t asn_SPC_trees_specs_2 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000252 sizeof(struct trees),
Lev Walkindfae9752004-09-29 13:19:37 +0000253 offsetof(struct trees, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000254 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000255};
Lev Walkind04430c2004-09-07 06:44:29 +0000256static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000257asn_TYPE_descriptor_t asn_DEF_trees_2 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000258 "trees",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000259 "trees",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800260 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000261 asn_DEF_trees_tags_2,
262 sizeof(asn_DEF_trees_tags_2)
263 /sizeof(asn_DEF_trees_tags_2[0]) - 1, /* 1 */
264 asn_DEF_trees_tags_2, /* Same as above */
265 sizeof(asn_DEF_trees_tags_2)
266 /sizeof(asn_DEF_trees_tags_2[0]), /* 2 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700267 { 0, 0, SET_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000268 asn_MBR_trees_2,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000269 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000270 &asn_SPC_trees_specs_2 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000271};
272
Lev Walkine8318b82005-03-06 09:29:03 +0000273static asn_TYPE_member_t asn_MBR_Member_5[] = {
Lev Walkine0272aa2005-03-04 11:26:08 +0000274 { ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000275 .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
276 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000277 .type = &asn_DEF_BIT_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700278 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700279 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000280 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000281 .name = "cup-of-coffee"
282 },
283};
Lev Walkina7591b52014-10-12 18:37:35 -0700284static const ber_tlv_tag_t asn_DEF_Member_tags_5[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000285 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
286};
Lev Walkina7591b52014-10-12 18:37:35 -0700287static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_5[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700288 { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000289};
Lev Walkin59b176e2005-11-26 11:25:14 +0000290static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_5 = {
Lev Walkine0272aa2005-03-04 11:26:08 +0000291 sizeof(struct Member),
292 offsetof(struct Member, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700293 .tag2el = asn_MAP_Member_tag2el_5,
294 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000295 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000296 0, /* Start extensions */
297 2 /* Stop extensions */
298};
Lev Walkind04430c2004-09-07 06:44:29 +0000299static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000300asn_TYPE_descriptor_t asn_DEF_Member_5 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000301 "SEQUENCE",
302 "SEQUENCE",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800303 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000304 asn_DEF_Member_tags_5,
305 sizeof(asn_DEF_Member_tags_5)
306 /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */
307 asn_DEF_Member_tags_5, /* Same as above */
308 sizeof(asn_DEF_Member_tags_5)
309 /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700310 { 0, 0, SEQUENCE_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000311 asn_MBR_Member_5,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000312 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000313 &asn_SPC_Member_specs_5 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000314};
315
Lev Walkine8318b82005-03-06 09:29:03 +0000316static asn_TYPE_member_t asn_MBR_anything_4[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000317 { ATF_POINTER, 0, 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000318 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
319 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000320 .type = &asn_DEF_Member_5,
Lev Walkin67a30122017-08-10 05:48:54 -0700321 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700322 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000323 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000324 .name = ""
325 },
326};
Lev Walkina7591b52014-10-12 18:37:35 -0700327static const ber_tlv_tag_t asn_DEF_anything_tags_4[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000328 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin188ed2c2004-09-13 08:31:01 +0000329 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
Lev Walkin03ba3e92004-08-22 03:18:17 +0000330};
Lev Walkin59b176e2005-11-26 11:25:14 +0000331static asn_SET_OF_specifics_t asn_SPC_anything_specs_4 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000332 sizeof(struct anything),
Lev Walkindfae9752004-09-29 13:19:37 +0000333 offsetof(struct anything, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000334 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000335};
Lev Walkind04430c2004-09-07 06:44:29 +0000336static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000337asn_TYPE_descriptor_t asn_DEF_anything_4 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000338 "anything",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000339 "anything",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800340 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000341 asn_DEF_anything_tags_4,
342 sizeof(asn_DEF_anything_tags_4)
343 /sizeof(asn_DEF_anything_tags_4[0]) - 1, /* 1 */
344 asn_DEF_anything_tags_4, /* Same as above */
345 sizeof(asn_DEF_anything_tags_4)
346 /sizeof(asn_DEF_anything_tags_4[0]), /* 2 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700347 { 0, 0, SET_OF_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000348 asn_MBR_anything_4,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000349 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000350 &asn_SPC_anything_specs_4 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000351};
352
Lev Walkine8318b82005-03-06 09:29:03 +0000353static asn_TYPE_member_t asn_MBR_other_9[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000354 { ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000355 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
356 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000357 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700358 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700359 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000360 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000361 .name = "a"
362 },
363 { ATF_NOFLAGS, 0, offsetof(struct other, choice.b),
364 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
365 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000366 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700367 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700368 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000369 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000370 .name = "b"
371 },
372};
Lev Walkina7591b52014-10-12 18:37:35 -0700373static const asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700374 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
375 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000376};
Lev Walkin59b176e2005-11-26 11:25:14 +0000377static asn_CHOICE_specifics_t asn_SPC_other_specs_9 = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000378 sizeof(struct other),
379 offsetof(struct other, _asn_ctx),
380 offsetof(struct other, present),
381 sizeof(((struct other *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700382 .tag2el = asn_MAP_other_tag2el_9,
383 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000384 .canonical_order = 0,
385 .ext_start = -1 /* Extensions start */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000386};
387static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000388asn_TYPE_descriptor_t asn_DEF_other_9 = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000389 "other",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000390 "other",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800391 &asn_OP_CHOICE,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000392 0, /* No effective tags (pointer) */
393 0, /* No effective tags (count) */
394 0, /* No tags (pointer) */
395 0, /* No tags (count) */
Lev Walkin0bfea562017-09-29 23:16:48 -0700396 { 0, 0, CHOICE_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000397 asn_MBR_other_9,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000398 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000399 &asn_SPC_other_specs_9 /* Additional specs */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000400};
401
Lev Walkine0272aa2005-03-04 11:26:08 +0000402static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000403 { ATF_POINTER, 3, offsetof(struct Stuff, trees),
404 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000405 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000406 .type = &asn_DEF_trees_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700407 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700408 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000409 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000410 .name = "trees"
411 },
Lev Walkin2a8672e2004-10-03 09:14:49 +0000412 { ATF_POINTER, 2, offsetof(struct Stuff, anything),
413 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000414 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000415 .type = &asn_DEF_anything_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700416 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700417 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000418 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000419 .name = "anything"
420 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000421 { ATF_POINTER, 1, offsetof(struct Stuff, other),
Lev Walkin2a8672e2004-10-03 09:14:49 +0000422 .tag = -1 /* Ambiguous tag (CHOICE?) */,
423 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000424 .type = &asn_DEF_other_9,
Lev Walkin67a30122017-08-10 05:48:54 -0700425 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700426 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000427 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000428 .name = "other"
429 },
Lev Walkin03ba3e92004-08-22 03:18:17 +0000430};
Lev Walkina7591b52014-10-12 18:37:35 -0700431static const ber_tlv_tag_t asn_DEF_Stuff_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000432 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
433};
Lev Walkina7591b52014-10-12 18:37:35 -0700434static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700435 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* a */
436 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */
437 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */
438 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* b */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000439};
Lev Walkina7591b52014-10-12 18:37:35 -0700440static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_cxer_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700441 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */
442 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */
443 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 } /* a */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000444};
Lev Walkina7591b52014-10-12 18:37:35 -0700445static const uint8_t asn_MAP_Stuff_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000446 (0 << 7) | (0 << 6) | (0 << 5)
Lev Walkin03ba3e92004-08-22 03:18:17 +0000447};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800448static
449asn_SET_specifics_t asn_SPC_Stuff_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000450 sizeof(struct Stuff),
Lev Walkindfae9752004-09-29 13:19:37 +0000451 offsetof(struct Stuff, _asn_ctx),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000452 offsetof(struct Stuff, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700453 .tag2el = asn_MAP_Stuff_tag2el_1,
454 .tag2el_count = 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000455 asn_MAP_Stuff_tag2el_cxer_1,
Lev Walkinf82138b2005-02-25 08:20:32 +0000456 3, /* Count of tags in the CXER map */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000457 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700458 (const unsigned int *)asn_MAP_Stuff_mmap_1 /* Mandatory elements map */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000459};
Lev Walkindfae9752004-09-29 13:19:37 +0000460asn_TYPE_descriptor_t asn_DEF_Stuff = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000461 "Stuff",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000462 "Stuff",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800463 &asn_OP_SET,
Lev Walkin59b176e2005-11-26 11:25:14 +0000464 asn_DEF_Stuff_tags_1,
465 sizeof(asn_DEF_Stuff_tags_1)
466 /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */
467 asn_DEF_Stuff_tags_1, /* Same as above */
468 sizeof(asn_DEF_Stuff_tags_1)
469 /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700470 { 0, 0, SET_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000471 asn_MBR_Stuff_1,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000472 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000473 &asn_SPC_Stuff_specs_1 /* Additional specs */
474};
475