blob: 2097caa23bb4fdbce6f949246266c980864b7f14 [file] [log] [blame]
Lev Walkin67ec2092004-09-08 00:26:56 +00001
2/*** <<< INCLUDES [Test-structure-1] >>> ***/
3
Lev Walkin67ec2092004-09-08 00:26:56 +00004#include <INTEGER.h>
5#include <asn_SET_OF.h>
6#include <constr_SET_OF.h>
7#include <asn_SEQUENCE_OF.h>
8#include <constr_SEQUENCE_OF.h>
9#include <constr_SEQUENCE.h>
10
Lev Walkinc8285712005-03-04 22:18:20 +000011/*** <<< FWD-DECLS [Test-structure-1] >>> ***/
Lev Walkin1ca69672004-09-29 13:19:12 +000012
Lev Walkinbf56d542005-03-04 23:50:56 +000013struct Test_structure_1;
Lev Walkin67ec2092004-09-08 00:26:56 +000014
15/*** <<< TYPE-DECLS [Test-structure-1] >>> ***/
16
Lev Walkin67ec2092004-09-08 00:26:56 +000017typedef struct Test_structure_1 {
18 struct t_member1 {
19 A_SET_OF(struct Test_structure_1) list;
20
21 /* Context for parsing across buffer boundaries */
Lev Walkin1ca69672004-09-29 13:19:12 +000022 asn_struct_ctx_t _asn_ctx;
Lev Walkin67ec2092004-09-08 00:26:56 +000023 } t_member1;
24 struct t_member2 {
25 A_SEQUENCE_OF(struct Test_structure_1) list;
26
27 /* Context for parsing across buffer boundaries */
Lev Walkin1ca69672004-09-29 13:19:12 +000028 asn_struct_ctx_t _asn_ctx;
Lev Walkin67ec2092004-09-08 00:26:56 +000029 } t_member2;
30 struct Test_structure_1 *t_member3 /* OPTIONAL */;
31 INTEGER_t t_member4;
32
33 /* Context for parsing across buffer boundaries */
Lev Walkin1ca69672004-09-29 13:19:12 +000034 asn_struct_ctx_t _asn_ctx;
Lev Walkin67ec2092004-09-08 00:26:56 +000035} Test_structure_1_t;
36
Lev Walkinc8285712005-03-04 22:18:20 +000037/*** <<< FUNC-DECLS [Test-structure-1] >>> ***/
38
39extern asn_TYPE_descriptor_t asn_DEF_Test_structure_1;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080040extern asn_SEQUENCE_specifics_t asn_SPC_Test_structure_1_specs_1;
41extern asn_TYPE_member_t asn_MBR_Test_structure_1_1[4];
Lev Walkinc8285712005-03-04 22:18:20 +000042
43/*** <<< POST-INCLUDE [Test-structure-1] >>> ***/
44
Lev Walkin22b5ed42006-09-13 02:51:20 +000045#include "Test-structure-1.h"
Lev Walkinc8285712005-03-04 22:18:20 +000046
Lev Walkin67ec2092004-09-08 00:26:56 +000047/*** <<< STAT-DEFS [Test-structure-1] >>> ***/
48
Lev Walkine0272aa2005-03-04 11:26:08 +000049static asn_TYPE_member_t asn_MBR_t_member1_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +000050 { ATF_POINTER, 0, 0,
Lev Walkin67ec2092004-09-08 00:26:56 +000051 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
52 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000053 .type = &asn_DEF_Test_structure_1,
Lev Walkin67a30122017-08-10 05:48:54 -070054 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +000055 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040056 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000057 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
58 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +000059 .name = ""
60 },
61};
Lev Walkina7591b52014-10-12 18:37:35 -070062static const ber_tlv_tag_t asn_DEF_t_member1_tags_2[] = {
Lev Walkin67ec2092004-09-08 00:26:56 +000063 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
64};
Lev Walkin59b176e2005-11-26 11:25:14 +000065static asn_SET_OF_specifics_t asn_SPC_t_member1_specs_2 = {
Lev Walkin67ec2092004-09-08 00:26:56 +000066 sizeof(struct t_member1),
Lev Walkin1ca69672004-09-29 13:19:12 +000067 offsetof(struct t_member1, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000068 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin67ec2092004-09-08 00:26:56 +000069};
70static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +000071asn_TYPE_descriptor_t asn_DEF_t_member1_2 = {
Lev Walkin67ec2092004-09-08 00:26:56 +000072 "t-member1",
Lev Walkindc06f6b2004-10-20 15:50:55 +000073 "t-member1",
Lev Walkina9cc46e2004-09-22 16:06:28 +000074 SET_OF_free,
75 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -070076 SET_OF_compare,
Lev Walkin67ec2092004-09-08 00:26:56 +000077 SET_OF_constraint,
78 SET_OF_decode_ber,
79 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +000080 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +000081 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -070082 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +040083 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin67ec2092004-09-08 00:26:56 +000084 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +000085 asn_DEF_t_member1_tags_2,
86 sizeof(asn_DEF_t_member1_tags_2)
87 /sizeof(asn_DEF_t_member1_tags_2[0]), /* 1 */
88 asn_DEF_t_member1_tags_2, /* Same as above */
89 sizeof(asn_DEF_t_member1_tags_2)
90 /sizeof(asn_DEF_t_member1_tags_2[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040091 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000092 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +000093 asn_MBR_t_member1_2,
Lev Walkin67ec2092004-09-08 00:26:56 +000094 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000095 &asn_SPC_t_member1_specs_2 /* Additional specs */
Lev Walkin67ec2092004-09-08 00:26:56 +000096};
97
Lev Walkine8318b82005-03-06 09:29:03 +000098static asn_TYPE_member_t asn_MBR_t_member2_4[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +000099 { ATF_POINTER, 0, 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000100 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
101 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000102 .type = &asn_DEF_Test_structure_1,
Lev Walkin67a30122017-08-10 05:48:54 -0700103 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000104 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400105 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000106 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
107 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000108 .name = ""
109 },
110};
Lev Walkina7591b52014-10-12 18:37:35 -0700111static const ber_tlv_tag_t asn_DEF_t_member2_tags_4[] = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000112 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
113};
Lev Walkin59b176e2005-11-26 11:25:14 +0000114static asn_SET_OF_specifics_t asn_SPC_t_member2_specs_4 = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000115 sizeof(struct t_member2),
Lev Walkin1ca69672004-09-29 13:19:12 +0000116 offsetof(struct t_member2, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000117 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin67ec2092004-09-08 00:26:56 +0000118};
119static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000120asn_TYPE_descriptor_t asn_DEF_t_member2_4 = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000121 "t-member2",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000122 "t-member2",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000123 SEQUENCE_OF_free,
124 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700125 SEQUENCE_OF_compare,
Lev Walkin67ec2092004-09-08 00:26:56 +0000126 SEQUENCE_OF_constraint,
127 SEQUENCE_OF_decode_ber,
128 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000129 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000130 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700131 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400132 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin67ec2092004-09-08 00:26:56 +0000133 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000134 asn_DEF_t_member2_tags_4,
135 sizeof(asn_DEF_t_member2_tags_4)
136 /sizeof(asn_DEF_t_member2_tags_4[0]), /* 1 */
137 asn_DEF_t_member2_tags_4, /* Same as above */
138 sizeof(asn_DEF_t_member2_tags_4)
139 /sizeof(asn_DEF_t_member2_tags_4[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400140 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000141 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000142 asn_MBR_t_member2_4,
Lev Walkin67ec2092004-09-08 00:26:56 +0000143 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000144 &asn_SPC_t_member2_specs_4 /* Additional specs */
Lev Walkin67ec2092004-09-08 00:26:56 +0000145};
146
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800147asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000148 { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member1),
Lev Walkin67ec2092004-09-08 00:26:56 +0000149 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
150 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000151 .type = &asn_DEF_t_member1_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700152 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000153 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400154 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000155 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
156 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000157 .name = "t-member1"
158 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000159 { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2),
Lev Walkin67ec2092004-09-08 00:26:56 +0000160 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
161 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000162 .type = &asn_DEF_t_member2_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700163 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000164 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400165 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000166 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
167 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000168 .name = "t-member2"
169 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000170 { ATF_POINTER, 1, offsetof(struct Test_structure_1, t_member3),
Lev Walkin67ec2092004-09-08 00:26:56 +0000171 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
172 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000173 .type = &asn_DEF_Test_structure_1,
Lev Walkin67a30122017-08-10 05:48:54 -0700174 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000175 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400176 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000177 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
178 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000179 .name = "t-member3"
180 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000181 { ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member4),
Lev Walkin67ec2092004-09-08 00:26:56 +0000182 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
183 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000184 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700185 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000186 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400187 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000188 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
189 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000190 .name = "t-member4"
191 },
192};
Lev Walkina7591b52014-10-12 18:37:35 -0700193static const ber_tlv_tag_t asn_DEF_Test_structure_1_tags_1[] = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000194 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
195};
Lev Walkina7591b52014-10-12 18:37:35 -0700196static const asn_TYPE_tag2member_t asn_MAP_Test_structure_1_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700197 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 3, 0, 0 }, /* t-member4 */
198 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 1 }, /* t-member2 */
199 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -1, 0 }, /* t-member3 */
200 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* t-member1 */
Lev Walkin67ec2092004-09-08 00:26:56 +0000201};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800202asn_SEQUENCE_specifics_t asn_SPC_Test_structure_1_specs_1 = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000203 sizeof(struct Test_structure_1),
Lev Walkin1ca69672004-09-29 13:19:12 +0000204 offsetof(struct Test_structure_1, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000205 asn_MAP_Test_structure_1_tag2el_1,
Lev Walkin67ec2092004-09-08 00:26:56 +0000206 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000207 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin67ec2092004-09-08 00:26:56 +0000208 -1, /* Start extensions */
209 -1 /* Stop extensions */
210};
Lev Walkin1ca69672004-09-29 13:19:12 +0000211asn_TYPE_descriptor_t asn_DEF_Test_structure_1 = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000212 "Test-structure-1",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000213 "Test-structure-1",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000214 SEQUENCE_free,
215 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700216 SEQUENCE_compare,
Lev Walkin67ec2092004-09-08 00:26:56 +0000217 SEQUENCE_constraint,
218 SEQUENCE_decode_ber,
219 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000220 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000221 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700222 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400223 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin67ec2092004-09-08 00:26:56 +0000224 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000225 asn_DEF_Test_structure_1_tags_1,
226 sizeof(asn_DEF_Test_structure_1_tags_1)
227 /sizeof(asn_DEF_Test_structure_1_tags_1[0]), /* 1 */
228 asn_DEF_Test_structure_1_tags_1, /* Same as above */
229 sizeof(asn_DEF_Test_structure_1_tags_1)
230 /sizeof(asn_DEF_Test_structure_1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400231 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000232 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000233 asn_MBR_Test_structure_1_1,
Lev Walkin67ec2092004-09-08 00:26:56 +0000234 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000235 &asn_SPC_Test_structure_1_specs_1 /* Additional specs */
Lev Walkin67ec2092004-09-08 00:26:56 +0000236};
237
238
239/*** <<< INCLUDES [Choice-1] >>> ***/
240
Lev Walkin67ec2092004-09-08 00:26:56 +0000241#include <INTEGER.h>
242#include <asn_SET_OF.h>
243#include <constr_SET_OF.h>
244#include <constr_CHOICE.h>
245
246/*** <<< DEPS [Choice-1] >>> ***/
247
248typedef enum Choice_1_PR {
249 Choice_1_PR_NOTHING, /* No components present */
250 Choice_1_PR_and,
251 Choice_1_PR_or,
252 Choice_1_PR_not,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000253 Choice_1_PR_other
Lev Walkin67ec2092004-09-08 00:26:56 +0000254} Choice_1_PR;
Lev Walkin1ca69672004-09-29 13:19:12 +0000255
Lev Walkinc8285712005-03-04 22:18:20 +0000256/*** <<< FWD-DECLS [Choice-1] >>> ***/
Lev Walkin1ca69672004-09-29 13:19:12 +0000257
Lev Walkinbf56d542005-03-04 23:50:56 +0000258struct Choice_1;
Lev Walkin67ec2092004-09-08 00:26:56 +0000259
260/*** <<< TYPE-DECLS [Choice-1] >>> ***/
261
Lev Walkin67ec2092004-09-08 00:26:56 +0000262typedef struct Choice_1 {
263 Choice_1_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000264 union Choice_1_u {
Lev Walkin2a744a72013-03-27 01:56:23 -0700265 struct Choice_1 *And;
266 struct Or {
Lev Walkin67ec2092004-09-08 00:26:56 +0000267 A_SET_OF(struct Choice_1) list;
268
269 /* Context for parsing across buffer boundaries */
Lev Walkin1ca69672004-09-29 13:19:12 +0000270 asn_struct_ctx_t _asn_ctx;
Lev Walkin2a744a72013-03-27 01:56:23 -0700271 } Or;
272 struct Choice_1 *Not;
Lev Walkin67ec2092004-09-08 00:26:56 +0000273 INTEGER_t other;
274 } choice;
275
276 /* Context for parsing across buffer boundaries */
Lev Walkin1ca69672004-09-29 13:19:12 +0000277 asn_struct_ctx_t _asn_ctx;
Lev Walkin67ec2092004-09-08 00:26:56 +0000278} Choice_1_t;
279
Lev Walkinc8285712005-03-04 22:18:20 +0000280/*** <<< FUNC-DECLS [Choice-1] >>> ***/
281
282extern asn_TYPE_descriptor_t asn_DEF_Choice_1;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800283extern asn_CHOICE_specifics_t asn_SPC_Choice_1_specs_1;
284extern asn_TYPE_member_t asn_MBR_Choice_1_1[4];
Lev Walkinc8285712005-03-04 22:18:20 +0000285
286/*** <<< POST-INCLUDE [Choice-1] >>> ***/
287
Lev Walkin22b5ed42006-09-13 02:51:20 +0000288#include "Choice-1.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000289
Lev Walkin67ec2092004-09-08 00:26:56 +0000290/*** <<< STAT-DEFS [Choice-1] >>> ***/
291
Lev Walkine8318b82005-03-06 09:29:03 +0000292static asn_TYPE_member_t asn_MBR_or_3[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000293 { ATF_POINTER, 0, 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000294 .tag = -1 /* Ambiguous tag (CHOICE?) */,
Lev Walkin67ec2092004-09-08 00:26:56 +0000295 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000296 .type = &asn_DEF_Choice_1,
Lev Walkin67a30122017-08-10 05:48:54 -0700297 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000298 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400299 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000300 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
301 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000302 .name = ""
303 },
304};
Lev Walkina7591b52014-10-12 18:37:35 -0700305static const ber_tlv_tag_t asn_DEF_or_tags_3[] = {
Lev Walkin188ed2c2004-09-13 08:31:01 +0000306 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
307 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
Lev Walkin67ec2092004-09-08 00:26:56 +0000308};
Lev Walkin59b176e2005-11-26 11:25:14 +0000309static asn_SET_OF_specifics_t asn_SPC_or_specs_3 = {
Lev Walkin2a744a72013-03-27 01:56:23 -0700310 sizeof(struct Or),
311 offsetof(struct Or, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000312 2, /* XER encoding is XMLValueList */
Lev Walkin67ec2092004-09-08 00:26:56 +0000313};
314static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000315asn_TYPE_descriptor_t asn_DEF_or_3 = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000316 "or",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000317 "or",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000318 SET_OF_free,
319 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700320 SET_OF_compare,
Lev Walkin67ec2092004-09-08 00:26:56 +0000321 SET_OF_constraint,
322 SET_OF_decode_ber,
323 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000324 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000325 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700326 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400327 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin67ec2092004-09-08 00:26:56 +0000328 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000329 asn_DEF_or_tags_3,
330 sizeof(asn_DEF_or_tags_3)
331 /sizeof(asn_DEF_or_tags_3[0]) - 1, /* 1 */
332 asn_DEF_or_tags_3, /* Same as above */
333 sizeof(asn_DEF_or_tags_3)
334 /sizeof(asn_DEF_or_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400335 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000336 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +0000337 asn_MBR_or_3,
Lev Walkin67ec2092004-09-08 00:26:56 +0000338 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000339 &asn_SPC_or_specs_3 /* Additional specs */
Lev Walkin67ec2092004-09-08 00:26:56 +0000340};
341
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800342asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
Lev Walkin2a744a72013-03-27 01:56:23 -0700343 { ATF_POINTER, 0, offsetof(struct Choice_1, choice.And),
Lev Walkin67ec2092004-09-08 00:26:56 +0000344 .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
345 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000346 .type = &asn_DEF_Choice_1,
Lev Walkin67a30122017-08-10 05:48:54 -0700347 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000348 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400349 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000350 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
351 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000352 .name = "and"
353 },
Lev Walkin2a744a72013-03-27 01:56:23 -0700354 { ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.Or),
Lev Walkin67ec2092004-09-08 00:26:56 +0000355 .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000356 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000357 .type = &asn_DEF_or_3,
Lev Walkin67a30122017-08-10 05:48:54 -0700358 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000359 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400360 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000361 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
362 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000363 .name = "or"
364 },
Lev Walkin2a744a72013-03-27 01:56:23 -0700365 { ATF_POINTER, 0, offsetof(struct Choice_1, choice.Not),
Lev Walkin67ec2092004-09-08 00:26:56 +0000366 .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
367 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000368 .type = &asn_DEF_Choice_1,
Lev Walkin67a30122017-08-10 05:48:54 -0700369 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000370 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400371 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000372 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
373 .default_value = 0,
Lev Walkin67ec2092004-09-08 00:26:56 +0000374 .name = "not"
375 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000376 { ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.other),
Lev Walkin67ec2092004-09-08 00:26:56 +0000377 .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
378 .tag_mode = +1, /* EXPLICIT 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 Walkin67ec2092004-09-08 00:26:56 +0000385 .name = "other"
386 },
387};
Lev Walkina7591b52014-10-12 18:37:35 -0700388static const asn_TYPE_tag2member_t asn_MAP_Choice_1_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700389 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* and */
390 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* or */
391 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* not */
392 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* other */
Lev Walkin67ec2092004-09-08 00:26:56 +0000393};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800394asn_CHOICE_specifics_t asn_SPC_Choice_1_specs_1 = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000395 sizeof(struct Choice_1),
Lev Walkin1ca69672004-09-29 13:19:12 +0000396 offsetof(struct Choice_1, _asn_ctx),
Lev Walkin67ec2092004-09-08 00:26:56 +0000397 offsetof(struct Choice_1, present),
398 sizeof(((struct Choice_1 *)0)->present),
Lev Walkin59b176e2005-11-26 11:25:14 +0000399 asn_MAP_Choice_1_tag2el_1,
Lev Walkin67ec2092004-09-08 00:26:56 +0000400 4, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000401 .canonical_order = 0,
402 .ext_start = -1 /* Extensions start */
Lev Walkin67ec2092004-09-08 00:26:56 +0000403};
Lev Walkin1ca69672004-09-29 13:19:12 +0000404asn_TYPE_descriptor_t asn_DEF_Choice_1 = {
Lev Walkin67ec2092004-09-08 00:26:56 +0000405 "Choice-1",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000406 "Choice-1",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000407 CHOICE_free,
408 CHOICE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700409 CHOICE_compare,
Lev Walkin67ec2092004-09-08 00:26:56 +0000410 CHOICE_constraint,
411 CHOICE_decode_ber,
412 CHOICE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000413 CHOICE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000414 CHOICE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700415 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400416 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin67ec2092004-09-08 00:26:56 +0000417 CHOICE_outmost_tag,
Lev Walkin188ed2c2004-09-13 08:31:01 +0000418 0, /* No effective tags (pointer) */
419 0, /* No effective tags (count) */
420 0, /* No tags (pointer) */
421 0, /* No tags (count) */
Lev Walkinb33425f2017-07-14 14:59:52 +0400422 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000423 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000424 asn_MBR_Choice_1_1,
Lev Walkin67ec2092004-09-08 00:26:56 +0000425 4, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000426 &asn_SPC_Choice_1_specs_1 /* Additional specs */
Lev Walkin1ca69672004-09-29 13:19:12 +0000427};
428
429
430/*** <<< INCLUDES [Test-structure-2] >>> ***/
431
Lev Walkin1ca69672004-09-29 13:19:12 +0000432#include <constr_SET.h>
433
434/*** <<< DEPS [Test-structure-2] >>> ***/
435
436
437/*
438 * Method of determining the components presence
439 */
440typedef enum Test_structure_2_PR {
441 Test_structure_2_PR_m1, /* Member m1 is present */
442} Test_structure_2_PR;
443
Lev Walkinc8285712005-03-04 22:18:20 +0000444/*** <<< FWD-DECLS [Test-structure-2] >>> ***/
445
Lev Walkinbf56d542005-03-04 23:50:56 +0000446struct Test_structure_3;
Lev Walkin1ca69672004-09-29 13:19:12 +0000447
448/*** <<< TYPE-DECLS [Test-structure-2] >>> ***/
449
Lev Walkin1ca69672004-09-29 13:19:12 +0000450typedef struct Test_structure_2 {
451 struct Test_structure_3 *m1 /* OPTIONAL */;
452
453 /* Presence bitmask: ASN_SET_ISPRESENT(pTest_structure_2, Test_structure_2_PR_x) */
454 unsigned int _presence_map
455 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
456
457 /* Context for parsing across buffer boundaries */
458 asn_struct_ctx_t _asn_ctx;
459} Test_structure_2_t;
460
Lev Walkinc8285712005-03-04 22:18:20 +0000461/*** <<< FUNC-DECLS [Test-structure-2] >>> ***/
462
463extern asn_TYPE_descriptor_t asn_DEF_Test_structure_2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800464extern asn_SET_specifics_t asn_SPC_Test_structure_2_specs_1;
465extern asn_TYPE_member_t asn_MBR_Test_structure_2_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000466
467/*** <<< POST-INCLUDE [Test-structure-2] >>> ***/
468
Lev Walkin22b5ed42006-09-13 02:51:20 +0000469#include "Test-structure-3.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000470
Lev Walkin1ca69672004-09-29 13:19:12 +0000471/*** <<< STAT-DEFS [Test-structure-2] >>> ***/
472
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800473asn_TYPE_member_t asn_MBR_Test_structure_2_1[] = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000474 { ATF_POINTER, 1, offsetof(struct Test_structure_2, m1),
475 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
476 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000477 .type = &asn_DEF_Test_structure_3,
Lev Walkin67a30122017-08-10 05:48:54 -0700478 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000479 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400480 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000481 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
482 .default_value = 0,
Lev Walkin1ca69672004-09-29 13:19:12 +0000483 .name = "m1"
484 },
485};
Lev Walkina7591b52014-10-12 18:37:35 -0700486static const ber_tlv_tag_t asn_DEF_Test_structure_2_tags_1[] = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000487 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
488};
Lev Walkina7591b52014-10-12 18:37:35 -0700489static const asn_TYPE_tag2member_t asn_MAP_Test_structure_2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700490 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 */
Lev Walkin1ca69672004-09-29 13:19:12 +0000491};
Lev Walkina7591b52014-10-12 18:37:35 -0700492static const uint8_t asn_MAP_Test_structure_2_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000493 (0 << 7)
494};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800495asn_SET_specifics_t asn_SPC_Test_structure_2_specs_1 = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000496 sizeof(struct Test_structure_2),
497 offsetof(struct Test_structure_2, _asn_ctx),
498 offsetof(struct Test_structure_2, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000499 asn_MAP_Test_structure_2_tag2el_1,
Lev Walkin1ca69672004-09-29 13:19:12 +0000500 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000501 asn_MAP_Test_structure_2_tag2el_1, /* Same as above */
Lev Walkinf82138b2005-02-25 08:20:32 +0000502 1, /* Count of tags in the CXER map */
Lev Walkin1ca69672004-09-29 13:19:12 +0000503 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700504 (const unsigned int *)asn_MAP_Test_structure_2_mmap_1 /* Mandatory elements map */
Lev Walkin1ca69672004-09-29 13:19:12 +0000505};
506asn_TYPE_descriptor_t asn_DEF_Test_structure_2 = {
507 "Test-structure-2",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000508 "Test-structure-2",
Lev Walkin1ca69672004-09-29 13:19:12 +0000509 SET_free,
510 SET_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700511 SET_compare,
Lev Walkin1ca69672004-09-29 13:19:12 +0000512 SET_constraint,
513 SET_decode_ber,
514 SET_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000515 SET_decode_xer,
Lev Walkin1ca69672004-09-29 13:19:12 +0000516 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700517 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400518 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1ca69672004-09-29 13:19:12 +0000519 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000520 asn_DEF_Test_structure_2_tags_1,
521 sizeof(asn_DEF_Test_structure_2_tags_1)
522 /sizeof(asn_DEF_Test_structure_2_tags_1[0]), /* 1 */
523 asn_DEF_Test_structure_2_tags_1, /* Same as above */
524 sizeof(asn_DEF_Test_structure_2_tags_1)
525 /sizeof(asn_DEF_Test_structure_2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400526 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000527 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000528 asn_MBR_Test_structure_2_1,
Lev Walkin1ca69672004-09-29 13:19:12 +0000529 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000530 &asn_SPC_Test_structure_2_specs_1 /* Additional specs */
Lev Walkin1ca69672004-09-29 13:19:12 +0000531};
532
533
534/*** <<< INCLUDES [Test-structure-3] >>> ***/
535
Lev Walkin1ca69672004-09-29 13:19:12 +0000536#include <constr_SET.h>
537
538/*** <<< DEPS [Test-structure-3] >>> ***/
539
540
541/*
542 * Method of determining the components presence
543 */
544typedef enum Test_structure_3_PR {
545 Test_structure_3_PR_m1, /* Member m1 is present */
546} Test_structure_3_PR;
547
Lev Walkinc8285712005-03-04 22:18:20 +0000548/*** <<< FWD-DECLS [Test-structure-3] >>> ***/
549
Lev Walkinbf56d542005-03-04 23:50:56 +0000550struct Test_structure_2;
Lev Walkin1ca69672004-09-29 13:19:12 +0000551
552/*** <<< TYPE-DECLS [Test-structure-3] >>> ***/
553
Lev Walkin1ca69672004-09-29 13:19:12 +0000554typedef struct Test_structure_3 {
555 struct Test_structure_2 *m1 /* OPTIONAL */;
556
557 /* Presence bitmask: ASN_SET_ISPRESENT(pTest_structure_3, Test_structure_3_PR_x) */
558 unsigned int _presence_map
559 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
560
561 /* Context for parsing across buffer boundaries */
562 asn_struct_ctx_t _asn_ctx;
563} Test_structure_3_t;
564
Lev Walkinc8285712005-03-04 22:18:20 +0000565/*** <<< FUNC-DECLS [Test-structure-3] >>> ***/
566
567extern asn_TYPE_descriptor_t asn_DEF_Test_structure_3;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800568extern asn_SET_specifics_t asn_SPC_Test_structure_3_specs_1;
569extern asn_TYPE_member_t asn_MBR_Test_structure_3_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000570
571/*** <<< POST-INCLUDE [Test-structure-3] >>> ***/
572
Lev Walkin22b5ed42006-09-13 02:51:20 +0000573#include "Test-structure-2.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000574
Lev Walkin1ca69672004-09-29 13:19:12 +0000575/*** <<< STAT-DEFS [Test-structure-3] >>> ***/
576
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800577asn_TYPE_member_t asn_MBR_Test_structure_3_1[] = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000578 { ATF_POINTER, 1, offsetof(struct Test_structure_3, m1),
579 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
580 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000581 .type = &asn_DEF_Test_structure_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700582 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000583 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400584 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000585 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
586 .default_value = 0,
Lev Walkin1ca69672004-09-29 13:19:12 +0000587 .name = "m1"
588 },
589};
Lev Walkina7591b52014-10-12 18:37:35 -0700590static const ber_tlv_tag_t asn_DEF_Test_structure_3_tags_1[] = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000591 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
592};
Lev Walkina7591b52014-10-12 18:37:35 -0700593static const asn_TYPE_tag2member_t asn_MAP_Test_structure_3_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700594 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* m1 */
Lev Walkin1ca69672004-09-29 13:19:12 +0000595};
Lev Walkina7591b52014-10-12 18:37:35 -0700596static const uint8_t asn_MAP_Test_structure_3_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000597 (0 << 7)
598};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800599asn_SET_specifics_t asn_SPC_Test_structure_3_specs_1 = {
Lev Walkin1ca69672004-09-29 13:19:12 +0000600 sizeof(struct Test_structure_3),
601 offsetof(struct Test_structure_3, _asn_ctx),
602 offsetof(struct Test_structure_3, _presence_map),
Lev Walkin59b176e2005-11-26 11:25:14 +0000603 asn_MAP_Test_structure_3_tag2el_1,
Lev Walkin1ca69672004-09-29 13:19:12 +0000604 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000605 asn_MAP_Test_structure_3_tag2el_1, /* Same as above */
Lev Walkinf82138b2005-02-25 08:20:32 +0000606 1, /* Count of tags in the CXER map */
Lev Walkin1ca69672004-09-29 13:19:12 +0000607 0, /* Whether extensible */
Lev Walkin46ef3f32017-07-06 08:47:53 -0700608 (const unsigned int *)asn_MAP_Test_structure_3_mmap_1 /* Mandatory elements map */
Lev Walkin1ca69672004-09-29 13:19:12 +0000609};
610asn_TYPE_descriptor_t asn_DEF_Test_structure_3 = {
611 "Test-structure-3",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000612 "Test-structure-3",
Lev Walkin1ca69672004-09-29 13:19:12 +0000613 SET_free,
614 SET_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700615 SET_compare,
Lev Walkin1ca69672004-09-29 13:19:12 +0000616 SET_constraint,
617 SET_decode_ber,
618 SET_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000619 SET_decode_xer,
Lev Walkin1ca69672004-09-29 13:19:12 +0000620 SET_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700621 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400622 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1ca69672004-09-29 13:19:12 +0000623 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000624 asn_DEF_Test_structure_3_tags_1,
625 sizeof(asn_DEF_Test_structure_3_tags_1)
626 /sizeof(asn_DEF_Test_structure_3_tags_1[0]), /* 1 */
627 asn_DEF_Test_structure_3_tags_1, /* Same as above */
628 sizeof(asn_DEF_Test_structure_3_tags_1)
629 /sizeof(asn_DEF_Test_structure_3_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400630 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000631 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000632 asn_MBR_Test_structure_3_1,
Lev Walkin1ca69672004-09-29 13:19:12 +0000633 1, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000634 &asn_SPC_Test_structure_3_specs_1 /* Additional specs */
Lev Walkin67ec2092004-09-08 00:26:56 +0000635};
636