blob: 2878ad4e5e73065606b46b31f98380a4fe7e70b2 [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 Walkinba58e1b2005-01-17 12:20:19 +000044 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040045 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000046 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
47 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000048 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +000049 },
Lev Walkin2e3055d2004-08-20 13:36:32 +000050};
Lev Walkina7591b52014-10-12 18:37:35 -070051static const ber_tlv_tag_t asn_DEF_collection_tags_3[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000052 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
53};
Lev Walkin59b176e2005-11-26 11:25:14 +000054static asn_SET_OF_specifics_t asn_SPC_collection_specs_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000055 sizeof(struct collection),
Lev Walkindfae9752004-09-29 13:19:37 +000056 offsetof(struct collection, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000057 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +000058};
Lev Walkind04430c2004-09-07 06:44:29 +000059static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +000060asn_TYPE_descriptor_t asn_DEF_collection_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000061 "collection",
Lev Walkindc06f6b2004-10-20 15:50:55 +000062 "collection",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080063 &asn_OP_SEQUENCE_OF,
Lev Walkin2e3055d2004-08-20 13:36:32 +000064 SEQUENCE_OF_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +000065 asn_DEF_collection_tags_3,
66 sizeof(asn_DEF_collection_tags_3)
67 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
68 asn_DEF_collection_tags_3, /* Same as above */
69 sizeof(asn_DEF_collection_tags_3)
70 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040071 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000072 0, /* No PER visible constraints */
Lev Walkine8318b82005-03-06 09:29:03 +000073 asn_MBR_collection_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +000074 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +000075 &asn_SPC_collection_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +000076};
77
Lev Walkine0272aa2005-03-04 11:26:08 +000078static asn_TYPE_member_t asn_MBR_T_1[] = {
Lev Walkin64d99e92005-01-30 18:34:07 +000079 { ATF_NOFLAGS, 0, offsetof(struct T, Int),
Lev Walkin2e3055d2004-08-20 13:36:32 +000080 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
81 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000082 .type = &asn_DEF_INTEGER,
Lev Walkin67a30122017-08-10 05:48:54 -070083 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +000084 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040085 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000086 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
87 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000088 .name = "int"
89 },
Lev Walkincc93b0f2004-09-10 09:18:20 +000090 { ATF_NOFLAGS, 0, offsetof(struct T, collection),
Lev Walkin2e3055d2004-08-20 13:36:32 +000091 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
92 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000093 .type = &asn_DEF_collection_3,
Lev Walkin67a30122017-08-10 05:48:54 -070094 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +000095 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +040096 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +000097 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
98 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000099 .name = "collection"
Lev Walkinf15320b2004-06-03 03:38:44 +0000100 },
101};
Lev Walkina7591b52014-10-12 18:37:35 -0700102static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000103 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
104};
Lev Walkina7591b52014-10-12 18:37:35 -0700105static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700106 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int */
107 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000108};
Lev Walkin59b176e2005-11-26 11:25:14 +0000109static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000110 sizeof(struct T),
Lev Walkindfae9752004-09-29 13:19:37 +0000111 offsetof(struct T, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700112 .tag2el = asn_MAP_T_tag2el_1,
113 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000114 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000115 -1, /* Start extensions */
116 -1 /* Stop extensions */
117};
Lev Walkindfae9752004-09-29 13:19:37 +0000118asn_TYPE_descriptor_t asn_DEF_T = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000119 "T",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000120 "T",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800121 &asn_OP_SEQUENCE,
Lev Walkinf15320b2004-06-03 03:38:44 +0000122 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000123 asn_DEF_T_tags_1,
124 sizeof(asn_DEF_T_tags_1)
125 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
126 asn_DEF_T_tags_1, /* Same as above */
127 sizeof(asn_DEF_T_tags_1)
128 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400129 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000130 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000131 asn_MBR_T_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000132 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000133 &asn_SPC_T_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000134};
135
136
Lev Walkin5d5e6522004-08-11 05:22:22 +0000137/*** <<< INCLUDES [T2] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000138
Lev Walkinf15320b2004-06-03 03:38:44 +0000139#include <BOOLEAN.h>
140#include <UTF8String.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000141#include <constr_SEQUENCE.h>
142
Lev Walkinf15320b2004-06-03 03:38:44 +0000143/*** <<< TYPE-DECLS [T2] >>> ***/
144
Lev Walkinf15320b2004-06-03 03:38:44 +0000145typedef struct T2 {
146 BOOLEAN_t flag;
147 UTF8String_t str;
148
149 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000150 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000151} T2_t;
152
Lev Walkinc8285712005-03-04 22:18:20 +0000153/*** <<< FUNC-DECLS [T2] >>> ***/
154
155extern asn_TYPE_descriptor_t asn_DEF_T2;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800156extern asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1;
157extern asn_TYPE_member_t asn_MBR_T2_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000158
Lev Walkinf15320b2004-06-03 03:38:44 +0000159/*** <<< STAT-DEFS [T2] >>> ***/
160
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800161asn_TYPE_member_t asn_MBR_T2_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000162 { ATF_NOFLAGS, 0, offsetof(struct T2, flag),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000163 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
164 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000165 .type = &asn_DEF_BOOLEAN,
Lev Walkin67a30122017-08-10 05:48:54 -0700166 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000167 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400168 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000169 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
170 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000171 .name = "flag"
Lev Walkinf15320b2004-06-03 03:38:44 +0000172 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000173 { ATF_NOFLAGS, 0, offsetof(struct T2, str),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000174 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
175 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000176 .type = &asn_DEF_UTF8String,
Lev Walkin67a30122017-08-10 05:48:54 -0700177 .type_selector = 0,
Lev Walkinba58e1b2005-01-17 12:20:19 +0000178 .memb_constraints = 0, /* Defer constraints checking to the member type */
Lev Walkinb33425f2017-07-14 14:59:52 +0400179 .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
Lev Walkin59b176e2005-11-26 11:25:14 +0000180 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
181 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000182 .name = "str"
Lev Walkinf15320b2004-06-03 03:38:44 +0000183 },
184};
Lev Walkina7591b52014-10-12 18:37:35 -0700185static const ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000186 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
187};
Lev Walkina7591b52014-10-12 18:37:35 -0700188static const asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700189 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag */
190 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000191};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800192asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000193 sizeof(struct T2),
Lev Walkindfae9752004-09-29 13:19:37 +0000194 offsetof(struct T2, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700195 .tag2el = asn_MAP_T2_tag2el_1,
196 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000197 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000198 -1, /* Start extensions */
199 -1 /* Stop extensions */
200};
Lev Walkindfae9752004-09-29 13:19:37 +0000201asn_TYPE_descriptor_t asn_DEF_T2 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000202 "T2",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000203 "T2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800204 &asn_OP_SEQUENCE,
Lev Walkinf15320b2004-06-03 03:38:44 +0000205 SEQUENCE_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000206 asn_DEF_T2_tags_1,
207 sizeof(asn_DEF_T2_tags_1)
208 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
209 asn_DEF_T2_tags_1, /* Same as above */
210 sizeof(asn_DEF_T2_tags_1)
211 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400212 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000213 0, /* No PER visible constraints */
Lev Walkine0272aa2005-03-04 11:26:08 +0000214 asn_MBR_T2_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000215 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000216 &asn_SPC_T2_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000217};
218