blob: f564b2eeb38524aa5eb6cf24c99617fabd4aef71 [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
vlm0b567bf2005-03-04 22:18:20 +000011struct T2; /* Forward declaration */
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
34#include <T2.h>
35
vlmfa67ddc2004-06-03 03:38:44 +000036/*** <<< STAT-DEFS [T] >>> ***/
37
vlm44fe49a2005-03-04 11:26:08 +000038static asn_TYPE_member_t asn_MBR_collection_2[] = {
vlmddd5a7d2004-09-10 09:18:20 +000039 { ATF_NOFLAGS, 0, 0,
vlm21e46002004-08-20 13:36:32 +000040 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
41 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +000042 .type = (void *)&asn_DEF_T2,
vlm0a9af512005-01-17 12:20:19 +000043 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +000044 .name = ""
vlmfa67ddc2004-06-03 03:38:44 +000045 },
vlm21e46002004-08-20 13:36:32 +000046};
vlm44fe49a2005-03-04 11:26:08 +000047static ber_tlv_tag_t asn_DEF_collection_2_tags[] = {
vlm21e46002004-08-20 13:36:32 +000048 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
49};
vlm44fe49a2005-03-04 11:26:08 +000050static asn_SET_OF_specifics_t asn_SPC_collection_2_specs = {
vlm21e46002004-08-20 13:36:32 +000051 sizeof(struct collection),
vlm02296432004-09-29 13:19:37 +000052 offsetof(struct collection, _asn_ctx),
vlm39ba4c42004-09-22 16:06:28 +000053 0, /* XER encoding is XMLDelimitedItemList */
vlm21e46002004-08-20 13:36:32 +000054};
vlm1dc848e2004-09-07 06:44:29 +000055static /* Use -fall-defs-global to expose */
vlm44fe49a2005-03-04 11:26:08 +000056asn_TYPE_descriptor_t asn_DEF_collection_2 = {
vlm21e46002004-08-20 13:36:32 +000057 "collection",
vlm9de248e2004-10-20 15:50:55 +000058 "collection",
vlm39ba4c42004-09-22 16:06:28 +000059 SEQUENCE_OF_free,
60 SEQUENCE_OF_print,
vlm21e46002004-08-20 13:36:32 +000061 SEQUENCE_OF_constraint,
62 SEQUENCE_OF_decode_ber,
63 SEQUENCE_OF_encode_der,
vlm9de212e2005-02-14 20:31:31 +000064 SEQUENCE_OF_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +000065 SEQUENCE_OF_encode_xer,
vlm21e46002004-08-20 13:36:32 +000066 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +000067 asn_DEF_collection_2_tags,
68 sizeof(asn_DEF_collection_2_tags)
69 /sizeof(asn_DEF_collection_2_tags[0]), /* 1 */
70 asn_DEF_collection_2_tags, /* Same as above */
71 sizeof(asn_DEF_collection_2_tags)
72 /sizeof(asn_DEF_collection_2_tags[0]), /* 1 */
73 asn_MBR_collection_2,
vlm21e46002004-08-20 13:36:32 +000074 1, /* Single element */
vlm44fe49a2005-03-04 11:26:08 +000075 &asn_SPC_collection_2_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +000076};
77
vlm44fe49a2005-03-04 11:26:08 +000078static asn_TYPE_member_t asn_MBR_T_1[] = {
vlm097616c2005-01-30 18:34:07 +000079 { ATF_NOFLAGS, 0, offsetof(struct T, Int),
vlm21e46002004-08-20 13:36:32 +000080 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
81 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +000082 .type = (void *)&asn_DEF_INTEGER,
vlm0a9af512005-01-17 12:20:19 +000083 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +000084 .name = "int"
85 },
vlmddd5a7d2004-09-10 09:18:20 +000086 { ATF_NOFLAGS, 0, offsetof(struct T, collection),
vlm21e46002004-08-20 13:36:32 +000087 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
88 .tag_mode = 0,
vlm44fe49a2005-03-04 11:26:08 +000089 .type = (void *)&asn_DEF_collection_2,
vlm0a9af512005-01-17 12:20:19 +000090 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +000091 .name = "collection"
vlmfa67ddc2004-06-03 03:38:44 +000092 },
93};
vlm44fe49a2005-03-04 11:26:08 +000094static ber_tlv_tag_t asn_DEF_T_1_tags[] = {
vlmfa67ddc2004-06-03 03:38:44 +000095 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
96};
vlm44fe49a2005-03-04 11:26:08 +000097static asn_TYPE_tag2member_t asn_MAP_T_1_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +000098 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int at 15 */
vlm7f061a72005-02-25 08:19:34 +000099 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection at 17 */
vlm35efd1b2004-06-06 07:20:52 +0000100};
vlm44fe49a2005-03-04 11:26:08 +0000101static asn_SEQUENCE_specifics_t asn_SPC_T_1_specs = {
vlmfa67ddc2004-06-03 03:38:44 +0000102 sizeof(struct T),
vlm02296432004-09-29 13:19:37 +0000103 offsetof(struct T, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000104 asn_MAP_T_1_tag2el,
vlm35efd1b2004-06-06 07:20:52 +0000105 2, /* Count of tags in the map */
vlmfa67ddc2004-06-03 03:38:44 +0000106 -1, /* Start extensions */
107 -1 /* Stop extensions */
108};
vlm02296432004-09-29 13:19:37 +0000109asn_TYPE_descriptor_t asn_DEF_T = {
vlmfa67ddc2004-06-03 03:38:44 +0000110 "T",
vlm9de248e2004-10-20 15:50:55 +0000111 "T",
vlm39ba4c42004-09-22 16:06:28 +0000112 SEQUENCE_free,
113 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000114 SEQUENCE_constraint,
115 SEQUENCE_decode_ber,
116 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000117 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000118 SEQUENCE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000119 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000120 asn_DEF_T_1_tags,
121 sizeof(asn_DEF_T_1_tags)
122 /sizeof(asn_DEF_T_1_tags[0]), /* 1 */
123 asn_DEF_T_1_tags, /* Same as above */
124 sizeof(asn_DEF_T_1_tags)
125 /sizeof(asn_DEF_T_1_tags[0]), /* 1 */
126 asn_MBR_T_1,
vlm21e46002004-08-20 13:36:32 +0000127 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000128 &asn_SPC_T_1_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000129};
130
131
vlmeb2157b2004-08-11 05:22:22 +0000132/*** <<< INCLUDES [T2] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000133
vlmfa67ddc2004-06-03 03:38:44 +0000134#include <BOOLEAN.h>
135#include <UTF8String.h>
vlmfa67ddc2004-06-03 03:38:44 +0000136#include <constr_SEQUENCE.h>
137
vlmfa67ddc2004-06-03 03:38:44 +0000138/*** <<< TYPE-DECLS [T2] >>> ***/
139
vlmfa67ddc2004-06-03 03:38:44 +0000140typedef struct T2 {
141 BOOLEAN_t flag;
142 UTF8String_t str;
143
144 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000145 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000146} T2_t;
147
vlm0b567bf2005-03-04 22:18:20 +0000148/*** <<< FUNC-DECLS [T2] >>> ***/
149
150extern asn_TYPE_descriptor_t asn_DEF_T2;
151
vlmfa67ddc2004-06-03 03:38:44 +0000152/*** <<< STAT-DEFS [T2] >>> ***/
153
vlm44fe49a2005-03-04 11:26:08 +0000154static asn_TYPE_member_t asn_MBR_T2_1[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000155 { ATF_NOFLAGS, 0, offsetof(struct T2, flag),
vlm21e46002004-08-20 13:36:32 +0000156 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
157 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000158 .type = (void *)&asn_DEF_BOOLEAN,
vlm0a9af512005-01-17 12:20:19 +0000159 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000160 .name = "flag"
vlmfa67ddc2004-06-03 03:38:44 +0000161 },
vlmddd5a7d2004-09-10 09:18:20 +0000162 { ATF_NOFLAGS, 0, offsetof(struct T2, str),
vlm21e46002004-08-20 13:36:32 +0000163 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
164 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000165 .type = (void *)&asn_DEF_UTF8String,
vlm0a9af512005-01-17 12:20:19 +0000166 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000167 .name = "str"
vlmfa67ddc2004-06-03 03:38:44 +0000168 },
169};
vlm44fe49a2005-03-04 11:26:08 +0000170static ber_tlv_tag_t asn_DEF_T2_1_tags[] = {
vlmfa67ddc2004-06-03 03:38:44 +0000171 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
172};
vlm44fe49a2005-03-04 11:26:08 +0000173static asn_TYPE_tag2member_t asn_MAP_T2_1_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +0000174 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag at 20 */
vlm7f061a72005-02-25 08:19:34 +0000175 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str at 21 */
vlm35efd1b2004-06-06 07:20:52 +0000176};
vlm44fe49a2005-03-04 11:26:08 +0000177static asn_SEQUENCE_specifics_t asn_SPC_T2_1_specs = {
vlmfa67ddc2004-06-03 03:38:44 +0000178 sizeof(struct T2),
vlm02296432004-09-29 13:19:37 +0000179 offsetof(struct T2, _asn_ctx),
vlm44fe49a2005-03-04 11:26:08 +0000180 asn_MAP_T2_1_tag2el,
vlm35efd1b2004-06-06 07:20:52 +0000181 2, /* Count of tags in the map */
vlmfa67ddc2004-06-03 03:38:44 +0000182 -1, /* Start extensions */
183 -1 /* Stop extensions */
184};
vlm02296432004-09-29 13:19:37 +0000185asn_TYPE_descriptor_t asn_DEF_T2 = {
vlmfa67ddc2004-06-03 03:38:44 +0000186 "T2",
vlm9de248e2004-10-20 15:50:55 +0000187 "T2",
vlm39ba4c42004-09-22 16:06:28 +0000188 SEQUENCE_free,
189 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000190 SEQUENCE_constraint,
191 SEQUENCE_decode_ber,
192 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000193 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000194 SEQUENCE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000195 0, /* Use generic outmost tag fetcher */
vlm44fe49a2005-03-04 11:26:08 +0000196 asn_DEF_T2_1_tags,
197 sizeof(asn_DEF_T2_1_tags)
198 /sizeof(asn_DEF_T2_1_tags[0]), /* 1 */
199 asn_DEF_T2_1_tags, /* Same as above */
200 sizeof(asn_DEF_T2_1_tags)
201 /sizeof(asn_DEF_T2_1_tags[0]), /* 1 */
202 asn_MBR_T2_1,
vlm21e46002004-08-20 13:36:32 +0000203 2, /* Elements count */
vlm44fe49a2005-03-04 11:26:08 +0000204 &asn_SPC_T2_1_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000205};
206