blob: 281fd34e307d35ef4151e0c2b3d99e201f501d1d [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001
Lev Walkin5d5e6522004-08-11 05:22:22 +00002/*** <<< INCLUDES [T] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +00003
Lev Walkinf15320b2004-06-03 03:38:44 +00004#include <INTEGER.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00005#include <asn_SEQUENCE_OF.h>
Lev Walkin5d5e6522004-08-11 05:22:22 +00006#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00007#include <constr_SEQUENCE.h>
8
Lev Walkinc8285712005-03-04 22:18:20 +00009/*** <<< FWD-DECLS [T] >>> ***/
Lev Walkin5d5e6522004-08-11 05:22:22 +000010
Lev Walkinbf56d542005-03-04 23:50:56 +000011struct T2;
Lev Walkinf15320b2004-06-03 03:38:44 +000012
13/*** <<< TYPE-DECLS [T] >>> ***/
14
Lev Walkinf15320b2004-06-03 03:38:44 +000015typedef struct T {
Lev Walkin64d99e92005-01-30 18:34:07 +000016 INTEGER_t Int;
Lev Walkinf15320b2004-06-03 03:38:44 +000017 struct collection {
Lev Walkinc8285712005-03-04 22:18:20 +000018 A_SEQUENCE_OF(struct T2) list;
Lev Walkinf15320b2004-06-03 03:38:44 +000019
20 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000021 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +000022 } collection;
23
24 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000025 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +000026} T_t;
27
Lev Walkinc8285712005-03-04 22:18:20 +000028/*** <<< FUNC-DECLS [T] >>> ***/
29
30extern asn_TYPE_descriptor_t asn_DEF_T;
31
32/*** <<< POST-INCLUDE [T] >>> ***/
33
Lev Walkin22b5ed42006-09-13 02:51:20 +000034#include "T2.h"
Lev Walkinc8285712005-03-04 22:18:20 +000035
Lev Walkinf15320b2004-06-03 03:38:44 +000036/*** <<< STAT-DEFS [T] >>> ***/
37
Lev Walkine8318b82005-03-06 09:29:03 +000038static asn_TYPE_member_t asn_MBR_collection_3[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +000039 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000040 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
41 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000042 .type = &asn_DEF_T2,
Lev Walkinba58e1b2005-01-17 12:20:19 +000043 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040044 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000045 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
46 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000047 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +000048 },
Lev Walkin2e3055d2004-08-20 13:36:32 +000049};
Lev Walkina7591b52014-10-12 18:37:35 -070050static const ber_tlv_tag_t asn_DEF_collection_tags_3[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000051 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
52};
Lev Walkin59b176e2005-11-26 11:25:14 +000053static asn_SET_OF_specifics_t asn_SPC_collection_specs_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000054 sizeof(struct collection),
Lev Walkindfae9752004-09-29 13:19:37 +000055 offsetof(struct collection, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000056 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +000057};
Lev Walkind04430c2004-09-07 06:44:29 +000058static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +000059asn_TYPE_descriptor_t asn_DEF_collection_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000060 "collection",
Lev Walkindc06f6b2004-10-20 15:50:55 +000061 "collection",
Lev Walkina9cc46e2004-09-22 16:06:28 +000062 SEQUENCE_OF_free,
63 SEQUENCE_OF_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -070064 SEQUENCE_OF_compare,
Lev Walkin2e3055d2004-08-20 13:36:32 +000065 SEQUENCE_OF_constraint,
66 SEQUENCE_OF_decode_ber,
67 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +000068 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +000069 SEQUENCE_OF_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -070070 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +040071 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +000072 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +000073 asn_DEF_collection_tags_3,
74 sizeof(asn_DEF_collection_tags_3)
75 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
76 asn_DEF_collection_tags_3, /* Same as above */
77 sizeof(asn_DEF_collection_tags_3)
78 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040079 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000080 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +000081 asn_MBR_collection_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +000082 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000083 &asn_SPC_collection_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +000084};
85
Lev Walkine0272aa2005-03-04 11:26:08 +000086static asn_TYPE_member_t asn_MBR_T_1[] = {
Lev Walkin64d99e92005-01-30 18:34:07 +000087 { ATF_NOFLAGS, 0, offsetof(struct T, Int),
Lev Walkin2e3055d2004-08-20 13:36:32 +000088 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
89 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000090 .type = &asn_DEF_INTEGER,
Lev Walkinba58e1b2005-01-17 12:20:19 +000091 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040092 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000093 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
94 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000095 .name = "int"
96 },
Lev Walkincc93b0f2004-09-10 09:18:20 +000097 { ATF_NOFLAGS, 0, offsetof(struct T, collection),
Lev Walkin2e3055d2004-08-20 13:36:32 +000098 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
99 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000100 .type = &asn_DEF_collection_3,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000101 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400102 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000103 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
104 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000105 .name = "collection"
Lev Walkinf15320b2004-06-03 03:38:44 +0000106 },
107};
Lev Walkina7591b52014-10-12 18:37:35 -0700108static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000109 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
110};
Lev Walkina7591b52014-10-12 18:37:35 -0700111static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700112 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int */
113 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000114};
Lev Walkin59b176e2005-11-26 11:25:14 +0000115static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000116 sizeof(struct T),
Lev Walkindfae9752004-09-29 13:19:37 +0000117 offsetof(struct T, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000118 asn_MAP_T_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000119 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000120 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000121 -1, /* Start extensions */
122 -1 /* Stop extensions */
123};
Lev Walkindfae9752004-09-29 13:19:37 +0000124asn_TYPE_descriptor_t asn_DEF_T = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000125 "T",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000126 "T",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000127 SEQUENCE_free,
128 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700129 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000130 SEQUENCE_constraint,
131 SEQUENCE_decode_ber,
132 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000133 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000134 SEQUENCE_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 Walkinf15320b2004-06-03 03:38:44 +0000137 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000138 asn_DEF_T_tags_1,
139 sizeof(asn_DEF_T_tags_1)
140 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
141 asn_DEF_T_tags_1, /* Same as above */
142 sizeof(asn_DEF_T_tags_1)
143 /sizeof(asn_DEF_T_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_T_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000147 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000148 &asn_SPC_T_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000149};
150
151
Lev Walkin5d5e6522004-08-11 05:22:22 +0000152/*** <<< INCLUDES [T2] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000153
Lev Walkinf15320b2004-06-03 03:38:44 +0000154#include <BOOLEAN.h>
155#include <UTF8String.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000156#include <constr_SEQUENCE.h>
157
Lev Walkinf15320b2004-06-03 03:38:44 +0000158/*** <<< TYPE-DECLS [T2] >>> ***/
159
Lev Walkinf15320b2004-06-03 03:38:44 +0000160typedef struct T2 {
161 BOOLEAN_t flag;
162 UTF8String_t str;
163
164 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000165 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000166} T2_t;
167
Lev Walkinc8285712005-03-04 22:18:20 +0000168/*** <<< FUNC-DECLS [T2] >>> ***/
169
170extern asn_TYPE_descriptor_t asn_DEF_T2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800171extern asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1;
172extern asn_TYPE_member_t asn_MBR_T2_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000173
Lev Walkinf15320b2004-06-03 03:38:44 +0000174/*** <<< STAT-DEFS [T2] >>> ***/
175
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800176asn_TYPE_member_t asn_MBR_T2_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000177 { ATF_NOFLAGS, 0, offsetof(struct T2, flag),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000178 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
179 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000180 .type = &asn_DEF_BOOLEAN,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000181 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400182 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000183 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
184 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000185 .name = "flag"
Lev Walkinf15320b2004-06-03 03:38:44 +0000186 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000187 { ATF_NOFLAGS, 0, offsetof(struct T2, str),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000188 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
189 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000190 .type = &asn_DEF_UTF8String,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000191 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400192 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000193 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
194 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000195 .name = "str"
Lev Walkinf15320b2004-06-03 03:38:44 +0000196 },
197};
Lev Walkina7591b52014-10-12 18:37:35 -0700198static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000199 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
200};
Lev Walkina7591b52014-10-12 18:37:35 -0700201static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700202 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag */
203 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000204};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800205asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000206 sizeof(struct T2),
Lev Walkindfae9752004-09-29 13:19:37 +0000207 offsetof(struct T2, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000208 asn_MAP_T2_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000209 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000210 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000211 -1, /* Start extensions */
212 -1 /* Stop extensions */
213};
Lev Walkindfae9752004-09-29 13:19:37 +0000214asn_TYPE_descriptor_t asn_DEF_T2 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000215 "T2",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000216 "T2",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000217 SEQUENCE_free,
218 SEQUENCE_print,
Lev Walkincd2f48e2017-08-10 02:14:59 -0700219 SEQUENCE_compare,
Lev Walkinf15320b2004-06-03 03:38:44 +0000220 SEQUENCE_constraint,
221 SEQUENCE_decode_ber,
222 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000223 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000224 SEQUENCE_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700225 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400226 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000227 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000228 asn_DEF_T2_tags_1,
229 sizeof(asn_DEF_T2_tags_1)
230 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
231 asn_DEF_T2_tags_1, /* Same as above */
232 sizeof(asn_DEF_T2_tags_1)
233 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400234 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000235 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000236 asn_MBR_T2_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000237 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000238 &asn_SPC_T2_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000239};
240