blob: 3ee41efd5c681bfcabf492a565ac9c00cbb65c8d [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 Walkinba58e1b2005-01-17 12:20:19 +000038 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040039 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000040 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
41 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +000042 .name = ""
43 },
44};
Lev Walkina7591b52014-10-12 18:37:35 -070045static const ber_tlv_tag_t asn_DEF_Forest_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000046 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
47};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080048asn_SET_OF_specifics_t asn_SPC_Forest_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000049 sizeof(struct Forest),
Lev Walkindfae9752004-09-29 13:19:37 +000050 offsetof(struct Forest, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000051 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +000052};
Lev Walkindfae9752004-09-29 13:19:37 +000053asn_TYPE_descriptor_t asn_DEF_Forest = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000054 "Forest",
Lev Walkindc06f6b2004-10-20 15:50:55 +000055 "Forest",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080056 &asn_OP_SET_OF,
Lev Walkin03ba3e92004-08-22 03:18:17 +000057 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +000058 asn_DEF_Forest_tags_1,
59 sizeof(asn_DEF_Forest_tags_1)
60 /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */
61 asn_DEF_Forest_tags_1, /* Same as above */
62 sizeof(asn_DEF_Forest_tags_1)
63 /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040064 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000065 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +000066 asn_MBR_Forest_1,
Lev Walkin03ba3e92004-08-22 03:18:17 +000067 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000068 &asn_SPC_Forest_specs_1 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +000069};
70
71
72/*** <<< INCLUDES [Tree] >>> ***/
73
74#include <INTEGER.h>
75#include <constr_SEQUENCE.h>
76
Lev Walkin03ba3e92004-08-22 03:18:17 +000077/*** <<< TYPE-DECLS [Tree] >>> ***/
78
Lev Walkin03ba3e92004-08-22 03:18:17 +000079typedef struct Tree {
80 INTEGER_t height;
81 INTEGER_t width;
82
83 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000084 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +000085} Tree_t;
86
Lev Walkinc8285712005-03-04 22:18:20 +000087/*** <<< FUNC-DECLS [Tree] >>> ***/
88
89extern asn_TYPE_descriptor_t asn_DEF_Tree;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080090extern asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1;
91extern asn_TYPE_member_t asn_MBR_Tree_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +000092
Lev Walkin03ba3e92004-08-22 03:18:17 +000093/*** <<< STAT-DEFS [Tree] >>> ***/
94
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080095asn_TYPE_member_t asn_MBR_Tree_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +000096 { ATF_NOFLAGS, 0, offsetof(struct Tree, height),
Lev Walkin03ba3e92004-08-22 03:18:17 +000097 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
98 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000099 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700100 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000101 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400102 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000103 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
104 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000105 .name = "height"
106 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000107 { ATF_NOFLAGS, 0, offsetof(struct Tree, width),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000108 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
109 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000110 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700111 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000112 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400113 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000114 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
115 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000116 .name = "width"
117 },
118};
Lev Walkina7591b52014-10-12 18:37:35 -0700119static const ber_tlv_tag_t asn_DEF_Tree_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000120 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
121};
Lev Walkina7591b52014-10-12 18:37:35 -0700122static const asn_TYPE_tag2member_t asn_MAP_Tree_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700123 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height */
124 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000125};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800126asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000127 sizeof(struct Tree),
Lev Walkindfae9752004-09-29 13:19:37 +0000128 offsetof(struct Tree, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700129 .tag2el = asn_MAP_Tree_tag2el_1,
130 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000131 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000132 -1, /* Start extensions */
133 -1 /* Stop extensions */
134};
Lev Walkindfae9752004-09-29 13:19:37 +0000135asn_TYPE_descriptor_t asn_DEF_Tree = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000136 "Tree",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000137 "Tree",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800138 &asn_OP_SEQUENCE,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000139 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000140 asn_DEF_Tree_tags_1,
141 sizeof(asn_DEF_Tree_tags_1)
142 /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */
143 asn_DEF_Tree_tags_1, /* Same as above */
144 sizeof(asn_DEF_Tree_tags_1)
145 /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400146 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000147 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000148 asn_MBR_Tree_1,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000149 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000150 &asn_SPC_Tree_specs_1 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000151};
152
153
154/*** <<< INCLUDES [Stuff] >>> ***/
155
Lev Walkin03ba3e92004-08-22 03:18:17 +0000156#include <asn_SET_OF.h>
157#include <constr_SET_OF.h>
158#include <BIT_STRING.h>
159#include <constr_SEQUENCE.h>
Lev Walkin2a8672e2004-10-03 09:14:49 +0000160#include <INTEGER.h>
161#include <constr_CHOICE.h>
Lev Walkin03ba3e92004-08-22 03:18:17 +0000162#include <constr_SET.h>
163
164/*** <<< DEPS [Stuff] >>> ***/
165
166
167/*
168 * Method of determining the components presence
169 */
170typedef enum Stuff_PR {
171 Stuff_PR_trees, /* Member trees is present */
172 Stuff_PR_anything, /* Member anything is present */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000173 Stuff_PR_other, /* Member other is present */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000174} Stuff_PR;
Lev Walkin2a8672e2004-10-03 09:14:49 +0000175typedef enum other_PR {
176 other_PR_NOTHING, /* No components present */
177 other_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000178 other_PR_b
Lev Walkin2a8672e2004-10-03 09:14:49 +0000179} other_PR;
Lev Walkinc8285712005-03-04 22:18:20 +0000180
181/*** <<< FWD-DECLS [Stuff] >>> ***/
182
Lev Walkinbf56d542005-03-04 23:50:56 +0000183struct Forest;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000184
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800185/*** <<< FWD-DEFS [Stuff] >>> ***/
186
187typedef struct Member {
188 BIT_STRING_t cup_of_coffee;
189 /*
190 * This type is extensible,
191 * possible extensions are below.
192 */
193
194 /* Context for parsing across buffer boundaries */
195 asn_struct_ctx_t _asn_ctx;
196} Member;
197
Lev Walkin03ba3e92004-08-22 03:18:17 +0000198/*** <<< TYPE-DECLS [Stuff] >>> ***/
199
Lev Walkin03ba3e92004-08-22 03:18:17 +0000200typedef struct Stuff {
201 struct trees {
Lev Walkinc8285712005-03-04 22:18:20 +0000202 A_SET_OF(struct Forest) list;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000203
204 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000205 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000206 } *trees;
207 struct anything {
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800208 A_SET_OF(Member) list;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000209
210 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000211 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000212 } *anything;
Lev Walkin2a8672e2004-10-03 09:14:49 +0000213 /*
214 * This type is extensible,
215 * possible extensions are below.
216 */
217 struct other {
218 other_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000219 union Stuff__other_u {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000220 INTEGER_t a;
221 INTEGER_t b;
222 } choice;
223
224 /* Context for parsing across buffer boundaries */
225 asn_struct_ctx_t _asn_ctx;
226 } *other;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000227
228 /* Presence bitmask: ASN_SET_ISPRESENT(pStuff, Stuff_PR_x) */
229 unsigned int _presence_map
Lev Walkin2a8672e2004-10-03 09:14:49 +0000230 [((3+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin03ba3e92004-08-22 03:18:17 +0000231
232 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000233 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000234} Stuff_t;
235
Lev Walkinc8285712005-03-04 22:18:20 +0000236/*** <<< FUNC-DECLS [Stuff] >>> ***/
237
238extern asn_TYPE_descriptor_t asn_DEF_Stuff;
239
240/*** <<< POST-INCLUDE [Stuff] >>> ***/
241
Lev Walkin22b5ed42006-09-13 02:51:20 +0000242#include "Forest.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000243
Lev Walkin03ba3e92004-08-22 03:18:17 +0000244/*** <<< STAT-DEFS [Stuff] >>> ***/
245
Lev Walkine0272aa2005-03-04 11:26:08 +0000246static asn_TYPE_member_t asn_MBR_trees_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000247 { ATF_POINTER, 0, 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000248 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
249 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000250 .type = &asn_DEF_Forest,
Lev Walkin67a30122017-08-10 05:48:54 -0700251 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000252 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400253 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000254 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
255 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000256 .name = ""
257 },
258};
Lev Walkina7591b52014-10-12 18:37:35 -0700259static const ber_tlv_tag_t asn_DEF_trees_tags_2[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000260 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin188ed2c2004-09-13 08:31:01 +0000261 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
Lev Walkin03ba3e92004-08-22 03:18:17 +0000262};
Lev Walkin59b176e2005-11-26 11:25:14 +0000263static asn_SET_OF_specifics_t asn_SPC_trees_specs_2 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000264 sizeof(struct trees),
Lev Walkindfae9752004-09-29 13:19:37 +0000265 offsetof(struct trees, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000266 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000267};
Lev Walkind04430c2004-09-07 06:44:29 +0000268static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000269asn_TYPE_descriptor_t asn_DEF_trees_2 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000270 "trees",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000271 "trees",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800272 &asn_OP_SET_OF,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000273 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000274 asn_DEF_trees_tags_2,
275 sizeof(asn_DEF_trees_tags_2)
276 /sizeof(asn_DEF_trees_tags_2[0]) - 1, /* 1 */
277 asn_DEF_trees_tags_2, /* Same as above */
278 sizeof(asn_DEF_trees_tags_2)
279 /sizeof(asn_DEF_trees_tags_2[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400280 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000281 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000282 asn_MBR_trees_2,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000283 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000284 &asn_SPC_trees_specs_2 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000285};
286
Lev Walkine8318b82005-03-06 09:29:03 +0000287static asn_TYPE_member_t asn_MBR_Member_5[] = {
Lev Walkine0272aa2005-03-04 11:26:08 +0000288 { ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000289 .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
290 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000291 .type = &asn_DEF_BIT_STRING,
Lev Walkin67a30122017-08-10 05:48:54 -0700292 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000293 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400294 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000295 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
296 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000297 .name = "cup-of-coffee"
298 },
299};
Lev Walkina7591b52014-10-12 18:37:35 -0700300static const ber_tlv_tag_t asn_DEF_Member_tags_5[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000301 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
302};
Lev Walkina7591b52014-10-12 18:37:35 -0700303static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_5[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700304 { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000305};
Lev Walkin59b176e2005-11-26 11:25:14 +0000306static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_5 = {
Lev Walkine0272aa2005-03-04 11:26:08 +0000307 sizeof(struct Member),
308 offsetof(struct Member, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700309 .tag2el = asn_MAP_Member_tag2el_5,
310 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000311 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000312 0, /* Start extensions */
313 2 /* Stop extensions */
314};
Lev Walkind04430c2004-09-07 06:44:29 +0000315static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000316asn_TYPE_descriptor_t asn_DEF_Member_5 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000317 "SEQUENCE",
318 "SEQUENCE",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800319 &asn_OP_SEQUENCE,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000320 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000321 asn_DEF_Member_tags_5,
322 sizeof(asn_DEF_Member_tags_5)
323 /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */
324 asn_DEF_Member_tags_5, /* Same as above */
325 sizeof(asn_DEF_Member_tags_5)
326 /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400327 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000328 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000329 asn_MBR_Member_5,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000330 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000331 &asn_SPC_Member_specs_5 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000332};
333
Lev Walkine8318b82005-03-06 09:29:03 +0000334static asn_TYPE_member_t asn_MBR_anything_4[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000335 { ATF_POINTER, 0, 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000336 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
337 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000338 .type = &asn_DEF_Member_5,
Lev Walkin67a30122017-08-10 05:48:54 -0700339 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000340 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400341 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000342 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
343 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000344 .name = ""
345 },
346};
Lev Walkina7591b52014-10-12 18:37:35 -0700347static const ber_tlv_tag_t asn_DEF_anything_tags_4[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000348 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin188ed2c2004-09-13 08:31:01 +0000349 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
Lev Walkin03ba3e92004-08-22 03:18:17 +0000350};
Lev Walkin59b176e2005-11-26 11:25:14 +0000351static asn_SET_OF_specifics_t asn_SPC_anything_specs_4 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000352 sizeof(struct anything),
Lev Walkindfae9752004-09-29 13:19:37 +0000353 offsetof(struct anything, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000354 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000355};
Lev Walkind04430c2004-09-07 06:44:29 +0000356static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000357asn_TYPE_descriptor_t asn_DEF_anything_4 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000358 "anything",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000359 "anything",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800360 &asn_OP_SET_OF,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000361 SET_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000362 asn_DEF_anything_tags_4,
363 sizeof(asn_DEF_anything_tags_4)
364 /sizeof(asn_DEF_anything_tags_4[0]) - 1, /* 1 */
365 asn_DEF_anything_tags_4, /* Same as above */
366 sizeof(asn_DEF_anything_tags_4)
367 /sizeof(asn_DEF_anything_tags_4[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400368 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000369 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000370 asn_MBR_anything_4,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000371 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000372 &asn_SPC_anything_specs_4 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000373};
374
Lev Walkine8318b82005-03-06 09:29:03 +0000375static asn_TYPE_member_t asn_MBR_other_9[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000376 { ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000377 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
378 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000379 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700380 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000381 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400382 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000383 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
384 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000385 .name = "a"
386 },
387 { ATF_NOFLAGS, 0, offsetof(struct other, choice.b),
388 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
389 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000390 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700391 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000392 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400393 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000394 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
395 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000396 .name = "b"
397 },
398};
Lev Walkina7591b52014-10-12 18:37:35 -0700399static const asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700400 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
401 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000402};
Lev Walkin59b176e2005-11-26 11:25:14 +0000403static asn_CHOICE_specifics_t asn_SPC_other_specs_9 = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000404 sizeof(struct other),
405 offsetof(struct other, _asn_ctx),
406 offsetof(struct other, present),
407 sizeof(((struct other *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700408 .tag2el = asn_MAP_other_tag2el_9,
409 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000410 .canonical_order = 0,
411 .ext_start = -1 /* Extensions start */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000412};
413static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000414asn_TYPE_descriptor_t asn_DEF_other_9 = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000415 "other",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000416 "other",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800417 &asn_OP_CHOICE,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000418 CHOICE_constraint,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000419 0, /* No effective tags (pointer) */
420 0, /* No effective tags (count) */
421 0, /* No tags (pointer) */
422 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400423 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000424 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000425 asn_MBR_other_9,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000426 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000427 &asn_SPC_other_specs_9 /* Additional specs */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000428};
429
Lev Walkine0272aa2005-03-04 11:26:08 +0000430static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000431 { ATF_POINTER, 3, offsetof(struct Stuff, trees),
432 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000433 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000434 .type = &asn_DEF_trees_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700435 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000436 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400437 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000438 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
439 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000440 .name = "trees"
441 },
Lev Walkin2a8672e2004-10-03 09:14:49 +0000442 { ATF_POINTER, 2, offsetof(struct Stuff, anything),
443 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000444 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000445 .type = &asn_DEF_anything_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700446 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000447 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400448 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000449 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
450 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000451 .name = "anything"
452 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000453 { ATF_POINTER, 1, offsetof(struct Stuff, other),
Lev Walkin2a8672e2004-10-03 09:14:49 +0000454 .tag = -1 /* Ambiguous tag (CHOICE?) */,
455 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000456 .type = &asn_DEF_other_9,
Lev Walkin67a30122017-08-10 05:48:54 -0700457 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000458 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400459 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000460 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
461 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000462 .name = "other"
463 },
Lev Walkin03ba3e92004-08-22 03:18:17 +0000464};
Lev Walkina7591b52014-10-12 18:37:35 -0700465static const ber_tlv_tag_t asn_DEF_Stuff_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000466 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
467};
Lev Walkina7591b52014-10-12 18:37:35 -0700468static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700469 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* a */
470 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */
471 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */
472 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* b */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000473};
Lev Walkina7591b52014-10-12 18:37:35 -0700474static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_cxer_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700475 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */
476 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */
477 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 } /* a */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000478};
Lev Walkina7591b52014-10-12 18:37:35 -0700479static const uint8_t asn_MAP_Stuff_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000480 (0 << 7) | (0 << 6) | (0 << 5)
Lev Walkin03ba3e92004-08-22 03:18:17 +0000481};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800482static
483asn_SET_specifics_t asn_SPC_Stuff_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000484 sizeof(struct Stuff),
Lev Walkindfae9752004-09-29 13:19:37 +0000485 offsetof(struct Stuff, _asn_ctx),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000486 offsetof(struct Stuff, _presence_map),
Lev Walkine3917082017-08-23 10:29:38 -0700487 .tag2el = asn_MAP_Stuff_tag2el_1,
488 .tag2el_count = 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000489 asn_MAP_Stuff_tag2el_cxer_1,
Lev Walkinf82138b2005-02-25 08:20:32 +0000490 3, /* Count of tags in the CXER map */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000491 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700492 (const unsigned int *)asn_MAP_Stuff_mmap_1 /* Mandatory elements map */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000493};
Lev Walkindfae9752004-09-29 13:19:37 +0000494asn_TYPE_descriptor_t asn_DEF_Stuff = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000495 "Stuff",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000496 "Stuff",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800497 &asn_OP_SET,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000498 SET_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000499 asn_DEF_Stuff_tags_1,
500 sizeof(asn_DEF_Stuff_tags_1)
501 /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */
502 asn_DEF_Stuff_tags_1, /* Same as above */
503 sizeof(asn_DEF_Stuff_tags_1)
504 /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400505 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000506 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000507 asn_MBR_Stuff_1,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000508 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000509 &asn_SPC_Stuff_specs_1 /* Additional specs */
510};
511