blob: 4e6ed8c8f85122c965dd52988c2cb058f0bb2a54 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001
vlmeb2157b2004-08-11 05:22:22 +00002/*** <<< INCLUDES [T] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +00003
vlmfa67ddc2004-06-03 03:38:44 +00004#include <INTEGER.h>
vlmfa67ddc2004-06-03 03:38:44 +00005#include <asn_SEQUENCE_OF.h>
vlmeb2157b2004-08-11 05:22:22 +00006#include <constr_SEQUENCE_OF.h>
vlmfa67ddc2004-06-03 03:38:44 +00007#include <constr_SEQUENCE.h>
8
vlm0b567bf2005-03-04 22:18:20 +00009/*** <<< FWD-DECLS [T] >>> ***/
vlmeb2157b2004-08-11 05:22:22 +000010
vlm5feb7522005-03-04 23:50:56 +000011struct T2;
vlmfa67ddc2004-06-03 03:38:44 +000012
13/*** <<< TYPE-DECLS [T] >>> ***/
14
vlmfa67ddc2004-06-03 03:38:44 +000015typedef struct T {
vlm097616c2005-01-30 18:34:07 +000016 INTEGER_t Int;
vlmfa67ddc2004-06-03 03:38:44 +000017 struct collection {
vlm0b567bf2005-03-04 22:18:20 +000018 A_SEQUENCE_OF(struct T2) list;
vlmfa67ddc2004-06-03 03:38:44 +000019
20 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +000021 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +000022 } collection;
23
24 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +000025 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +000026} T_t;
27
vlm0b567bf2005-03-04 22:18:20 +000028/*** <<< FUNC-DECLS [T] >>> ***/
29
30extern asn_TYPE_descriptor_t asn_DEF_T;
31
32/*** <<< POST-INCLUDE [T] >>> ***/
33
vlmea226772006-09-13 02:51:20 +000034#include "T2.h"
vlm0b567bf2005-03-04 22:18:20 +000035
vlmfa67ddc2004-06-03 03:38:44 +000036/*** <<< STAT-DEFS [T] >>> ***/
37
vlm67d57fe2005-03-06 09:29:03 +000038static asn_TYPE_member_t asn_MBR_collection_3[] = {
vlm2cebdf32005-08-16 16:57:17 +000039 { ATF_POINTER, 0, 0,
vlm21e46002004-08-20 13:36:32 +000040 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
41 .tag_mode = 0,
vlme0fea712005-08-29 10:31:14 +000042 .type = &asn_DEF_T2,
vlm0a9af512005-01-17 12:20:19 +000043 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm337167e2005-11-26 11:25:14 +000044 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
45 .default_value = 0,
vlm21e46002004-08-20 13:36:32 +000046 .name = ""
vlmfa67ddc2004-06-03 03:38:44 +000047 },
vlm21e46002004-08-20 13:36:32 +000048};
vlm337167e2005-11-26 11:25:14 +000049static ber_tlv_tag_t asn_DEF_collection_tags_3[] = {
vlm21e46002004-08-20 13:36:32 +000050 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
51};
vlm337167e2005-11-26 11:25:14 +000052static asn_SET_OF_specifics_t asn_SPC_collection_specs_3 = {
vlm21e46002004-08-20 13:36:32 +000053 sizeof(struct collection),
vlm02296432004-09-29 13:19:37 +000054 offsetof(struct collection, _asn_ctx),
vlm39ba4c42004-09-22 16:06:28 +000055 0, /* XER encoding is XMLDelimitedItemList */
vlm21e46002004-08-20 13:36:32 +000056};
vlm1dc848e2004-09-07 06:44:29 +000057static /* Use -fall-defs-global to expose */
vlm67d57fe2005-03-06 09:29:03 +000058asn_TYPE_descriptor_t asn_DEF_collection_3 = {
vlm21e46002004-08-20 13:36:32 +000059 "collection",
vlm9de248e2004-10-20 15:50:55 +000060 "collection",
vlm39ba4c42004-09-22 16:06:28 +000061 SEQUENCE_OF_free,
62 SEQUENCE_OF_print,
vlm21e46002004-08-20 13:36:32 +000063 SEQUENCE_OF_constraint,
64 SEQUENCE_OF_decode_ber,
65 SEQUENCE_OF_encode_der,
vlm9de212e2005-02-14 20:31:31 +000066 SEQUENCE_OF_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +000067 SEQUENCE_OF_encode_xer,
vlmb1b193e2006-08-18 01:46:46 +000068 0, 0, /* No PER support, use "-gen-PER" to enable */
vlm21e46002004-08-20 13:36:32 +000069 0, /* Use generic outmost tag fetcher */
vlm337167e2005-11-26 11:25:14 +000070 asn_DEF_collection_tags_3,
71 sizeof(asn_DEF_collection_tags_3)
72 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
73 asn_DEF_collection_tags_3, /* Same as above */
74 sizeof(asn_DEF_collection_tags_3)
75 /sizeof(asn_DEF_collection_tags_3[0]), /* 1 */
76 0, /* No PER visible constraints */
vlm67d57fe2005-03-06 09:29:03 +000077 asn_MBR_collection_3,
vlm21e46002004-08-20 13:36:32 +000078 1, /* Single element */
vlm337167e2005-11-26 11:25:14 +000079 &asn_SPC_collection_specs_3 /* Additional specs */
vlm21e46002004-08-20 13:36:32 +000080};
81
vlm44fe49a2005-03-04 11:26:08 +000082static asn_TYPE_member_t asn_MBR_T_1[] = {
vlm097616c2005-01-30 18:34:07 +000083 { ATF_NOFLAGS, 0, offsetof(struct T, Int),
vlm21e46002004-08-20 13:36:32 +000084 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
85 .tag_mode = 0,
vlme0fea712005-08-29 10:31:14 +000086 .type = &asn_DEF_INTEGER,
vlm0a9af512005-01-17 12:20:19 +000087 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm337167e2005-11-26 11:25:14 +000088 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
89 .default_value = 0,
vlm21e46002004-08-20 13:36:32 +000090 .name = "int"
91 },
vlmddd5a7d2004-09-10 09:18:20 +000092 { ATF_NOFLAGS, 0, offsetof(struct T, collection),
vlm21e46002004-08-20 13:36:32 +000093 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
94 .tag_mode = 0,
vlme0fea712005-08-29 10:31:14 +000095 .type = &asn_DEF_collection_3,
vlm0a9af512005-01-17 12:20:19 +000096 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm337167e2005-11-26 11:25:14 +000097 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
98 .default_value = 0,
vlm21e46002004-08-20 13:36:32 +000099 .name = "collection"
vlmfa67ddc2004-06-03 03:38:44 +0000100 },
101};
vlm337167e2005-11-26 11:25:14 +0000102static ber_tlv_tag_t asn_DEF_T_tags_1[] = {
vlmfa67ddc2004-06-03 03:38:44 +0000103 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
104};
vlm337167e2005-11-26 11:25:14 +0000105static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
vlmc8aeab42004-06-14 13:09:45 +0000106 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int at 15 */
vlm7f061a72005-02-25 08:19:34 +0000107 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection at 17 */
vlm35efd1b2004-06-06 07:20:52 +0000108};
vlm337167e2005-11-26 11:25:14 +0000109static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = {
vlmfa67ddc2004-06-03 03:38:44 +0000110 sizeof(struct T),
vlm02296432004-09-29 13:19:37 +0000111 offsetof(struct T, _asn_ctx),
vlm337167e2005-11-26 11:25:14 +0000112 asn_MAP_T_tag2el_1,
vlm35efd1b2004-06-06 07:20:52 +0000113 2, /* Count of tags in the map */
vlm337167e2005-11-26 11:25:14 +0000114 0, 0, 0, /* Optional elements (not needed) */
vlmfa67ddc2004-06-03 03:38:44 +0000115 -1, /* Start extensions */
116 -1 /* Stop extensions */
117};
vlm02296432004-09-29 13:19:37 +0000118asn_TYPE_descriptor_t asn_DEF_T = {
vlmfa67ddc2004-06-03 03:38:44 +0000119 "T",
vlm9de248e2004-10-20 15:50:55 +0000120 "T",
vlm39ba4c42004-09-22 16:06:28 +0000121 SEQUENCE_free,
122 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000123 SEQUENCE_constraint,
124 SEQUENCE_decode_ber,
125 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000126 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000127 SEQUENCE_encode_xer,
vlmb1b193e2006-08-18 01:46:46 +0000128 0, 0, /* No PER support, use "-gen-PER" to enable */
vlmfa67ddc2004-06-03 03:38:44 +0000129 0, /* Use generic outmost tag fetcher */
vlm337167e2005-11-26 11:25:14 +0000130 asn_DEF_T_tags_1,
131 sizeof(asn_DEF_T_tags_1)
132 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
133 asn_DEF_T_tags_1, /* Same as above */
134 sizeof(asn_DEF_T_tags_1)
135 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
136 0, /* No PER visible constraints */
vlm44fe49a2005-03-04 11:26:08 +0000137 asn_MBR_T_1,
vlm21e46002004-08-20 13:36:32 +0000138 2, /* Elements count */
vlm337167e2005-11-26 11:25:14 +0000139 &asn_SPC_T_specs_1 /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000140};
141
142
vlmeb2157b2004-08-11 05:22:22 +0000143/*** <<< INCLUDES [T2] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000144
vlmfa67ddc2004-06-03 03:38:44 +0000145#include <BOOLEAN.h>
146#include <UTF8String.h>
vlmfa67ddc2004-06-03 03:38:44 +0000147#include <constr_SEQUENCE.h>
148
vlmfa67ddc2004-06-03 03:38:44 +0000149/*** <<< TYPE-DECLS [T2] >>> ***/
150
vlmfa67ddc2004-06-03 03:38:44 +0000151typedef struct T2 {
152 BOOLEAN_t flag;
153 UTF8String_t str;
154
155 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000156 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000157} T2_t;
158
vlm0b567bf2005-03-04 22:18:20 +0000159/*** <<< FUNC-DECLS [T2] >>> ***/
160
161extern asn_TYPE_descriptor_t asn_DEF_T2;
162
vlmfa67ddc2004-06-03 03:38:44 +0000163/*** <<< STAT-DEFS [T2] >>> ***/
164
vlm44fe49a2005-03-04 11:26:08 +0000165static asn_TYPE_member_t asn_MBR_T2_1[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000166 { ATF_NOFLAGS, 0, offsetof(struct T2, flag),
vlm21e46002004-08-20 13:36:32 +0000167 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
168 .tag_mode = 0,
vlme0fea712005-08-29 10:31:14 +0000169 .type = &asn_DEF_BOOLEAN,
vlm0a9af512005-01-17 12:20:19 +0000170 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm337167e2005-11-26 11:25:14 +0000171 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
172 .default_value = 0,
vlm21e46002004-08-20 13:36:32 +0000173 .name = "flag"
vlmfa67ddc2004-06-03 03:38:44 +0000174 },
vlmddd5a7d2004-09-10 09:18:20 +0000175 { ATF_NOFLAGS, 0, offsetof(struct T2, str),
vlm21e46002004-08-20 13:36:32 +0000176 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
177 .tag_mode = 0,
vlme0fea712005-08-29 10:31:14 +0000178 .type = &asn_DEF_UTF8String,
vlm0a9af512005-01-17 12:20:19 +0000179 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm337167e2005-11-26 11:25:14 +0000180 .per_constraints = 0, /* PER is not compiled, use -gen-PER */
181 .default_value = 0,
vlm21e46002004-08-20 13:36:32 +0000182 .name = "str"
vlmfa67ddc2004-06-03 03:38:44 +0000183 },
184};
vlm337167e2005-11-26 11:25:14 +0000185static ber_tlv_tag_t asn_DEF_T2_tags_1[] = {
vlmfa67ddc2004-06-03 03:38:44 +0000186 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
187};
vlm337167e2005-11-26 11:25:14 +0000188static asn_TYPE_tag2member_t asn_MAP_T2_tag2el_1[] = {
vlmc8aeab42004-06-14 13:09:45 +0000189 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag at 20 */
vlm7f061a72005-02-25 08:19:34 +0000190 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str at 21 */
vlm35efd1b2004-06-06 07:20:52 +0000191};
vlm337167e2005-11-26 11:25:14 +0000192static asn_SEQUENCE_specifics_t asn_SPC_T2_specs_1 = {
vlmfa67ddc2004-06-03 03:38:44 +0000193 sizeof(struct T2),
vlm02296432004-09-29 13:19:37 +0000194 offsetof(struct T2, _asn_ctx),
vlm337167e2005-11-26 11:25:14 +0000195 asn_MAP_T2_tag2el_1,
vlm35efd1b2004-06-06 07:20:52 +0000196 2, /* Count of tags in the map */
vlm337167e2005-11-26 11:25:14 +0000197 0, 0, 0, /* Optional elements (not needed) */
vlmfa67ddc2004-06-03 03:38:44 +0000198 -1, /* Start extensions */
199 -1 /* Stop extensions */
200};
vlm02296432004-09-29 13:19:37 +0000201asn_TYPE_descriptor_t asn_DEF_T2 = {
vlmfa67ddc2004-06-03 03:38:44 +0000202 "T2",
vlm9de248e2004-10-20 15:50:55 +0000203 "T2",
vlm39ba4c42004-09-22 16:06:28 +0000204 SEQUENCE_free,
205 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000206 SEQUENCE_constraint,
207 SEQUENCE_decode_ber,
208 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000209 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000210 SEQUENCE_encode_xer,
vlmb1b193e2006-08-18 01:46:46 +0000211 0, 0, /* No PER support, use "-gen-PER" to enable */
vlmfa67ddc2004-06-03 03:38:44 +0000212 0, /* Use generic outmost tag fetcher */
vlm337167e2005-11-26 11:25:14 +0000213 asn_DEF_T2_tags_1,
214 sizeof(asn_DEF_T2_tags_1)
215 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
216 asn_DEF_T2_tags_1, /* Same as above */
217 sizeof(asn_DEF_T2_tags_1)
218 /sizeof(asn_DEF_T2_tags_1[0]), /* 1 */
219 0, /* No PER visible constraints */
vlm44fe49a2005-03-04 11:26:08 +0000220 asn_MBR_T2_1,
vlm21e46002004-08-20 13:36:32 +0000221 2, /* Elements count */
vlm337167e2005-11-26 11:25:14 +0000222 &asn_SPC_T2_specs_1 /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000223};
224