blob: 447668b2683378f135b4c4f6e72afd5ec8ed6185 [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;
98
99/*** <<< POST-INCLUDE [Fault] >>> ***/
100
Lev Walkin22b5ed42006-09-13 02:51:20 +0000101#include "Error.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000102
Lev Walkina9cc46e2004-09-22 16:06:28 +0000103/*** <<< STAT-DEFS [Fault] >>> ***/
104
Lev Walkine0272aa2005-03-04 11:26:08 +0000105static asn_TYPE_member_t asn_MBR_Fault_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000106 { ATF_POINTER, 0, 0,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000107 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
108 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000109 .type = &asn_DEF_Error,
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 Walkina9cc46e2004-09-22 16:06:28 +0000114 .name = ""
115 },
116};
Lev Walkina7591b52014-10-12 18:37:35 -0700117static const ber_tlv_tag_t asn_DEF_Fault_tags_1[] = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000118 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
119};
Lev Walkin59b176e2005-11-26 11:25:14 +0000120static asn_SET_OF_specifics_t asn_SPC_Fault_specs_1 = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000121 sizeof(struct Fault),
Lev Walkindfae9752004-09-29 13:19:37 +0000122 offsetof(struct Fault, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000123 0, /* XER encoding is XMLDelimitedItemList */
124};
Lev Walkindfae9752004-09-29 13:19:37 +0000125asn_TYPE_descriptor_t asn_DEF_Fault = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000126 "Fault",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000127 "Fault",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000128 SET_OF_free,
129 SET_OF_print,
130 SET_OF_constraint,
131 SET_OF_decode_ber,
132 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000133 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000134 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700135 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400136 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000137 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000138 asn_DEF_Fault_tags_1,
139 sizeof(asn_DEF_Fault_tags_1)
140 /sizeof(asn_DEF_Fault_tags_1[0]), /* 1 */
141 asn_DEF_Fault_tags_1, /* Same as above */
142 sizeof(asn_DEF_Fault_tags_1)
143 /sizeof(asn_DEF_Fault_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400144 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000145 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000146 asn_MBR_Fault_1,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000147 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000148 &asn_SPC_Fault_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000149};
150
151
152/*** <<< INCLUDES [Error] >>> ***/
153
154#include <constr_SEQUENCE.h>
155
Lev Walkina9cc46e2004-09-22 16:06:28 +0000156/*** <<< TYPE-DECLS [Error] >>> ***/
157
Lev Walkina9cc46e2004-09-22 16:06:28 +0000158typedef struct Error {
159 /*
160 * This type is extensible,
161 * possible extensions are below.
162 */
163
164 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000165 asn_struct_ctx_t _asn_ctx;
Lev Walkina9cc46e2004-09-22 16:06:28 +0000166} Error_t;
167
Lev Walkinc8285712005-03-04 22:18:20 +0000168/*** <<< FUNC-DECLS [Error] >>> ***/
169
170extern asn_TYPE_descriptor_t asn_DEF_Error;
171
Lev Walkina9cc46e2004-09-22 16:06:28 +0000172/*** <<< STAT-DEFS [Error] >>> ***/
173
Lev Walkina7591b52014-10-12 18:37:35 -0700174static const ber_tlv_tag_t asn_DEF_Error_tags_1[] = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000175 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
176};
Lev Walkin59b176e2005-11-26 11:25:14 +0000177static asn_SEQUENCE_specifics_t asn_SPC_Error_specs_1 = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000178 sizeof(struct Error),
Lev Walkindfae9752004-09-29 13:19:37 +0000179 offsetof(struct Error, _asn_ctx),
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000180 0, /* No top level tags */
181 0, /* No tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000182 0, 0, 0, /* Optional elements (not needed) */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000183 -1, /* Start extensions */
184 -1 /* Stop extensions */
185};
Lev Walkindfae9752004-09-29 13:19:37 +0000186asn_TYPE_descriptor_t asn_DEF_Error = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000187 "Error",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000188 "Error",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000189 SEQUENCE_free,
190 SEQUENCE_print,
191 SEQUENCE_constraint,
192 SEQUENCE_decode_ber,
193 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000194 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000195 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700196 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400197 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000198 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000199 asn_DEF_Error_tags_1,
200 sizeof(asn_DEF_Error_tags_1)
201 /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */
202 asn_DEF_Error_tags_1, /* Same as above */
203 sizeof(asn_DEF_Error_tags_1)
204 /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400205 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000206 0, /* No PER visible constraints */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000207 0, 0, /* No members */
Lev Walkin59b176e2005-11-26 11:25:14 +0000208 &asn_SPC_Error_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000209};
210
Lev Walkin1eded352006-07-13 11:19:01 +0000211
212/*** <<< INCLUDES [SeqWithMandatory] >>> ***/
213
214#include <UTF8String.h>
215#include <asn_SEQUENCE_OF.h>
216#include <constr_SEQUENCE_OF.h>
217#include <constr_SEQUENCE.h>
218
219/*** <<< FWD-DECLS [SeqWithMandatory] >>> ***/
220
221struct Error;
222
223/*** <<< TYPE-DECLS [SeqWithMandatory] >>> ***/
224
225typedef struct SeqWithMandatory {
226 UTF8String_t someString;
227 struct seqOfMan {
228 A_SEQUENCE_OF(struct Error) list;
229
230 /* Context for parsing across buffer boundaries */
231 asn_struct_ctx_t _asn_ctx;
232 } seqOfMan;
233
234 /* Context for parsing across buffer boundaries */
235 asn_struct_ctx_t _asn_ctx;
236} SeqWithMandatory_t;
237
238/*** <<< FUNC-DECLS [SeqWithMandatory] >>> ***/
239
240extern asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory;
241
242/*** <<< POST-INCLUDE [SeqWithMandatory] >>> ***/
243
Lev Walkin22b5ed42006-09-13 02:51:20 +0000244#include "Error.h"
Lev Walkin1eded352006-07-13 11:19:01 +0000245
246/*** <<< STAT-DEFS [SeqWithMandatory] >>> ***/
247
248static asn_TYPE_member_t asn_MBR_seqOfMan_3[] = {
249 { ATF_POINTER, 0, 0,
250 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
251 .tag_mode = 0,
252 .type = &asn_DEF_Error,
253 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400254 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000255 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
256 .default_value = 0,
257 .name = ""
258 },
259};
Lev Walkina7591b52014-10-12 18:37:35 -0700260static const ber_tlv_tag_t asn_DEF_seqOfMan_tags_3[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000261 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
262 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
263};
264static asn_SET_OF_specifics_t asn_SPC_seqOfMan_specs_3 = {
265 sizeof(struct seqOfMan),
266 offsetof(struct seqOfMan, _asn_ctx),
267 0, /* XER encoding is XMLDelimitedItemList */
268};
269static /* Use -fall-defs-global to expose */
270asn_TYPE_descriptor_t asn_DEF_seqOfMan_3 = {
271 "seqOfMan",
272 "seqOfMan",
273 SEQUENCE_OF_free,
274 SEQUENCE_OF_print,
275 SEQUENCE_OF_constraint,
276 SEQUENCE_OF_decode_ber,
277 SEQUENCE_OF_encode_der,
278 SEQUENCE_OF_decode_xer,
279 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700280 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400281 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000282 0, /* Use generic outmost tag fetcher */
283 asn_DEF_seqOfMan_tags_3,
284 sizeof(asn_DEF_seqOfMan_tags_3)
285 /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */
286 asn_DEF_seqOfMan_tags_3, /* Same as above */
287 sizeof(asn_DEF_seqOfMan_tags_3)
288 /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400289 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000290 0, /* No PER visible constraints */
291 asn_MBR_seqOfMan_3,
292 1, /* Single element */
293 &asn_SPC_seqOfMan_specs_3 /* Additional specs */
294};
295
296static asn_TYPE_member_t asn_MBR_SeqWithMandatory_1[] = {
297 { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, someString),
298 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
299 .tag_mode = 0,
300 .type = &asn_DEF_UTF8String,
301 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400302 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000303 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
304 .default_value = 0,
305 .name = "someString"
306 },
307 { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, seqOfMan),
308 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000309 .tag_mode = 0,
Lev Walkin1eded352006-07-13 11:19:01 +0000310 .type = &asn_DEF_seqOfMan_3,
311 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400312 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000313 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
314 .default_value = 0,
315 .name = "seqOfMan"
316 },
317};
Lev Walkina7591b52014-10-12 18:37:35 -0700318static const ber_tlv_tag_t asn_DEF_SeqWithMandatory_tags_1[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000319 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
320};
Lev Walkina7591b52014-10-12 18:37:35 -0700321static const asn_TYPE_tag2member_t asn_MAP_SeqWithMandatory_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700322 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
323 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfMan */
Lev Walkin1eded352006-07-13 11:19:01 +0000324};
325static asn_SEQUENCE_specifics_t asn_SPC_SeqWithMandatory_specs_1 = {
326 sizeof(struct SeqWithMandatory),
327 offsetof(struct SeqWithMandatory, _asn_ctx),
328 asn_MAP_SeqWithMandatory_tag2el_1,
329 2, /* Count of tags in the map */
330 0, 0, 0, /* Optional elements (not needed) */
331 -1, /* Start extensions */
332 -1 /* Stop extensions */
333};
334asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory = {
335 "SeqWithMandatory",
336 "SeqWithMandatory",
337 SEQUENCE_free,
338 SEQUENCE_print,
339 SEQUENCE_constraint,
340 SEQUENCE_decode_ber,
341 SEQUENCE_encode_der,
342 SEQUENCE_decode_xer,
343 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700344 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400345 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000346 0, /* Use generic outmost tag fetcher */
347 asn_DEF_SeqWithMandatory_tags_1,
348 sizeof(asn_DEF_SeqWithMandatory_tags_1)
349 /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */
350 asn_DEF_SeqWithMandatory_tags_1, /* Same as above */
351 sizeof(asn_DEF_SeqWithMandatory_tags_1)
352 /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400353 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000354 0, /* No PER visible constraints */
355 asn_MBR_SeqWithMandatory_1,
356 2, /* Elements count */
357 &asn_SPC_SeqWithMandatory_specs_1 /* Additional specs */
358};
359
360
361/*** <<< INCLUDES [SeqWithOptional] >>> ***/
362
363#include <UTF8String.h>
364#include <asn_SEQUENCE_OF.h>
365#include <constr_SEQUENCE_OF.h>
366#include <constr_SEQUENCE.h>
367
368/*** <<< FWD-DECLS [SeqWithOptional] >>> ***/
369
370struct Error;
371
372/*** <<< TYPE-DECLS [SeqWithOptional] >>> ***/
373
374typedef struct SeqWithOptional {
375 UTF8String_t someString;
376 struct seqOfOpt {
377 A_SEQUENCE_OF(struct Error) list;
378
379 /* Context for parsing across buffer boundaries */
380 asn_struct_ctx_t _asn_ctx;
381 } *seqOfOpt;
382
383 /* Context for parsing across buffer boundaries */
384 asn_struct_ctx_t _asn_ctx;
385} SeqWithOptional_t;
386
387/*** <<< FUNC-DECLS [SeqWithOptional] >>> ***/
388
389extern asn_TYPE_descriptor_t asn_DEF_SeqWithOptional;
390
391/*** <<< POST-INCLUDE [SeqWithOptional] >>> ***/
392
Lev Walkin22b5ed42006-09-13 02:51:20 +0000393#include "Error.h"
Lev Walkin1eded352006-07-13 11:19:01 +0000394
395/*** <<< STAT-DEFS [SeqWithOptional] >>> ***/
396
397static asn_TYPE_member_t asn_MBR_seqOfOpt_3[] = {
398 { ATF_POINTER, 0, 0,
399 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
400 .tag_mode = 0,
401 .type = &asn_DEF_Error,
402 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400403 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000404 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
405 .default_value = 0,
406 .name = ""
407 },
408};
Lev Walkina7591b52014-10-12 18:37:35 -0700409static const ber_tlv_tag_t asn_DEF_seqOfOpt_tags_3[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000410 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
411 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
412};
413static asn_SET_OF_specifics_t asn_SPC_seqOfOpt_specs_3 = {
414 sizeof(struct seqOfOpt),
415 offsetof(struct seqOfOpt, _asn_ctx),
416 0, /* XER encoding is XMLDelimitedItemList */
417};
418static /* Use -fall-defs-global to expose */
419asn_TYPE_descriptor_t asn_DEF_seqOfOpt_3 = {
420 "seqOfOpt",
421 "seqOfOpt",
422 SEQUENCE_OF_free,
423 SEQUENCE_OF_print,
424 SEQUENCE_OF_constraint,
425 SEQUENCE_OF_decode_ber,
426 SEQUENCE_OF_encode_der,
427 SEQUENCE_OF_decode_xer,
428 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700429 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400430 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000431 0, /* Use generic outmost tag fetcher */
432 asn_DEF_seqOfOpt_tags_3,
433 sizeof(asn_DEF_seqOfOpt_tags_3)
434 /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */
435 asn_DEF_seqOfOpt_tags_3, /* Same as above */
436 sizeof(asn_DEF_seqOfOpt_tags_3)
437 /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400438 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000439 0, /* No PER visible constraints */
440 asn_MBR_seqOfOpt_3,
441 1, /* Single element */
442 &asn_SPC_seqOfOpt_specs_3 /* Additional specs */
443};
444
445static asn_TYPE_member_t asn_MBR_SeqWithOptional_1[] = {
446 { ATF_NOFLAGS, 0, offsetof(struct SeqWithOptional, someString),
447 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
448 .tag_mode = 0,
449 .type = &asn_DEF_UTF8String,
450 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400451 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000452 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
453 .default_value = 0,
454 .name = "someString"
455 },
456 { ATF_POINTER, 1, offsetof(struct SeqWithOptional, seqOfOpt),
457 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000458 .tag_mode = 0,
Lev Walkin1eded352006-07-13 11:19:01 +0000459 .type = &asn_DEF_seqOfOpt_3,
460 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400461 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000462 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
463 .default_value = 0,
464 .name = "seqOfOpt"
465 },
466};
Lev Walkina7591b52014-10-12 18:37:35 -0700467static const ber_tlv_tag_t asn_DEF_SeqWithOptional_tags_1[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000468 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
469};
Lev Walkina7591b52014-10-12 18:37:35 -0700470static const asn_TYPE_tag2member_t asn_MAP_SeqWithOptional_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700471 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
472 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfOpt */
Lev Walkin1eded352006-07-13 11:19:01 +0000473};
474static asn_SEQUENCE_specifics_t asn_SPC_SeqWithOptional_specs_1 = {
475 sizeof(struct SeqWithOptional),
476 offsetof(struct SeqWithOptional, _asn_ctx),
477 asn_MAP_SeqWithOptional_tag2el_1,
478 2, /* Count of tags in the map */
479 0, 0, 0, /* Optional elements (not needed) */
480 -1, /* Start extensions */
481 -1 /* Stop extensions */
482};
483asn_TYPE_descriptor_t asn_DEF_SeqWithOptional = {
484 "SeqWithOptional",
485 "SeqWithOptional",
486 SEQUENCE_free,
487 SEQUENCE_print,
488 SEQUENCE_constraint,
489 SEQUENCE_decode_ber,
490 SEQUENCE_encode_der,
491 SEQUENCE_decode_xer,
492 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700493 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400494 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000495 0, /* Use generic outmost tag fetcher */
496 asn_DEF_SeqWithOptional_tags_1,
497 sizeof(asn_DEF_SeqWithOptional_tags_1)
498 /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */
499 asn_DEF_SeqWithOptional_tags_1, /* Same as above */
500 sizeof(asn_DEF_SeqWithOptional_tags_1)
501 /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400502 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000503 0, /* No PER visible constraints */
504 asn_MBR_SeqWithOptional_1,
505 2, /* Elements count */
506 &asn_SPC_SeqWithOptional_specs_1 /* Additional specs */
507};
508