blob: a67bcd78ae59d5b585e32bfed9347c420a2f05f4 [file] [log] [blame]
Lev Walkina9cc46e2004-09-22 16:06:28 +00001
2/*** <<< INCLUDES [Programming] >>> ***/
3
Lev Walkina9cc46e2004-09-22 16:06:28 +00004#include <asn_SEQUENCE_OF.h>
5#include <constr_SEQUENCE_OF.h>
6
Lev Walkinc8285712005-03-04 22:18:20 +00007/*** <<< FWD-DECLS [Programming] >>> ***/
Lev Walkina9cc46e2004-09-22 16:06:28 +00008
Lev Walkinbf56d542005-03-04 23:50:56 +00009struct Fault;
Lev Walkina9cc46e2004-09-22 16:06:28 +000010
11/*** <<< TYPE-DECLS [Programming] >>> ***/
12
Lev Walkina9cc46e2004-09-22 16:06:28 +000013typedef struct Programming {
Lev Walkinc8285712005-03-04 22:18:20 +000014 A_SEQUENCE_OF(struct Fault) list;
Lev Walkina9cc46e2004-09-22 16:06:28 +000015
16 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000017 asn_struct_ctx_t _asn_ctx;
Lev Walkina9cc46e2004-09-22 16:06:28 +000018} Programming_t;
19
Lev Walkinc8285712005-03-04 22:18:20 +000020/*** <<< FUNC-DECLS [Programming] >>> ***/
21
22extern asn_TYPE_descriptor_t asn_DEF_Programming;
23
24/*** <<< POST-INCLUDE [Programming] >>> ***/
25
Lev Walkin22b5ed42006-09-13 02:51:20 +000026#include "Fault.h"
Lev Walkinc8285712005-03-04 22:18:20 +000027
Lev Walkina9cc46e2004-09-22 16:06:28 +000028/*** <<< STAT-DEFS [Programming] >>> ***/
29
Lev Walkine0272aa2005-03-04 11:26:08 +000030static asn_TYPE_member_t asn_MBR_Programming_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +000031 { ATF_POINTER, 0, 0,
Lev Walkina9cc46e2004-09-22 16:06:28 +000032 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
33 .tag_mode = -1, /* IMPLICIT tag at current level */
Lev Walkinae7bf3f2005-08-29 10:31:14 +000034 .type = &asn_DEF_Fault,
Lev Walkinba58e1b2005-01-17 12:20:19 +000035 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040036 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000037 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
38 .default_value = 0,
Lev Walkina9cc46e2004-09-22 16:06:28 +000039 .name = ""
40 },
41};
Lev Walkina7591b52014-10-12 18:37:35 -070042static const ber_tlv_tag_t asn_DEF_Programming_tags_1[] = {
Lev Walkina9cc46e2004-09-22 16:06:28 +000043 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
44};
Lev Walkin59b176e2005-11-26 11:25:14 +000045static asn_SET_OF_specifics_t asn_SPC_Programming_specs_1 = {
Lev Walkina9cc46e2004-09-22 16:06:28 +000046 sizeof(struct Programming),
Lev Walkindfae9752004-09-29 13:19:37 +000047 offsetof(struct Programming, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000048 0, /* XER encoding is XMLDelimitedItemList */
49};
Lev Walkindfae9752004-09-29 13:19:37 +000050asn_TYPE_descriptor_t asn_DEF_Programming = {
Lev Walkina9cc46e2004-09-22 16:06:28 +000051 "Programming",
Lev Walkindc06f6b2004-10-20 15:50:55 +000052 "Programming",
Lev Walkina9cc46e2004-09-22 16:06:28 +000053 SEQUENCE_OF_free,
54 SEQUENCE_OF_print,
55 SEQUENCE_OF_constraint,
56 SEQUENCE_OF_decode_ber,
57 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +000058 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +000059 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -070060 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +040061 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +000062 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +000063 asn_DEF_Programming_tags_1,
64 sizeof(asn_DEF_Programming_tags_1)
65 /sizeof(asn_DEF_Programming_tags_1[0]), /* 1 */
66 asn_DEF_Programming_tags_1, /* Same as above */
67 sizeof(asn_DEF_Programming_tags_1)
68 /sizeof(asn_DEF_Programming_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040069 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000070 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +000071 asn_MBR_Programming_1,
Lev Walkina9cc46e2004-09-22 16:06:28 +000072 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000073 &asn_SPC_Programming_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +000074};
75
76
77/*** <<< INCLUDES [Fault] >>> ***/
78
Lev Walkina9cc46e2004-09-22 16:06:28 +000079#include <asn_SET_OF.h>
80#include <constr_SET_OF.h>
81
Lev Walkinc8285712005-03-04 22:18:20 +000082/*** <<< FWD-DECLS [Fault] >>> ***/
Lev Walkina9cc46e2004-09-22 16:06:28 +000083
Lev Walkinbf56d542005-03-04 23:50:56 +000084struct Error;
Lev Walkina9cc46e2004-09-22 16:06:28 +000085
86/*** <<< TYPE-DECLS [Fault] >>> ***/
87
Lev Walkina9cc46e2004-09-22 16:06:28 +000088typedef struct Fault {
Lev Walkinc8285712005-03-04 22:18:20 +000089 A_SET_OF(struct Error) list;
Lev Walkina9cc46e2004-09-22 16:06:28 +000090
91 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000092 asn_struct_ctx_t _asn_ctx;
Lev Walkina9cc46e2004-09-22 16:06:28 +000093} Fault_t;
94
Lev Walkinc8285712005-03-04 22:18:20 +000095/*** <<< FUNC-DECLS [Fault] >>> ***/
96
97extern asn_TYPE_descriptor_t asn_DEF_Fault;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080098extern asn_SET_OF_specifics_t asn_SPC_Fault_specs_1;
99extern asn_TYPE_member_t asn_MBR_Fault_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000100
101/*** <<< POST-INCLUDE [Fault] >>> ***/
102
Lev Walkin22b5ed42006-09-13 02:51:20 +0000103#include "Error.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000104
Lev Walkina9cc46e2004-09-22 16:06:28 +0000105/*** <<< STAT-DEFS [Fault] >>> ***/
106
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800107asn_TYPE_member_t asn_MBR_Fault_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000108 { ATF_POINTER, 0, 0,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000109 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
110 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000111 .type = &asn_DEF_Error,
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 Walkina9cc46e2004-09-22 16:06:28 +0000116 .name = ""
117 },
118};
Lev Walkina7591b52014-10-12 18:37:35 -0700119static const ber_tlv_tag_t asn_DEF_Fault_tags_1[] = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000120 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
121};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800122asn_SET_OF_specifics_t asn_SPC_Fault_specs_1 = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000123 sizeof(struct Fault),
Lev Walkindfae9752004-09-29 13:19:37 +0000124 offsetof(struct Fault, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000125 0, /* XER encoding is XMLDelimitedItemList */
126};
Lev Walkindfae9752004-09-29 13:19:37 +0000127asn_TYPE_descriptor_t asn_DEF_Fault = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000128 "Fault",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000129 "Fault",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000130 SET_OF_free,
131 SET_OF_print,
132 SET_OF_constraint,
133 SET_OF_decode_ber,
134 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000135 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000136 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700137 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400138 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000139 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000140 asn_DEF_Fault_tags_1,
141 sizeof(asn_DEF_Fault_tags_1)
142 /sizeof(asn_DEF_Fault_tags_1[0]), /* 1 */
143 asn_DEF_Fault_tags_1, /* Same as above */
144 sizeof(asn_DEF_Fault_tags_1)
145 /sizeof(asn_DEF_Fault_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_Fault_1,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000149 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000150 &asn_SPC_Fault_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000151};
152
153
154/*** <<< INCLUDES [Error] >>> ***/
155
156#include <constr_SEQUENCE.h>
157
Lev Walkina9cc46e2004-09-22 16:06:28 +0000158/*** <<< TYPE-DECLS [Error] >>> ***/
159
Lev Walkina9cc46e2004-09-22 16:06:28 +0000160typedef struct Error {
161 /*
162 * This type is extensible,
163 * possible extensions are below.
164 */
165
166 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000167 asn_struct_ctx_t _asn_ctx;
Lev Walkina9cc46e2004-09-22 16:06:28 +0000168} Error_t;
169
Lev Walkinc8285712005-03-04 22:18:20 +0000170/*** <<< FUNC-DECLS [Error] >>> ***/
171
172extern asn_TYPE_descriptor_t asn_DEF_Error;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800173extern asn_SEQUENCE_specifics_t asn_SPC_Error_specs_1;
Lev Walkinc8285712005-03-04 22:18:20 +0000174
Lev Walkina9cc46e2004-09-22 16:06:28 +0000175/*** <<< STAT-DEFS [Error] >>> ***/
176
Lev Walkina7591b52014-10-12 18:37:35 -0700177static const ber_tlv_tag_t asn_DEF_Error_tags_1[] = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000178 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
179};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800180asn_SEQUENCE_specifics_t asn_SPC_Error_specs_1 = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000181 sizeof(struct Error),
Lev Walkindfae9752004-09-29 13:19:37 +0000182 offsetof(struct Error, _asn_ctx),
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000183 0, /* No top level tags */
184 0, /* No tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000185 0, 0, 0, /* Optional elements (not needed) */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000186 -1, /* Start extensions */
187 -1 /* Stop extensions */
188};
Lev Walkindfae9752004-09-29 13:19:37 +0000189asn_TYPE_descriptor_t asn_DEF_Error = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000190 "Error",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000191 "Error",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000192 SEQUENCE_free,
193 SEQUENCE_print,
194 SEQUENCE_constraint,
195 SEQUENCE_decode_ber,
196 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000197 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000198 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700199 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400200 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000201 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000202 asn_DEF_Error_tags_1,
203 sizeof(asn_DEF_Error_tags_1)
204 /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */
205 asn_DEF_Error_tags_1, /* Same as above */
206 sizeof(asn_DEF_Error_tags_1)
207 /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400208 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000209 0, /* No PER visible constraints */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000210 0, 0, /* No members */
Lev Walkin59b176e2005-11-26 11:25:14 +0000211 &asn_SPC_Error_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000212};
213
Lev Walkin1eded352006-07-13 11:19:01 +0000214
215/*** <<< INCLUDES [SeqWithMandatory] >>> ***/
216
217#include <UTF8String.h>
218#include <asn_SEQUENCE_OF.h>
219#include <constr_SEQUENCE_OF.h>
220#include <constr_SEQUENCE.h>
221
222/*** <<< FWD-DECLS [SeqWithMandatory] >>> ***/
223
224struct Error;
225
226/*** <<< TYPE-DECLS [SeqWithMandatory] >>> ***/
227
228typedef struct SeqWithMandatory {
229 UTF8String_t someString;
230 struct seqOfMan {
231 A_SEQUENCE_OF(struct Error) list;
232
233 /* Context for parsing across buffer boundaries */
234 asn_struct_ctx_t _asn_ctx;
235 } seqOfMan;
236
237 /* Context for parsing across buffer boundaries */
238 asn_struct_ctx_t _asn_ctx;
239} SeqWithMandatory_t;
240
241/*** <<< FUNC-DECLS [SeqWithMandatory] >>> ***/
242
243extern asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory;
244
245/*** <<< POST-INCLUDE [SeqWithMandatory] >>> ***/
246
Lev Walkin22b5ed42006-09-13 02:51:20 +0000247#include "Error.h"
Lev Walkin1eded352006-07-13 11:19:01 +0000248
249/*** <<< STAT-DEFS [SeqWithMandatory] >>> ***/
250
251static asn_TYPE_member_t asn_MBR_seqOfMan_3[] = {
252 { ATF_POINTER, 0, 0,
253 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
254 .tag_mode = 0,
255 .type = &asn_DEF_Error,
256 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400257 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000258 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
259 .default_value = 0,
260 .name = ""
261 },
262};
Lev Walkina7591b52014-10-12 18:37:35 -0700263static const ber_tlv_tag_t asn_DEF_seqOfMan_tags_3[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000264 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
265 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
266};
267static asn_SET_OF_specifics_t asn_SPC_seqOfMan_specs_3 = {
268 sizeof(struct seqOfMan),
269 offsetof(struct seqOfMan, _asn_ctx),
270 0, /* XER encoding is XMLDelimitedItemList */
271};
272static /* Use -fall-defs-global to expose */
273asn_TYPE_descriptor_t asn_DEF_seqOfMan_3 = {
274 "seqOfMan",
275 "seqOfMan",
276 SEQUENCE_OF_free,
277 SEQUENCE_OF_print,
278 SEQUENCE_OF_constraint,
279 SEQUENCE_OF_decode_ber,
280 SEQUENCE_OF_encode_der,
281 SEQUENCE_OF_decode_xer,
282 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700283 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400284 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000285 0, /* Use generic outmost tag fetcher */
286 asn_DEF_seqOfMan_tags_3,
287 sizeof(asn_DEF_seqOfMan_tags_3)
288 /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */
289 asn_DEF_seqOfMan_tags_3, /* Same as above */
290 sizeof(asn_DEF_seqOfMan_tags_3)
291 /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400292 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000293 0, /* No PER visible constraints */
294 asn_MBR_seqOfMan_3,
295 1, /* Single element */
296 &asn_SPC_seqOfMan_specs_3 /* Additional specs */
297};
298
299static asn_TYPE_member_t asn_MBR_SeqWithMandatory_1[] = {
300 { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, someString),
301 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
302 .tag_mode = 0,
303 .type = &asn_DEF_UTF8String,
304 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400305 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000306 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
307 .default_value = 0,
308 .name = "someString"
309 },
310 { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, seqOfMan),
311 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000312 .tag_mode = 0,
Lev Walkin1eded352006-07-13 11:19:01 +0000313 .type = &asn_DEF_seqOfMan_3,
314 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400315 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000316 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
317 .default_value = 0,
318 .name = "seqOfMan"
319 },
320};
Lev Walkina7591b52014-10-12 18:37:35 -0700321static const ber_tlv_tag_t asn_DEF_SeqWithMandatory_tags_1[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000322 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
323};
Lev Walkina7591b52014-10-12 18:37:35 -0700324static const asn_TYPE_tag2member_t asn_MAP_SeqWithMandatory_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700325 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
326 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfMan */
Lev Walkin1eded352006-07-13 11:19:01 +0000327};
328static asn_SEQUENCE_specifics_t asn_SPC_SeqWithMandatory_specs_1 = {
329 sizeof(struct SeqWithMandatory),
330 offsetof(struct SeqWithMandatory, _asn_ctx),
331 asn_MAP_SeqWithMandatory_tag2el_1,
332 2, /* Count of tags in the map */
333 0, 0, 0, /* Optional elements (not needed) */
334 -1, /* Start extensions */
335 -1 /* Stop extensions */
336};
337asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory = {
338 "SeqWithMandatory",
339 "SeqWithMandatory",
340 SEQUENCE_free,
341 SEQUENCE_print,
342 SEQUENCE_constraint,
343 SEQUENCE_decode_ber,
344 SEQUENCE_encode_der,
345 SEQUENCE_decode_xer,
346 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700347 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400348 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000349 0, /* Use generic outmost tag fetcher */
350 asn_DEF_SeqWithMandatory_tags_1,
351 sizeof(asn_DEF_SeqWithMandatory_tags_1)
352 /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */
353 asn_DEF_SeqWithMandatory_tags_1, /* Same as above */
354 sizeof(asn_DEF_SeqWithMandatory_tags_1)
355 /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400356 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000357 0, /* No PER visible constraints */
358 asn_MBR_SeqWithMandatory_1,
359 2, /* Elements count */
360 &asn_SPC_SeqWithMandatory_specs_1 /* Additional specs */
361};
362
363
364/*** <<< INCLUDES [SeqWithOptional] >>> ***/
365
366#include <UTF8String.h>
367#include <asn_SEQUENCE_OF.h>
368#include <constr_SEQUENCE_OF.h>
369#include <constr_SEQUENCE.h>
370
371/*** <<< FWD-DECLS [SeqWithOptional] >>> ***/
372
373struct Error;
374
375/*** <<< TYPE-DECLS [SeqWithOptional] >>> ***/
376
377typedef struct SeqWithOptional {
378 UTF8String_t someString;
379 struct seqOfOpt {
380 A_SEQUENCE_OF(struct Error) list;
381
382 /* Context for parsing across buffer boundaries */
383 asn_struct_ctx_t _asn_ctx;
384 } *seqOfOpt;
385
386 /* Context for parsing across buffer boundaries */
387 asn_struct_ctx_t _asn_ctx;
388} SeqWithOptional_t;
389
390/*** <<< FUNC-DECLS [SeqWithOptional] >>> ***/
391
392extern asn_TYPE_descriptor_t asn_DEF_SeqWithOptional;
393
394/*** <<< POST-INCLUDE [SeqWithOptional] >>> ***/
395
Lev Walkin22b5ed42006-09-13 02:51:20 +0000396#include "Error.h"
Lev Walkin1eded352006-07-13 11:19:01 +0000397
398/*** <<< STAT-DEFS [SeqWithOptional] >>> ***/
399
400static asn_TYPE_member_t asn_MBR_seqOfOpt_3[] = {
401 { ATF_POINTER, 0, 0,
402 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
403 .tag_mode = 0,
404 .type = &asn_DEF_Error,
405 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400406 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000407 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
408 .default_value = 0,
409 .name = ""
410 },
411};
Lev Walkina7591b52014-10-12 18:37:35 -0700412static const ber_tlv_tag_t asn_DEF_seqOfOpt_tags_3[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000413 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
414 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
415};
416static asn_SET_OF_specifics_t asn_SPC_seqOfOpt_specs_3 = {
417 sizeof(struct seqOfOpt),
418 offsetof(struct seqOfOpt, _asn_ctx),
419 0, /* XER encoding is XMLDelimitedItemList */
420};
421static /* Use -fall-defs-global to expose */
422asn_TYPE_descriptor_t asn_DEF_seqOfOpt_3 = {
423 "seqOfOpt",
424 "seqOfOpt",
425 SEQUENCE_OF_free,
426 SEQUENCE_OF_print,
427 SEQUENCE_OF_constraint,
428 SEQUENCE_OF_decode_ber,
429 SEQUENCE_OF_encode_der,
430 SEQUENCE_OF_decode_xer,
431 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700432 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400433 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000434 0, /* Use generic outmost tag fetcher */
435 asn_DEF_seqOfOpt_tags_3,
436 sizeof(asn_DEF_seqOfOpt_tags_3)
437 /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */
438 asn_DEF_seqOfOpt_tags_3, /* Same as above */
439 sizeof(asn_DEF_seqOfOpt_tags_3)
440 /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400441 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000442 0, /* No PER visible constraints */
443 asn_MBR_seqOfOpt_3,
444 1, /* Single element */
445 &asn_SPC_seqOfOpt_specs_3 /* Additional specs */
446};
447
448static asn_TYPE_member_t asn_MBR_SeqWithOptional_1[] = {
449 { ATF_NOFLAGS, 0, offsetof(struct SeqWithOptional, someString),
450 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
451 .tag_mode = 0,
452 .type = &asn_DEF_UTF8String,
453 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400454 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000455 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
456 .default_value = 0,
457 .name = "someString"
458 },
459 { ATF_POINTER, 1, offsetof(struct SeqWithOptional, seqOfOpt),
460 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000461 .tag_mode = 0,
Lev Walkin1eded352006-07-13 11:19:01 +0000462 .type = &asn_DEF_seqOfOpt_3,
463 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400464 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000465 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
466 .default_value = 0,
467 .name = "seqOfOpt"
468 },
469};
Lev Walkina7591b52014-10-12 18:37:35 -0700470static const ber_tlv_tag_t asn_DEF_SeqWithOptional_tags_1[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000471 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
472};
Lev Walkina7591b52014-10-12 18:37:35 -0700473static const asn_TYPE_tag2member_t asn_MAP_SeqWithOptional_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700474 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
475 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfOpt */
Lev Walkin1eded352006-07-13 11:19:01 +0000476};
477static asn_SEQUENCE_specifics_t asn_SPC_SeqWithOptional_specs_1 = {
478 sizeof(struct SeqWithOptional),
479 offsetof(struct SeqWithOptional, _asn_ctx),
480 asn_MAP_SeqWithOptional_tag2el_1,
481 2, /* Count of tags in the map */
482 0, 0, 0, /* Optional elements (not needed) */
483 -1, /* Start extensions */
484 -1 /* Stop extensions */
485};
486asn_TYPE_descriptor_t asn_DEF_SeqWithOptional = {
487 "SeqWithOptional",
488 "SeqWithOptional",
489 SEQUENCE_free,
490 SEQUENCE_print,
491 SEQUENCE_constraint,
492 SEQUENCE_decode_ber,
493 SEQUENCE_encode_der,
494 SEQUENCE_decode_xer,
495 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700496 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400497 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000498 0, /* Use generic outmost tag fetcher */
499 asn_DEF_SeqWithOptional_tags_1,
500 sizeof(asn_DEF_SeqWithOptional_tags_1)
501 /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */
502 asn_DEF_SeqWithOptional_tags_1, /* Same as above */
503 sizeof(asn_DEF_SeqWithOptional_tags_1)
504 /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400505 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000506 0, /* No PER visible constraints */
507 asn_MBR_SeqWithOptional_1,
508 2, /* Elements count */
509 &asn_SPC_SeqWithOptional_specs_1 /* Additional specs */
510};
511