blob: 4b4c82d2f6c798faf591b509a6d575d6961b9ba2 [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 Walkin59b176e2005-11-26 11:25:14 +000044 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
45 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000046 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +000047 },
Lev Walkin2e3055d2004-08-20 13:36:32 +000048};
Lev Walkina7591b52014-10-12 18:37:35 -070049static const ber_tlv_tag_t asn_DEF_collection_tags_3[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000050 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
51};
Lev Walkin59b176e2005-11-26 11:25:14 +000052static asn_SET_OF_specifics_t asn_SPC_collection_specs_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000053 sizeof(struct collection),
Lev Walkindfae9752004-09-29 13:19:37 +000054 offsetof(struct collection, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000055 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +000056};
Lev Walkind04430c2004-09-07 06:44:29 +000057static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +000058asn_TYPE_descriptor_t asn_DEF_collection_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000059 "collection",
Lev Walkindc06f6b2004-10-20 15:50:55 +000060 "collection",
Lev Walkina9cc46e2004-09-22 16:06:28 +000061 SEQUENCE_OF_free,
62 SEQUENCE_OF_print,
Lev Walkin2e3055d2004-08-20 13:36:32 +000063 SEQUENCE_OF_constraint,
64 SEQUENCE_OF_decode_ber,
65 SEQUENCE_OF_encode_der,
Lev Walkinb2230802005-02-14 20:31:31 +000066 SEQUENCE_OF_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +000067 SEQUENCE_OF_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +000068 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -070069 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkin2e3055d2004-08-20 13:36:32 +000070 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +000071 asn_DEF_collection_tags_3,
72 sizeof(asn_DEF_collection_tags_3)
73 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
74 asn_DEF_collection_tags_3, /* Same as above */
75 sizeof(asn_DEF_collection_tags_3)
76 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
77 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +000078 asn_MBR_collection_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +000079 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000080 &asn_SPC_collection_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +000081};
82
Lev Walkine0272aa2005-03-04 11:26:08 +000083static asn_TYPE_member_t asn_MBR_T_1[] = {
Lev Walkin64d99e92005-01-30 18:34:07 +000084 { ATF_NOFLAGS, 0, offsetof(struct T, Int),
Lev Walkin2e3055d2004-08-20 13:36:32 +000085 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
86 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000087 .type = &asn_DEF_INTEGER,
Lev Walkinba58e1b2005-01-17 12:20:19 +000088 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000089 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
90 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000091 .name = "int"
92 },
Lev Walkincc93b0f2004-09-10 09:18:20 +000093 { ATF_NOFLAGS, 0, offsetof(struct T, collection),
Lev Walkin2e3055d2004-08-20 13:36:32 +000094 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
95 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000096 .type = &asn_DEF_collection_3,
Lev Walkinba58e1b2005-01-17 12:20:19 +000097 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +000098 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
99 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000100 .name = "collection"
Lev Walkinf15320b2004-06-03 03:38:44 +0000101 },
102};
Lev Walkina7591b52014-10-12 18:37:35 -0700103static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000104 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
105};
Lev Walkina7591b52014-10-12 18:37:35 -0700106static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700107 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int */
108 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000109};
Lev Walkin59b176e2005-11-26 11:25:14 +0000110static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000111 sizeof(struct T),
Lev Walkindfae9752004-09-29 13:19:37 +0000112 offsetof(struct T, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000113 asn_MAP_T_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000114 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000115 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000116 -1, /* Start extensions */
117 -1 /* Stop extensions */
118};
Lev Walkindfae9752004-09-29 13:19:37 +0000119asn_TYPE_descriptor_t asn_DEF_T = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000120 "T",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000121 "T",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000122 SEQUENCE_free,
123 SEQUENCE_print,
Lev Walkinf15320b2004-06-03 03:38:44 +0000124 SEQUENCE_constraint,
125 SEQUENCE_decode_ber,
126 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000127 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000128 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000129 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700130 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000131 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000132 asn_DEF_T_tags_1,
133 sizeof(asn_DEF_T_tags_1)
134 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
135 asn_DEF_T_tags_1, /* Same as above */
136 sizeof(asn_DEF_T_tags_1)
137 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
138 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000139 asn_MBR_T_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000140 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000141 &asn_SPC_T_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000142};
143
144
Lev Walkin5d5e6522004-08-11 05:22:22 +0000145/*** <<< INCLUDES [T2] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000146
Lev Walkinf15320b2004-06-03 03:38:44 +0000147#include <BOOLEAN.h>
148#include <UTF8String.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000149#include <constr_SEQUENCE.h>
150
Lev Walkinf15320b2004-06-03 03:38:44 +0000151/*** <<< TYPE-DECLS [T2] >>> ***/
152
Lev Walkinf15320b2004-06-03 03:38:44 +0000153typedef struct T2 {
154 BOOLEAN_t flag;
155 UTF8String_t str;
156
157 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000158 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000159} T2_t;
160
Lev Walkinc8285712005-03-04 22:18:20 +0000161/*** <<< FUNC-DECLS [T2] >>> ***/
162
163extern asn_TYPE_descriptor_t asn_DEF_T2;
164
Lev Walkinf15320b2004-06-03 03:38:44 +0000165/*** <<< STAT-DEFS [T2] >>> ***/
166
Lev Walkine0272aa2005-03-04 11:26:08 +0000167static asn_TYPE_member_t asn_MBR_T2_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000168 { ATF_NOFLAGS, 0, offsetof(struct T2, flag),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000169 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
170 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000171 .type = &asn_DEF_BOOLEAN,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000172 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000173 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
174 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000175 .name = "flag"
Lev Walkinf15320b2004-06-03 03:38:44 +0000176 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000177 { ATF_NOFLAGS, 0, offsetof(struct T2, str),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000178 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
179 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000180 .type = &asn_DEF_UTF8String,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000181 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkin59b176e2005-11-26 11:25:14 +0000182 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
183 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000184 .name = "str"
Lev Walkinf15320b2004-06-03 03:38:44 +0000185 },
186};
Lev Walkina7591b52014-10-12 18:37:35 -0700187static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000188 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
189};
Lev Walkina7591b52014-10-12 18:37:35 -0700190static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700191 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag */
192 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000193};
Lev Walkin59b176e2005-11-26 11:25:14 +0000194static asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000195 sizeof(struct T2),
Lev Walkindfae9752004-09-29 13:19:37 +0000196 offsetof(struct T2, _asn_ctx),
Lev Walkin59b176e2005-11-26 11:25:14 +0000197 asn_MAP_T2_tag2el_1,
Lev Walkincda6b8a2004-06-06 07:20:52 +0000198 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000199 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000200 -1, /* Start extensions */
201 -1 /* Stop extensions */
202};
Lev Walkindfae9752004-09-29 13:19:37 +0000203asn_TYPE_descriptor_t asn_DEF_T2 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000204 "T2",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000205 "T2",
Lev Walkina9cc46e2004-09-22 16:06:28 +0000206 SEQUENCE_free,
207 SEQUENCE_print,
Lev Walkinf15320b2004-06-03 03:38:44 +0000208 SEQUENCE_constraint,
209 SEQUENCE_decode_ber,
210 SEQUENCE_encode_der,
Lev Walkin61b40d82004-10-23 15:07:45 +0000211 SEQUENCE_decode_xer,
Lev Walkina9cc46e2004-09-22 16:06:28 +0000212 SEQUENCE_encode_xer,
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000213 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinba68c912017-07-06 07:52:39 -0700214 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinf15320b2004-06-03 03:38:44 +0000215 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000216 asn_DEF_T2_tags_1,
217 sizeof(asn_DEF_T2_tags_1)
218 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
219 asn_DEF_T2_tags_1, /* Same as above */
220 sizeof(asn_DEF_T2_tags_1)
221 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
222 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000223 asn_MBR_T2_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000224 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000225 &asn_SPC_T2_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000226};
227