blob: 460338008d2ed7457aa0443063fa92e0940cfd39 [file] [log] [blame]
Lev Walkinb9189732004-09-10 09:37:12 +00001
2/*** <<< INCLUDES [T1] >>> ***/
3
4#include <INTEGER.h>
5#include <ANY.h>
6#include <constr_SEQUENCE.h>
7
Lev Walkinb9189732004-09-10 09:37:12 +00008/*** <<< TYPE-DECLS [T1] >>> ***/
9
Lev Walkinb9189732004-09-10 09:37:12 +000010typedef struct T1 {
11 INTEGER_t i;
12 ANY_t any;
13
14 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000015 asn_struct_ctx_t _asn_ctx;
Lev Walkinb9189732004-09-10 09:37:12 +000016} T1_t;
17
Lev Walkinc8285712005-03-04 22:18:20 +000018/*** <<< FUNC-DECLS [T1] >>> ***/
19
20extern asn_TYPE_descriptor_t asn_DEF_T1;
21
Lev Walkinb9189732004-09-10 09:37:12 +000022/*** <<< STAT-DEFS [T1] >>> ***/
23
Lev Walkine0272aa2005-03-04 11:26:08 +000024static asn_TYPE_member_t asn_MBR_T1_1[] = {
Lev Walkinb9189732004-09-10 09:37:12 +000025 { ATF_NOFLAGS, 0, offsetof(struct T1, i),
26 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
27 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000028 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -070029 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +000030 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040031 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000032 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
33 .default_value = 0,
Lev Walkinb9189732004-09-10 09:37:12 +000034 .name = "i"
35 },
36 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T1, any),
37 .tag = -1 /* Ambiguous tag (ANY?) */,
38 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000039 .type = &asn_DEF_ANY,
Lev Walkin67a30122017-08-10 05:48:54 -070040 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +000041 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040042 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000043 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
44 .default_value = 0,
Lev Walkinb9189732004-09-10 09:37:12 +000045 .name = "any"
46 },
47};
Lev Walkina7591b52014-10-12 18:37:35 -070048static const ber_tlv_tag_t asn_DEF_T1_tags_1[] = {
Lev Walkinb9189732004-09-10 09:37:12 +000049 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
50};
Lev Walkina7591b52014-10-12 18:37:35 -070051static const asn_TYPE_tag2member_t asn_MAP_T1_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -070052 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* i */
Lev Walkinb9189732004-09-10 09:37:12 +000053};
Lev Walkin59b176e2005-11-26 11:25:14 +000054static asn_SEQUENCE_specifics_t asn_SPC_T1_specs_1 = {
Lev Walkinb9189732004-09-10 09:37:12 +000055 sizeof(struct T1),
Lev Walkindfae9752004-09-29 13:19:37 +000056 offsetof(struct T1, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -070057 .tag2el = asn_MAP_T1_tag2el_1,
58 .tag2el_count = 1, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +000059 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb9189732004-09-10 09:37:12 +000060 -1, /* Start extensions */
61 -1 /* Stop extensions */
62};
Lev Walkindfae9752004-09-29 13:19:37 +000063asn_TYPE_descriptor_t asn_DEF_T1 = {
Lev Walkinb9189732004-09-10 09:37:12 +000064 "T1",
Lev Walkindc06f6b2004-10-20 15:50:55 +000065 "T1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080066 &asn_OP_SEQUENCE,
Lev Walkinb9189732004-09-10 09:37:12 +000067 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +000068 asn_DEF_T1_tags_1,
69 sizeof(asn_DEF_T1_tags_1)
70 /sizeof(asn_DEF_T1_tags_1[0]), /* 1 */
71 asn_DEF_T1_tags_1, /* Same as above */
72 sizeof(asn_DEF_T1_tags_1)
73 /sizeof(asn_DEF_T1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040074 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000075 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +000076 asn_MBR_T1_1,
Lev Walkinb9189732004-09-10 09:37:12 +000077 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +000078 &asn_SPC_T1_specs_1 /* Additional specs */
Lev Walkinb9189732004-09-10 09:37:12 +000079};
80
81
82/*** <<< INCLUDES [T2] >>> ***/
83
84#include <INTEGER.h>
85#include <ANY.h>
86#include <constr_SEQUENCE.h>
87
Lev Walkinb9189732004-09-10 09:37:12 +000088/*** <<< TYPE-DECLS [T2] >>> ***/
89
Lev Walkinb9189732004-09-10 09:37:12 +000090typedef struct T2 {
91 INTEGER_t i;
92 ANY_t *any /* OPTIONAL */;
93
94 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000095 asn_struct_ctx_t _asn_ctx;
Lev Walkinb9189732004-09-10 09:37:12 +000096} T2_t;
97
Lev Walkinc8285712005-03-04 22:18:20 +000098/*** <<< FUNC-DECLS [T2] >>> ***/
99
100extern asn_TYPE_descriptor_t asn_DEF_T2;
101
Lev Walkinb9189732004-09-10 09:37:12 +0000102/*** <<< STAT-DEFS [T2] >>> ***/
103
Lev Walkine0272aa2005-03-04 11:26:08 +0000104static asn_TYPE_member_t asn_MBR_T2_1[] = {
Lev Walkinb9189732004-09-10 09:37:12 +0000105 { ATF_NOFLAGS, 0, offsetof(struct T2, i),
106 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
107 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000108 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -0700109 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000110 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400111 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000112 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
113 .default_value = 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000114 .name = "i"
115 },
116 { ATF_POINTER, 1, offsetof(struct T2, any),
117 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
118 .tag_mode = +1, /* EXPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000119 .type = &asn_DEF_ANY,
Lev Walkin67a30122017-08-10 05:48:54 -0700120 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000121 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400122 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000123 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
124 .default_value = 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000125 .name = "any"
126 },
127};
Lev Walkina7591b52014-10-12 18:37:35 -0700128static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
Lev Walkinb9189732004-09-10 09:37:12 +0000129 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
130};
Lev Walkina7591b52014-10-12 18:37:35 -0700131static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700132 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i */
133 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* any */
Lev Walkinb9189732004-09-10 09:37:12 +0000134};
Lev Walkin59b176e2005-11-26 11:25:14 +0000135static asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1 = {
Lev Walkinb9189732004-09-10 09:37:12 +0000136 sizeof(struct T2),
Lev Walkindfae9752004-09-29 13:19:37 +0000137 offsetof(struct T2, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700138 .tag2el = asn_MAP_T2_tag2el_1,
139 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000140 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb9189732004-09-10 09:37:12 +0000141 -1, /* Start extensions */
142 -1 /* Stop extensions */
143};
Lev Walkindfae9752004-09-29 13:19:37 +0000144asn_TYPE_descriptor_t asn_DEF_T2 = {
Lev Walkinb9189732004-09-10 09:37:12 +0000145 "T2",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000146 "T2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800147 &asn_OP_SEQUENCE,
Lev Walkinb9189732004-09-10 09:37:12 +0000148 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000149 asn_DEF_T2_tags_1,
150 sizeof(asn_DEF_T2_tags_1)
151 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
152 asn_DEF_T2_tags_1, /* Same as above */
153 sizeof(asn_DEF_T2_tags_1)
154 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400155 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000156 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000157 asn_MBR_T2_1,
Lev Walkinb9189732004-09-10 09:37:12 +0000158 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000159 &asn_SPC_T2_specs_1 /* Additional specs */
Lev Walkinb9189732004-09-10 09:37:12 +0000160};
161
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000162
163/*** <<< INCLUDES [T3] >>> ***/
164
165#include <ANY.h>
166#include <constr_SEQUENCE.h>
167
168/*** <<< TYPE-DECLS [T3] >>> ***/
169
170typedef struct T3 {
171 ANY_t any1;
172 ANY_t any2;
173
174 /* Context for parsing across buffer boundaries */
175 asn_struct_ctx_t _asn_ctx;
176} T3_t;
177
178/*** <<< FUNC-DECLS [T3] >>> ***/
179
180extern asn_TYPE_descriptor_t asn_DEF_T3;
181
182/*** <<< STAT-DEFS [T3] >>> ***/
183
184static asn_TYPE_member_t asn_MBR_T3_1[] = {
185 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any1),
186 .tag = -1 /* Ambiguous tag (ANY?) */,
187 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000188 .type = &asn_DEF_ANY,
Lev Walkin67a30122017-08-10 05:48:54 -0700189 .type_selector = 0,
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000190 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400191 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000192 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
193 .default_value = 0,
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000194 .name = "any1"
195 },
196 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any2),
197 .tag = -1 /* Ambiguous tag (ANY?) */,
198 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000199 .type = &asn_DEF_ANY,
Lev Walkin67a30122017-08-10 05:48:54 -0700200 .type_selector = 0,
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000201 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400202 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000203 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
204 .default_value = 0,
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000205 .name = "any2"
206 },
207};
Lev Walkina7591b52014-10-12 18:37:35 -0700208static const ber_tlv_tag_t asn_DEF_T3_tags_1[] = {
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000209 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
210};
Lev Walkin59b176e2005-11-26 11:25:14 +0000211static asn_SEQUENCE_specifics_t asn_SPC_T3_specs_1 = {
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000212 sizeof(struct T3),
213 offsetof(struct T3, _asn_ctx),
214 0, /* No top level tags */
215 0, /* No tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000216 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000217 -1, /* Start extensions */
218 -1 /* Stop extensions */
219};
220asn_TYPE_descriptor_t asn_DEF_T3 = {
221 "T3",
222 "T3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800223 &asn_OP_SEQUENCE,
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000224 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000225 asn_DEF_T3_tags_1,
226 sizeof(asn_DEF_T3_tags_1)
227 /sizeof(asn_DEF_T3_tags_1[0]), /* 1 */
228 asn_DEF_T3_tags_1, /* Same as above */
229 sizeof(asn_DEF_T3_tags_1)
230 /sizeof(asn_DEF_T3_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 Walkinb3ee6a62005-05-27 21:58:41 +0000233 asn_MBR_T3_1,
234 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000235 &asn_SPC_T3_specs_1 /* Additional specs */
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000236};
237