blob: 0d25dacc141dd8194e6ae4f3d2567f0402b49e97 [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 Walkinba58e1b2005-01-17 12:20:19 +000037 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040038 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000039 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
40 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +000041 .name = ""
42 },
43};
Lev Walkina7591b52014-10-12 18:37:35 -070044static const ber_tlv_tag_t asn_DEF_Forest_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000045 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
46};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080047asn_SET_OF_specifics_t asn_SPC_Forest_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000048 sizeof(struct Forest),
Lev Walkindfae9752004-09-29 13:19:37 +000049 offsetof(struct Forest, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000050 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +000051};
Lev Walkindfae9752004-09-29 13:19:37 +000052asn_TYPE_descriptor_t asn_DEF_Forest = {
Lev Walkin03ba3e92004-08-22 03:18:17 +000053 "Forest",
Lev Walkindc06f6b2004-10-20 15:50:55 +000054 "Forest",
Lev Walkina9cc46e2004-09-22 16:06:28 +000055 SET_OF_free,
56 SET_OF_print,
Lev Walkin03ba3e92004-08-22 03:18:17 +000057 SET_OF_constraint,
58 SET_OF_decode_ber,
59 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +000060 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +000061 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -070062 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +040063 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin03ba3e92004-08-22 03:18:17 +000064 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +000065 asn_DEF_Forest_tags_1,
66 sizeof(asn_DEF_Forest_tags_1)
67 /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */
68 asn_DEF_Forest_tags_1, /* Same as above */
69 sizeof(asn_DEF_Forest_tags_1)
70 /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040071 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000072 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +000073 asn_MBR_Forest_1,
Lev Walkin03ba3e92004-08-22 03:18:17 +000074 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000075 &asn_SPC_Forest_specs_1 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +000076};
77
78
79/*** <<< INCLUDES [Tree] >>> ***/
80
81#include <INTEGER.h>
82#include <constr_SEQUENCE.h>
83
Lev Walkin03ba3e92004-08-22 03:18:17 +000084/*** <<< TYPE-DECLS [Tree] >>> ***/
85
Lev Walkin03ba3e92004-08-22 03:18:17 +000086typedef struct Tree {
87 INTEGER_t height;
88 INTEGER_t width;
89
90 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000091 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +000092} Tree_t;
93
Lev Walkinc8285712005-03-04 22:18:20 +000094/*** <<< FUNC-DECLS [Tree] >>> ***/
95
96extern asn_TYPE_descriptor_t asn_DEF_Tree;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080097extern asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1;
98extern asn_TYPE_member_t asn_MBR_Tree_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +000099
Lev Walkin03ba3e92004-08-22 03:18:17 +0000100/*** <<< STAT-DEFS [Tree] >>> ***/
101
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800102asn_TYPE_member_t asn_MBR_Tree_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000103 { ATF_NOFLAGS, 0, offsetof(struct Tree, height),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000104 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
105 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000106 .type = &asn_DEF_INTEGER,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000107 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400108 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000109 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
110 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000111 .name = "height"
112 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000113 { ATF_NOFLAGS, 0, offsetof(struct Tree, width),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000114 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
115 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000116 .type = &asn_DEF_INTEGER,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000117 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400118 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000119 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
120 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000121 .name = "width"
122 },
123};
Lev Walkina7591b52014-10-12 18:37:35 -0700124static const ber_tlv_tag_t asn_DEF_Tree_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000125 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
126};
Lev Walkina7591b52014-10-12 18:37:35 -0700127static const asn_TYPE_tag2member_t asn_MAP_Tree_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700128 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height */
129 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000130};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800131asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000132 sizeof(struct Tree),
Lev Walkindfae9752004-09-29 13:19:37 +0000133 offsetof(struct Tree, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000134 asn_MAP_Tree_tag2el_1,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000135 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000136 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000137 -1, /* Start extensions */
138 -1 /* Stop extensions */
139};
Lev Walkindfae9752004-09-29 13:19:37 +0000140asn_TYPE_descriptor_t asn_DEF_Tree = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000141 "Tree",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000142 "Tree",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000143 SEQUENCE_free,
144 SEQUENCE_print,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000145 SEQUENCE_constraint,
146 SEQUENCE_decode_ber,
147 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000148 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000149 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700150 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400151 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000152 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000153 asn_DEF_Tree_tags_1,
154 sizeof(asn_DEF_Tree_tags_1)
155 /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */
156 asn_DEF_Tree_tags_1, /* Same as above */
157 sizeof(asn_DEF_Tree_tags_1)
158 /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400159 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000160 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000161 asn_MBR_Tree_1,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000162 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000163 &asn_SPC_Tree_specs_1 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000164};
165
166
167/*** <<< INCLUDES [Stuff] >>> ***/
168
Lev Walkin03ba3e92004-08-22 03:18:17 +0000169#include <asn_SET_OF.h>
170#include <constr_SET_OF.h>
171#include <BIT_STRING.h>
172#include <constr_SEQUENCE.h>
Lev Walkin2a8672e2004-10-03 09:14:49 +0000173#include <INTEGER.h>
174#include <constr_CHOICE.h>
Lev Walkin03ba3e92004-08-22 03:18:17 +0000175#include <constr_SET.h>
176
177/*** <<< DEPS [Stuff] >>> ***/
178
179
180/*
181 * Method of determining the components presence
182 */
183typedef enum Stuff_PR {
184 Stuff_PR_trees, /* Member trees is present */
185 Stuff_PR_anything, /* Member anything is present */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000186 Stuff_PR_other, /* Member other is present */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000187} Stuff_PR;
Lev Walkin2a8672e2004-10-03 09:14:49 +0000188typedef enum other_PR {
189 other_PR_NOTHING, /* No components present */
190 other_PR_a,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000191 other_PR_b
Lev Walkin2a8672e2004-10-03 09:14:49 +0000192} other_PR;
Lev Walkinc8285712005-03-04 22:18:20 +0000193
194/*** <<< FWD-DECLS [Stuff] >>> ***/
195
Lev Walkinbf56d542005-03-04 23:50:56 +0000196struct Forest;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000197
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800198/*** <<< FWD-DEFS [Stuff] >>> ***/
199
200typedef struct Member {
201 BIT_STRING_t cup_of_coffee;
202 /*
203 * This type is extensible,
204 * possible extensions are below.
205 */
206
207 /* Context for parsing across buffer boundaries */
208 asn_struct_ctx_t _asn_ctx;
209} Member;
210
Lev Walkin03ba3e92004-08-22 03:18:17 +0000211/*** <<< TYPE-DECLS [Stuff] >>> ***/
212
Lev Walkin03ba3e92004-08-22 03:18:17 +0000213typedef struct Stuff {
214 struct trees {
Lev Walkinc8285712005-03-04 22:18:20 +0000215 A_SET_OF(struct Forest) list;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000216
217 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000218 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000219 } *trees;
220 struct anything {
Bi-Ruei, Chiu9b87e5b2016-06-06 00:23:16 +0800221 A_SET_OF(Member) list;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000222
223 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000224 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000225 } *anything;
Lev Walkin2a8672e2004-10-03 09:14:49 +0000226 /*
227 * This type is extensible,
228 * possible extensions are below.
229 */
230 struct other {
231 other_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000232 union Stuff__other_u {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000233 INTEGER_t a;
234 INTEGER_t b;
235 } choice;
236
237 /* Context for parsing across buffer boundaries */
238 asn_struct_ctx_t _asn_ctx;
239 } *other;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000240
241 /* Presence bitmask: ASN_SET_ISPRESENT(pStuff, Stuff_PR_x) */
242 unsigned int _presence_map
Lev Walkin2a8672e2004-10-03 09:14:49 +0000243 [((3+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
Lev Walkin03ba3e92004-08-22 03:18:17 +0000244
245 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000246 asn_struct_ctx_t _asn_ctx;
Lev Walkin03ba3e92004-08-22 03:18:17 +0000247} Stuff_t;
248
Lev Walkinc8285712005-03-04 22:18:20 +0000249/*** <<< FUNC-DECLS [Stuff] >>> ***/
250
251extern asn_TYPE_descriptor_t asn_DEF_Stuff;
252
253/*** <<< POST-INCLUDE [Stuff] >>> ***/
254
Lev Walkin22b5ed42006-09-13 02:51:20 +0000255#include "Forest.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000256
Lev Walkin03ba3e92004-08-22 03:18:17 +0000257/*** <<< STAT-DEFS [Stuff] >>> ***/
258
Lev Walkine0272aa2005-03-04 11:26:08 +0000259static asn_TYPE_member_t asn_MBR_trees_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000260 { ATF_POINTER, 0, 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000261 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
262 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000263 .type = &asn_DEF_Forest,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000264 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400265 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000266 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
267 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000268 .name = ""
269 },
270};
Lev Walkina7591b52014-10-12 18:37:35 -0700271static const ber_tlv_tag_t asn_DEF_trees_tags_2[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000272 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin188ed2c2004-09-13 08:31:01 +0000273 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
Lev Walkin03ba3e92004-08-22 03:18:17 +0000274};
Lev Walkin59b176e2005-11-26 11:25:14 +0000275static asn_SET_OF_specifics_t asn_SPC_trees_specs_2 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000276 sizeof(struct trees),
Lev Walkindfae9752004-09-29 13:19:37 +0000277 offsetof(struct trees, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000278 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000279};
Lev Walkind04430c2004-09-07 06:44:29 +0000280static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000281asn_TYPE_descriptor_t asn_DEF_trees_2 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000282 "trees",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000283 "trees",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000284 SET_OF_free,
285 SET_OF_print,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000286 SET_OF_constraint,
287 SET_OF_decode_ber,
288 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000289 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000290 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700291 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400292 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000293 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000294 asn_DEF_trees_tags_2,
295 sizeof(asn_DEF_trees_tags_2)
296 /sizeof(asn_DEF_trees_tags_2[0]) - 1, /* 1 */
297 asn_DEF_trees_tags_2, /* Same as above */
298 sizeof(asn_DEF_trees_tags_2)
299 /sizeof(asn_DEF_trees_tags_2[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400300 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000301 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000302 asn_MBR_trees_2,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000303 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000304 &asn_SPC_trees_specs_2 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000305};
306
Lev Walkine8318b82005-03-06 09:29:03 +0000307static asn_TYPE_member_t asn_MBR_Member_5[] = {
Lev Walkine0272aa2005-03-04 11:26:08 +0000308 { ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000309 .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
310 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000311 .type = &asn_DEF_BIT_STRING,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000312 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400313 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000314 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
315 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000316 .name = "cup-of-coffee"
317 },
318};
Lev Walkina7591b52014-10-12 18:37:35 -0700319static const ber_tlv_tag_t asn_DEF_Member_tags_5[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000320 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
321};
Lev Walkina7591b52014-10-12 18:37:35 -0700322static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_5[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700323 { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000324};
Lev Walkin59b176e2005-11-26 11:25:14 +0000325static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_5 = {
Lev Walkine0272aa2005-03-04 11:26:08 +0000326 sizeof(struct Member),
327 offsetof(struct Member, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000328 asn_MAP_Member_tag2el_5,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000329 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000330 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000331 0, /* Start extensions */
332 2 /* Stop extensions */
333};
Lev Walkind04430c2004-09-07 06:44:29 +0000334static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000335asn_TYPE_descriptor_t asn_DEF_Member_5 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000336 "SEQUENCE",
337 "SEQUENCE",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000338 SEQUENCE_free,
339 SEQUENCE_print,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000340 SEQUENCE_constraint,
341 SEQUENCE_decode_ber,
342 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000343 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000344 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700345 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400346 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000347 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000348 asn_DEF_Member_tags_5,
349 sizeof(asn_DEF_Member_tags_5)
350 /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */
351 asn_DEF_Member_tags_5, /* Same as above */
352 sizeof(asn_DEF_Member_tags_5)
353 /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400354 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000355 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000356 asn_MBR_Member_5,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000357 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000358 &asn_SPC_Member_specs_5 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000359};
360
Lev Walkine8318b82005-03-06 09:29:03 +0000361static asn_TYPE_member_t asn_MBR_anything_4[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000362 { ATF_POINTER, 0, 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000363 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
364 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000365 .type = &asn_DEF_Member_5,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000366 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400367 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000368 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
369 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000370 .name = ""
371 },
372};
Lev Walkina7591b52014-10-12 18:37:35 -0700373static const ber_tlv_tag_t asn_DEF_anything_tags_4[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000374 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin188ed2c2004-09-13 08:31:01 +0000375 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
Lev Walkin03ba3e92004-08-22 03:18:17 +0000376};
Lev Walkin59b176e2005-11-26 11:25:14 +0000377static asn_SET_OF_specifics_t asn_SPC_anything_specs_4 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000378 sizeof(struct anything),
Lev Walkindfae9752004-09-29 13:19:37 +0000379 offsetof(struct anything, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000380 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000381};
Lev Walkind04430c2004-09-07 06:44:29 +0000382static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000383asn_TYPE_descriptor_t asn_DEF_anything_4 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000384 "anything",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000385 "anything",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000386 SET_OF_free,
387 SET_OF_print,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000388 SET_OF_constraint,
389 SET_OF_decode_ber,
390 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000391 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000392 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700393 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400394 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000395 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000396 asn_DEF_anything_tags_4,
397 sizeof(asn_DEF_anything_tags_4)
398 /sizeof(asn_DEF_anything_tags_4[0]) - 1, /* 1 */
399 asn_DEF_anything_tags_4, /* Same as above */
400 sizeof(asn_DEF_anything_tags_4)
401 /sizeof(asn_DEF_anything_tags_4[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400402 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000403 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000404 asn_MBR_anything_4,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000405 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000406 &asn_SPC_anything_specs_4 /* Additional specs */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000407};
408
Lev Walkine8318b82005-03-06 09:29:03 +0000409static asn_TYPE_member_t asn_MBR_other_9[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000410 { ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000411 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
412 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000413 .type = &asn_DEF_INTEGER,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000414 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400415 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000416 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
417 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000418 .name = "a"
419 },
420 { ATF_NOFLAGS, 0, offsetof(struct other, choice.b),
421 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
422 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000423 .type = &asn_DEF_INTEGER,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000424 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400425 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000426 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
427 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000428 .name = "b"
429 },
430};
Lev Walkina7591b52014-10-12 18:37:35 -0700431static const asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700432 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */
433 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000434};
Lev Walkin59b176e2005-11-26 11:25:14 +0000435static asn_CHOICE_specifics_t asn_SPC_other_specs_9 = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000436 sizeof(struct other),
437 offsetof(struct other, _asn_ctx),
438 offsetof(struct other, present),
439 sizeof(((struct other *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000440 asn_MAP_other_tag2el_9,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000441 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000442 .canonical_order = 0,
443 .ext_start = -1 /* Extensions start */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000444};
445static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000446asn_TYPE_descriptor_t asn_DEF_other_9 = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000447 "other",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000448 "other",
Lev Walkin2a8672e2004-10-03 09:14:49 +0000449 CHOICE_free,
450 CHOICE_print,
451 CHOICE_constraint,
452 CHOICE_decode_ber,
453 CHOICE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000454 CHOICE_decode_xer,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000455 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700456 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400457 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000458 CHOICE_outmost_tag,
459 0, /* No effective tags (pointer) */
460 0, /* No effective tags (count) */
461 0, /* No tags (pointer) */
462 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400463 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000464 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000465 asn_MBR_other_9,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000466 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000467 &asn_SPC_other_specs_9 /* Additional specs */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000468};
469
Lev Walkine0272aa2005-03-04 11:26:08 +0000470static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000471 { ATF_POINTER, 3, offsetof(struct Stuff, trees),
472 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000473 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000474 .type = &asn_DEF_trees_2,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000475 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400476 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000477 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
478 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000479 .name = "trees"
480 },
Lev Walkin2a8672e2004-10-03 09:14:49 +0000481 { ATF_POINTER, 2, offsetof(struct Stuff, anything),
482 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000483 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000484 .type = &asn_DEF_anything_4,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000485 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400486 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000487 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
488 .default_value = 0,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000489 .name = "anything"
490 },
Lev Walkinb85a8132005-08-18 13:38:19 +0000491 { ATF_POINTER, 1, offsetof(struct Stuff, other),
Lev Walkin2a8672e2004-10-03 09:14:49 +0000492 .tag = -1 /* Ambiguous tag (CHOICE?) */,
493 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000494 .type = &asn_DEF_other_9,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000495 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400496 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000497 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
498 .default_value = 0,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000499 .name = "other"
500 },
Lev Walkin03ba3e92004-08-22 03:18:17 +0000501};
Lev Walkina7591b52014-10-12 18:37:35 -0700502static const ber_tlv_tag_t asn_DEF_Stuff_tags_1[] = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000503 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
504};
Lev Walkina7591b52014-10-12 18:37:35 -0700505static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700506 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* a */
507 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */
508 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */
509 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* b */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000510};
Lev Walkina7591b52014-10-12 18:37:35 -0700511static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_cxer_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700512 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */
513 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */
514 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 } /* a */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000515};
Lev Walkina7591b52014-10-12 18:37:35 -0700516static const uint8_t asn_MAP_Stuff_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin2a8672e2004-10-03 09:14:49 +0000517 (0 << 7) | (0 << 6) | (0 << 5)
Lev Walkin03ba3e92004-08-22 03:18:17 +0000518};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800519static
520asn_SET_specifics_t asn_SPC_Stuff_specs_1 = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000521 sizeof(struct Stuff),
Lev Walkindfae9752004-09-29 13:19:37 +0000522 offsetof(struct Stuff, _asn_ctx),
Lev Walkin03ba3e92004-08-22 03:18:17 +0000523 offsetof(struct Stuff, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000524 asn_MAP_Stuff_tag2el_1,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000525 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000526 asn_MAP_Stuff_tag2el_cxer_1,
Lev Walkinf82138b2005-02-25 08:20:32 +0000527 3, /* Count of tags in the CXER map */
Lev Walkin2a8672e2004-10-03 09:14:49 +0000528 1, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700529 (const unsigned int *)asn_MAP_Stuff_mmap_1 /* Mandatory elements map */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000530};
Lev Walkindfae9752004-09-29 13:19:37 +0000531asn_TYPE_descriptor_t asn_DEF_Stuff = {
Lev Walkin03ba3e92004-08-22 03:18:17 +0000532 "Stuff",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000533 "Stuff",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000534 SET_free,
535 SET_print,
Lev Walkin03ba3e92004-08-22 03:18:17 +0000536 SET_constraint,
537 SET_decode_ber,
538 SET_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000539 SET_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000540 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700541 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400542 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin03ba3e92004-08-22 03:18:17 +0000543 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000544 asn_DEF_Stuff_tags_1,
545 sizeof(asn_DEF_Stuff_tags_1)
546 /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */
547 asn_DEF_Stuff_tags_1, /* Same as above */
548 sizeof(asn_DEF_Stuff_tags_1)
549 /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400550 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000551 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000552 asn_MBR_Stuff_1,
Lev Walkin2a8672e2004-10-03 09:14:49 +0000553 3, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000554 &asn_SPC_Stuff_specs_1 /* Additional specs */
555};
556