blob: c53551509cb4481c9f03ae84b1f8a099f8aaef69 [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 Walkin67a30122017-08-10 05:48:54 -070043 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070044 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070045 0, 0, /* No default value */
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",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080061 &asn_OP_SEQUENCE_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +000062 asn_DEF_collection_tags_3,
63 sizeof(asn_DEF_collection_tags_3)
64 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
65 asn_DEF_collection_tags_3, /* Same as above */
66 sizeof(asn_DEF_collection_tags_3)
67 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -070068 { 0, 0, SEQUENCE_OF_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +000069 asn_MBR_collection_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +000070 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000071 &asn_SPC_collection_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +000072};
73
Lev Walkine0272aa2005-03-04 11:26:08 +000074static asn_TYPE_member_t asn_MBR_T_1[] = {
Lev Walkin64d99e92005-01-30 18:34:07 +000075 { ATF_NOFLAGS, 0, offsetof(struct T, Int),
Lev Walkin2e3055d2004-08-20 13:36:32 +000076 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
77 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000078 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -070079 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070080 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070081 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +000082 .name = "int"
83 },
Lev Walkincc93b0f2004-09-10 09:18:20 +000084 { ATF_NOFLAGS, 0, offsetof(struct T, collection),
Lev Walkin2e3055d2004-08-20 13:36:32 +000085 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
86 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000087 .type = &asn_DEF_collection_3,
Lev Walkin67a30122017-08-10 05:48:54 -070088 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070089 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070090 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +000091 .name = "collection"
Lev Walkinf15320b2004-06-03 03:38:44 +000092 },
93};
Lev Walkina7591b52014-10-12 18:37:35 -070094static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +000095 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
96};
Lev Walkina7591b52014-10-12 18:37:35 -070097static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -070098 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int */
99 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000100};
Lev Walkin59b176e2005-11-26 11:25:14 +0000101static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000102 sizeof(struct T),
Lev Walkindfae9752004-09-29 13:19:37 +0000103 offsetof(struct T, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700104 .tag2el = asn_MAP_T_tag2el_1,
105 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000106 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700107 -1, /* First extension addition */
Lev Walkinf15320b2004-06-03 03:38:44 +0000108};
Lev Walkindfae9752004-09-29 13:19:37 +0000109asn_TYPE_descriptor_t asn_DEF_T = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000110 "T",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000111 "T",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800112 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000113 asn_DEF_T_tags_1,
114 sizeof(asn_DEF_T_tags_1)
115 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
116 asn_DEF_T_tags_1, /* Same as above */
117 sizeof(asn_DEF_T_tags_1)
118 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700119 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000120 asn_MBR_T_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000121 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000122 &asn_SPC_T_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000123};
124
125
Lev Walkin5d5e6522004-08-11 05:22:22 +0000126/*** <<< INCLUDES [T2] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000127
Lev Walkinf15320b2004-06-03 03:38:44 +0000128#include <BOOLEAN.h>
129#include <UTF8String.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000130#include <constr_SEQUENCE.h>
131
Lev Walkinf15320b2004-06-03 03:38:44 +0000132/*** <<< TYPE-DECLS [T2] >>> ***/
133
Lev Walkinf15320b2004-06-03 03:38:44 +0000134typedef struct T2 {
135 BOOLEAN_t flag;
136 UTF8String_t str;
137
138 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000139 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000140} T2_t;
141
Lev Walkinc8285712005-03-04 22:18:20 +0000142/*** <<< FUNC-DECLS [T2] >>> ***/
143
144extern asn_TYPE_descriptor_t asn_DEF_T2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800145extern asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1;
146extern asn_TYPE_member_t asn_MBR_T2_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000147
Lev Walkinf15320b2004-06-03 03:38:44 +0000148/*** <<< STAT-DEFS [T2] >>> ***/
149
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800150asn_TYPE_member_t asn_MBR_T2_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000151 { ATF_NOFLAGS, 0, offsetof(struct T2, flag),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000152 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
153 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000154 .type = &asn_DEF_BOOLEAN,
Lev Walkin67a30122017-08-10 05:48:54 -0700155 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700156 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700157 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000158 .name = "flag"
Lev Walkinf15320b2004-06-03 03:38:44 +0000159 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000160 { ATF_NOFLAGS, 0, offsetof(struct T2, str),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000161 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
162 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000163 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700164 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700165 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700166 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000167 .name = "str"
Lev Walkinf15320b2004-06-03 03:38:44 +0000168 },
169};
Lev Walkina7591b52014-10-12 18:37:35 -0700170static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000171 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
172};
Lev Walkina7591b52014-10-12 18:37:35 -0700173static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700174 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag */
175 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000176};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800177asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000178 sizeof(struct T2),
Lev Walkindfae9752004-09-29 13:19:37 +0000179 offsetof(struct T2, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700180 .tag2el = asn_MAP_T2_tag2el_1,
181 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000182 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700183 -1, /* First extension addition */
Lev Walkinf15320b2004-06-03 03:38:44 +0000184};
Lev Walkindfae9752004-09-29 13:19:37 +0000185asn_TYPE_descriptor_t asn_DEF_T2 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000186 "T2",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000187 "T2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800188 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000189 asn_DEF_T2_tags_1,
190 sizeof(asn_DEF_T2_tags_1)
191 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
192 asn_DEF_T2_tags_1, /* Same as above */
193 sizeof(asn_DEF_T2_tags_1)
194 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700195 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000196 asn_MBR_T2_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000197 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000198 &asn_SPC_T2_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000199};
200