blob: d71f1be08b4091e91951d5ba2480a886570836d6 [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,
Lev Walkincd2f48e2017-08-10 02:14:59 -070055 SEQUENCE_OF_compare,
Lev Walkina9cc46e2004-09-22 16:06:28 +000056 SEQUENCE_OF_constraint,
57 SEQUENCE_OF_decode_ber,
58 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +000059 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +000060 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -070061 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +040062 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +000063 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +000064 asn_DEF_Programming_tags_1,
65 sizeof(asn_DEF_Programming_tags_1)
66 /sizeof(asn_DEF_Programming_tags_1[0]), /* 1 */
67 asn_DEF_Programming_tags_1, /* Same as above */
68 sizeof(asn_DEF_Programming_tags_1)
69 /sizeof(asn_DEF_Programming_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040070 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000071 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +000072 asn_MBR_Programming_1,
Lev Walkina9cc46e2004-09-22 16:06:28 +000073 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000074 &asn_SPC_Programming_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +000075};
76
77
78/*** <<< INCLUDES [Fault] >>> ***/
79
Lev Walkina9cc46e2004-09-22 16:06:28 +000080#include <asn_SET_OF.h>
81#include <constr_SET_OF.h>
82
Lev Walkinc8285712005-03-04 22:18:20 +000083/*** <<< FWD-DECLS [Fault] >>> ***/
Lev Walkina9cc46e2004-09-22 16:06:28 +000084
Lev Walkinbf56d542005-03-04 23:50:56 +000085struct Error;
Lev Walkina9cc46e2004-09-22 16:06:28 +000086
87/*** <<< TYPE-DECLS [Fault] >>> ***/
88
Lev Walkina9cc46e2004-09-22 16:06:28 +000089typedef struct Fault {
Lev Walkinc8285712005-03-04 22:18:20 +000090 A_SET_OF(struct Error) list;
Lev Walkina9cc46e2004-09-22 16:06:28 +000091
92 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000093 asn_struct_ctx_t _asn_ctx;
Lev Walkina9cc46e2004-09-22 16:06:28 +000094} Fault_t;
95
Lev Walkinc8285712005-03-04 22:18:20 +000096/*** <<< FUNC-DECLS [Fault] >>> ***/
97
98extern asn_TYPE_descriptor_t asn_DEF_Fault;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080099extern asn_SET_OF_specifics_t asn_SPC_Fault_specs_1;
100extern asn_TYPE_member_t asn_MBR_Fault_1[1];
Lev Walkinc8285712005-03-04 22:18:20 +0000101
102/*** <<< POST-INCLUDE [Fault] >>> ***/
103
Lev Walkin22b5ed42006-09-13 02:51:20 +0000104#include "Error.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000105
Lev Walkina9cc46e2004-09-22 16:06:28 +0000106/*** <<< STAT-DEFS [Fault] >>> ***/
107
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800108asn_TYPE_member_t asn_MBR_Fault_1[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000109 { ATF_POINTER, 0, 0,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000110 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
111 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000112 .type = &asn_DEF_Error,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000113 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400114 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000115 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
116 .default_value = 0,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000117 .name = ""
118 },
119};
Lev Walkina7591b52014-10-12 18:37:35 -0700120static const ber_tlv_tag_t asn_DEF_Fault_tags_1[] = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000121 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
122};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800123asn_SET_OF_specifics_t asn_SPC_Fault_specs_1 = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000124 sizeof(struct Fault),
Lev Walkindfae9752004-09-29 13:19:37 +0000125 offsetof(struct Fault, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000126 0, /* XER encoding is XMLDelimitedItemList */
127};
Lev Walkindfae9752004-09-29 13:19:37 +0000128asn_TYPE_descriptor_t asn_DEF_Fault = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000129 "Fault",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000130 "Fault",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000131 SET_OF_free,
132 SET_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700133 SET_OF_compare,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000134 SET_OF_constraint,
135 SET_OF_decode_ber,
136 SET_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +0000137 SET_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000138 SET_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700139 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400140 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000141 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000142 asn_DEF_Fault_tags_1,
143 sizeof(asn_DEF_Fault_tags_1)
144 /sizeof(asn_DEF_Fault_tags_1[0]), /* 1 */
145 asn_DEF_Fault_tags_1, /* Same as above */
146 sizeof(asn_DEF_Fault_tags_1)
147 /sizeof(asn_DEF_Fault_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400148 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000149 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000150 asn_MBR_Fault_1,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000151 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000152 &asn_SPC_Fault_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000153};
154
155
156/*** <<< INCLUDES [Error] >>> ***/
157
158#include <constr_SEQUENCE.h>
159
Lev Walkina9cc46e2004-09-22 16:06:28 +0000160/*** <<< TYPE-DECLS [Error] >>> ***/
161
Lev Walkina9cc46e2004-09-22 16:06:28 +0000162typedef struct Error {
163 /*
164 * This type is extensible,
165 * possible extensions are below.
166 */
167
168 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000169 asn_struct_ctx_t _asn_ctx;
Lev Walkina9cc46e2004-09-22 16:06:28 +0000170} Error_t;
171
Lev Walkinc8285712005-03-04 22:18:20 +0000172/*** <<< FUNC-DECLS [Error] >>> ***/
173
174extern asn_TYPE_descriptor_t asn_DEF_Error;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800175extern asn_SEQUENCE_specifics_t asn_SPC_Error_specs_1;
Lev Walkinc8285712005-03-04 22:18:20 +0000176
Lev Walkina9cc46e2004-09-22 16:06:28 +0000177/*** <<< STAT-DEFS [Error] >>> ***/
178
Lev Walkina7591b52014-10-12 18:37:35 -0700179static const ber_tlv_tag_t asn_DEF_Error_tags_1[] = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000180 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
181};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800182asn_SEQUENCE_specifics_t asn_SPC_Error_specs_1 = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000183 sizeof(struct Error),
Lev Walkindfae9752004-09-29 13:19:37 +0000184 offsetof(struct Error, _asn_ctx),
Lev Walkinb3ee6a62005-05-27 21:58:41 +0000185 0, /* No top level tags */
186 0, /* No tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000187 0, 0, 0, /* Optional elements (not needed) */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000188 -1, /* Start extensions */
189 -1 /* Stop extensions */
190};
Lev Walkindfae9752004-09-29 13:19:37 +0000191asn_TYPE_descriptor_t asn_DEF_Error = {
Lev Walkina9cc46e2004-09-22 16:06:28 +0000192 "Error",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000193 "Error",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000194 SEQUENCE_free,
195 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700196 SEQUENCE_compare,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000197 SEQUENCE_constraint,
198 SEQUENCE_decode_ber,
199 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000200 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000201 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700202 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400203 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000204 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000205 asn_DEF_Error_tags_1,
206 sizeof(asn_DEF_Error_tags_1)
207 /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */
208 asn_DEF_Error_tags_1, /* Same as above */
209 sizeof(asn_DEF_Error_tags_1)
210 /sizeof(asn_DEF_Error_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400211 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000212 0, /* No PER visible constraints */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000213 0, 0, /* No members */
Lev Walkin59b176e2005-11-26 11:25:14 +0000214 &asn_SPC_Error_specs_1 /* Additional specs */
Lev Walkina9cc46e2004-09-22 16:06:28 +0000215};
216
Lev Walkin1eded352006-07-13 11:19:01 +0000217
218/*** <<< INCLUDES [SeqWithMandatory] >>> ***/
219
220#include <UTF8String.h>
221#include <asn_SEQUENCE_OF.h>
222#include <constr_SEQUENCE_OF.h>
223#include <constr_SEQUENCE.h>
224
225/*** <<< FWD-DECLS [SeqWithMandatory] >>> ***/
226
227struct Error;
228
229/*** <<< TYPE-DECLS [SeqWithMandatory] >>> ***/
230
231typedef struct SeqWithMandatory {
232 UTF8String_t someString;
233 struct seqOfMan {
234 A_SEQUENCE_OF(struct Error) list;
235
236 /* Context for parsing across buffer boundaries */
237 asn_struct_ctx_t _asn_ctx;
238 } seqOfMan;
239
240 /* Context for parsing across buffer boundaries */
241 asn_struct_ctx_t _asn_ctx;
242} SeqWithMandatory_t;
243
244/*** <<< FUNC-DECLS [SeqWithMandatory] >>> ***/
245
246extern asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory;
247
248/*** <<< POST-INCLUDE [SeqWithMandatory] >>> ***/
249
Lev Walkin22b5ed42006-09-13 02:51:20 +0000250#include "Error.h"
Lev Walkin1eded352006-07-13 11:19:01 +0000251
252/*** <<< STAT-DEFS [SeqWithMandatory] >>> ***/
253
254static asn_TYPE_member_t asn_MBR_seqOfMan_3[] = {
255 { ATF_POINTER, 0, 0,
256 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
257 .tag_mode = 0,
258 .type = &asn_DEF_Error,
259 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400260 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000261 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
262 .default_value = 0,
263 .name = ""
264 },
265};
Lev Walkina7591b52014-10-12 18:37:35 -0700266static const ber_tlv_tag_t asn_DEF_seqOfMan_tags_3[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000267 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
268 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
269};
270static asn_SET_OF_specifics_t asn_SPC_seqOfMan_specs_3 = {
271 sizeof(struct seqOfMan),
272 offsetof(struct seqOfMan, _asn_ctx),
273 0, /* XER encoding is XMLDelimitedItemList */
274};
275static /* Use -fall-defs-global to expose */
276asn_TYPE_descriptor_t asn_DEF_seqOfMan_3 = {
277 "seqOfMan",
278 "seqOfMan",
279 SEQUENCE_OF_free,
280 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700281 SEQUENCE_OF_compare,
Lev Walkin1eded352006-07-13 11:19:01 +0000282 SEQUENCE_OF_constraint,
283 SEQUENCE_OF_decode_ber,
284 SEQUENCE_OF_encode_der,
285 SEQUENCE_OF_decode_xer,
286 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700287 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400288 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000289 0, /* Use generic outmost tag fetcher */
290 asn_DEF_seqOfMan_tags_3,
291 sizeof(asn_DEF_seqOfMan_tags_3)
292 /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */
293 asn_DEF_seqOfMan_tags_3, /* Same as above */
294 sizeof(asn_DEF_seqOfMan_tags_3)
295 /sizeof(asn_DEF_seqOfMan_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400296 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000297 0, /* No PER visible constraints */
298 asn_MBR_seqOfMan_3,
299 1, /* Single element */
300 &asn_SPC_seqOfMan_specs_3 /* Additional specs */
301};
302
303static asn_TYPE_member_t asn_MBR_SeqWithMandatory_1[] = {
304 { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, someString),
305 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
306 .tag_mode = 0,
307 .type = &asn_DEF_UTF8String,
308 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400309 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000310 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
311 .default_value = 0,
312 .name = "someString"
313 },
314 { ATF_NOFLAGS, 0, offsetof(struct SeqWithMandatory, seqOfMan),
315 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000316 .tag_mode = 0,
Lev Walkin1eded352006-07-13 11:19:01 +0000317 .type = &asn_DEF_seqOfMan_3,
318 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400319 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000320 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
321 .default_value = 0,
322 .name = "seqOfMan"
323 },
324};
Lev Walkina7591b52014-10-12 18:37:35 -0700325static const ber_tlv_tag_t asn_DEF_SeqWithMandatory_tags_1[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000326 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
327};
Lev Walkina7591b52014-10-12 18:37:35 -0700328static const asn_TYPE_tag2member_t asn_MAP_SeqWithMandatory_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700329 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
330 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfMan */
Lev Walkin1eded352006-07-13 11:19:01 +0000331};
332static asn_SEQUENCE_specifics_t asn_SPC_SeqWithMandatory_specs_1 = {
333 sizeof(struct SeqWithMandatory),
334 offsetof(struct SeqWithMandatory, _asn_ctx),
335 asn_MAP_SeqWithMandatory_tag2el_1,
336 2, /* Count of tags in the map */
337 0, 0, 0, /* Optional elements (not needed) */
338 -1, /* Start extensions */
339 -1 /* Stop extensions */
340};
341asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory = {
342 "SeqWithMandatory",
343 "SeqWithMandatory",
344 SEQUENCE_free,
345 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700346 SEQUENCE_compare,
Lev Walkin1eded352006-07-13 11:19:01 +0000347 SEQUENCE_constraint,
348 SEQUENCE_decode_ber,
349 SEQUENCE_encode_der,
350 SEQUENCE_decode_xer,
351 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700352 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400353 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000354 0, /* Use generic outmost tag fetcher */
355 asn_DEF_SeqWithMandatory_tags_1,
356 sizeof(asn_DEF_SeqWithMandatory_tags_1)
357 /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */
358 asn_DEF_SeqWithMandatory_tags_1, /* Same as above */
359 sizeof(asn_DEF_SeqWithMandatory_tags_1)
360 /sizeof(asn_DEF_SeqWithMandatory_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400361 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000362 0, /* No PER visible constraints */
363 asn_MBR_SeqWithMandatory_1,
364 2, /* Elements count */
365 &asn_SPC_SeqWithMandatory_specs_1 /* Additional specs */
366};
367
368
369/*** <<< INCLUDES [SeqWithOptional] >>> ***/
370
371#include <UTF8String.h>
372#include <asn_SEQUENCE_OF.h>
373#include <constr_SEQUENCE_OF.h>
374#include <constr_SEQUENCE.h>
375
376/*** <<< FWD-DECLS [SeqWithOptional] >>> ***/
377
378struct Error;
379
380/*** <<< TYPE-DECLS [SeqWithOptional] >>> ***/
381
382typedef struct SeqWithOptional {
383 UTF8String_t someString;
384 struct seqOfOpt {
385 A_SEQUENCE_OF(struct Error) list;
386
387 /* Context for parsing across buffer boundaries */
388 asn_struct_ctx_t _asn_ctx;
389 } *seqOfOpt;
390
391 /* Context for parsing across buffer boundaries */
392 asn_struct_ctx_t _asn_ctx;
393} SeqWithOptional_t;
394
395/*** <<< FUNC-DECLS [SeqWithOptional] >>> ***/
396
397extern asn_TYPE_descriptor_t asn_DEF_SeqWithOptional;
398
399/*** <<< POST-INCLUDE [SeqWithOptional] >>> ***/
400
Lev Walkin22b5ed42006-09-13 02:51:20 +0000401#include "Error.h"
Lev Walkin1eded352006-07-13 11:19:01 +0000402
403/*** <<< STAT-DEFS [SeqWithOptional] >>> ***/
404
405static asn_TYPE_member_t asn_MBR_seqOfOpt_3[] = {
406 { ATF_POINTER, 0, 0,
407 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
408 .tag_mode = 0,
409 .type = &asn_DEF_Error,
410 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400411 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000412 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
413 .default_value = 0,
414 .name = ""
415 },
416};
Lev Walkina7591b52014-10-12 18:37:35 -0700417static const ber_tlv_tag_t asn_DEF_seqOfOpt_tags_3[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000418 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
419 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
420};
421static asn_SET_OF_specifics_t asn_SPC_seqOfOpt_specs_3 = {
422 sizeof(struct seqOfOpt),
423 offsetof(struct seqOfOpt, _asn_ctx),
424 0, /* XER encoding is XMLDelimitedItemList */
425};
426static /* Use -fall-defs-global to expose */
427asn_TYPE_descriptor_t asn_DEF_seqOfOpt_3 = {
428 "seqOfOpt",
429 "seqOfOpt",
430 SEQUENCE_OF_free,
431 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700432 SEQUENCE_OF_compare,
Lev Walkin1eded352006-07-13 11:19:01 +0000433 SEQUENCE_OF_constraint,
434 SEQUENCE_OF_decode_ber,
435 SEQUENCE_OF_encode_der,
436 SEQUENCE_OF_decode_xer,
437 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700438 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400439 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000440 0, /* Use generic outmost tag fetcher */
441 asn_DEF_seqOfOpt_tags_3,
442 sizeof(asn_DEF_seqOfOpt_tags_3)
443 /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */
444 asn_DEF_seqOfOpt_tags_3, /* Same as above */
445 sizeof(asn_DEF_seqOfOpt_tags_3)
446 /sizeof(asn_DEF_seqOfOpt_tags_3[0]), /* 2 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400447 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000448 0, /* No PER visible constraints */
449 asn_MBR_seqOfOpt_3,
450 1, /* Single element */
451 &asn_SPC_seqOfOpt_specs_3 /* Additional specs */
452};
453
454static asn_TYPE_member_t asn_MBR_SeqWithOptional_1[] = {
455 { ATF_NOFLAGS, 0, offsetof(struct SeqWithOptional, someString),
456 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
457 .tag_mode = 0,
458 .type = &asn_DEF_UTF8String,
459 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400460 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000461 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
462 .default_value = 0,
463 .name = "someString"
464 },
465 { ATF_POINTER, 1, offsetof(struct SeqWithOptional, seqOfOpt),
466 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
Lev Walkin9ab21b82006-10-19 02:46:01 +0000467 .tag_mode = 0,
Lev Walkin1eded352006-07-13 11:19:01 +0000468 .type = &asn_DEF_seqOfOpt_3,
469 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400470 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin1eded352006-07-13 11:19:01 +0000471 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
472 .default_value = 0,
473 .name = "seqOfOpt"
474 },
475};
Lev Walkina7591b52014-10-12 18:37:35 -0700476static const ber_tlv_tag_t asn_DEF_SeqWithOptional_tags_1[] = {
Lev Walkin1eded352006-07-13 11:19:01 +0000477 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
478};
Lev Walkina7591b52014-10-12 18:37:35 -0700479static const asn_TYPE_tag2member_t asn_MAP_SeqWithOptional_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700480 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 0, 0, 0 }, /* someString */
481 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* seqOfOpt */
Lev Walkin1eded352006-07-13 11:19:01 +0000482};
483static asn_SEQUENCE_specifics_t asn_SPC_SeqWithOptional_specs_1 = {
484 sizeof(struct SeqWithOptional),
485 offsetof(struct SeqWithOptional, _asn_ctx),
486 asn_MAP_SeqWithOptional_tag2el_1,
487 2, /* Count of tags in the map */
488 0, 0, 0, /* Optional elements (not needed) */
489 -1, /* Start extensions */
490 -1 /* Stop extensions */
491};
492asn_TYPE_descriptor_t asn_DEF_SeqWithOptional = {
493 "SeqWithOptional",
494 "SeqWithOptional",
495 SEQUENCE_free,
496 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700497 SEQUENCE_compare,
Lev Walkin1eded352006-07-13 11:19:01 +0000498 SEQUENCE_constraint,
499 SEQUENCE_decode_ber,
500 SEQUENCE_encode_der,
501 SEQUENCE_decode_xer,
502 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700503 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400504 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin1eded352006-07-13 11:19:01 +0000505 0, /* Use generic outmost tag fetcher */
506 asn_DEF_SeqWithOptional_tags_1,
507 sizeof(asn_DEF_SeqWithOptional_tags_1)
508 /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */
509 asn_DEF_SeqWithOptional_tags_1, /* Same as above */
510 sizeof(asn_DEF_SeqWithOptional_tags_1)
511 /sizeof(asn_DEF_SeqWithOptional_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400512 0, /* No OER visible constraints */
Lev Walkin1eded352006-07-13 11:19:01 +0000513 0, /* No PER visible constraints */
514 asn_MBR_SeqWithOptional_1,
515 2, /* Elements count */
516 &asn_SPC_SeqWithOptional_specs_1 /* Additional specs */
517};
518