blob: 68435f773df708d9c23a9044330c7c8f9a926786 [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 <T2.h>
6#include <asn_SEQUENCE_OF.h>
vlmeb2157b2004-08-11 05:22:22 +00007#include <constr_SEQUENCE_OF.h>
vlmfa67ddc2004-06-03 03:38:44 +00008#include <constr_SEQUENCE.h>
9
vlmeb2157b2004-08-11 05:22:22 +000010/*** <<< DEPS [T] >>> ***/
11
vlm02296432004-09-29 13:19:37 +000012extern asn_TYPE_descriptor_t asn_DEF_T;
vlmfa67ddc2004-06-03 03:38:44 +000013
14/*** <<< TYPE-DECLS [T] >>> ***/
15
16
17typedef struct T {
vlm097616c2005-01-30 18:34:07 +000018 INTEGER_t Int;
vlmfa67ddc2004-06-03 03:38:44 +000019 struct collection {
vlmb47f48e2004-09-17 06:32:12 +000020 A_SEQUENCE_OF(T2_t) list;
vlmfa67ddc2004-06-03 03:38:44 +000021
22 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +000023 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +000024 } collection;
25
26 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +000027 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +000028} T_t;
29
30/*** <<< STAT-DEFS [T] >>> ***/
31
vlm02296432004-09-29 13:19:37 +000032static asn_TYPE_member_t asn_MBR_collection[] = {
vlmddd5a7d2004-09-10 09:18:20 +000033 { ATF_NOFLAGS, 0, 0,
vlm21e46002004-08-20 13:36:32 +000034 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
35 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +000036 .type = (void *)&asn_DEF_T2,
vlm0a9af512005-01-17 12:20:19 +000037 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +000038 .name = ""
vlmfa67ddc2004-06-03 03:38:44 +000039 },
vlm21e46002004-08-20 13:36:32 +000040};
vlm02296432004-09-29 13:19:37 +000041static ber_tlv_tag_t asn_DEF_collection_tags[] = {
vlm21e46002004-08-20 13:36:32 +000042 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
43};
vlm02296432004-09-29 13:19:37 +000044static asn_SET_OF_specifics_t asn_DEF_collection_specs = {
vlm21e46002004-08-20 13:36:32 +000045 sizeof(struct collection),
vlm02296432004-09-29 13:19:37 +000046 offsetof(struct collection, _asn_ctx),
vlm39ba4c42004-09-22 16:06:28 +000047 0, /* XER encoding is XMLDelimitedItemList */
vlm21e46002004-08-20 13:36:32 +000048};
vlm1dc848e2004-09-07 06:44:29 +000049static /* Use -fall-defs-global to expose */
vlm02296432004-09-29 13:19:37 +000050asn_TYPE_descriptor_t asn_DEF_collection = {
vlm21e46002004-08-20 13:36:32 +000051 "collection",
vlm9de248e2004-10-20 15:50:55 +000052 "collection",
vlm39ba4c42004-09-22 16:06:28 +000053 SEQUENCE_OF_free,
54 SEQUENCE_OF_print,
vlm21e46002004-08-20 13:36:32 +000055 SEQUENCE_OF_constraint,
56 SEQUENCE_OF_decode_ber,
57 SEQUENCE_OF_encode_der,
vlm9de212e2005-02-14 20:31:31 +000058 SEQUENCE_OF_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +000059 SEQUENCE_OF_encode_xer,
vlm21e46002004-08-20 13:36:32 +000060 0, /* Use generic outmost tag fetcher */
vlm02296432004-09-29 13:19:37 +000061 asn_DEF_collection_tags,
62 sizeof(asn_DEF_collection_tags)
63 /sizeof(asn_DEF_collection_tags[0]), /* 1 */
64 asn_DEF_collection_tags, /* Same as above */
65 sizeof(asn_DEF_collection_tags)
66 /sizeof(asn_DEF_collection_tags[0]), /* 1 */
67 asn_MBR_collection,
vlm21e46002004-08-20 13:36:32 +000068 1, /* Single element */
vlm02296432004-09-29 13:19:37 +000069 &asn_DEF_collection_specs /* Additional specs */
vlm21e46002004-08-20 13:36:32 +000070};
71
vlm02296432004-09-29 13:19:37 +000072static asn_TYPE_member_t asn_MBR_T[] = {
vlm097616c2005-01-30 18:34:07 +000073 { ATF_NOFLAGS, 0, offsetof(struct T, Int),
vlm21e46002004-08-20 13:36:32 +000074 .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
75 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +000076 .type = (void *)&asn_DEF_INTEGER,
vlm0a9af512005-01-17 12:20:19 +000077 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +000078 .name = "int"
79 },
vlmddd5a7d2004-09-10 09:18:20 +000080 { ATF_NOFLAGS, 0, offsetof(struct T, collection),
vlm21e46002004-08-20 13:36:32 +000081 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
82 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +000083 .type = (void *)&asn_DEF_collection,
vlm0a9af512005-01-17 12:20:19 +000084 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +000085 .name = "collection"
vlmfa67ddc2004-06-03 03:38:44 +000086 },
87};
vlm02296432004-09-29 13:19:37 +000088static ber_tlv_tag_t asn_DEF_T_tags[] = {
vlmfa67ddc2004-06-03 03:38:44 +000089 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
90};
vlm02296432004-09-29 13:19:37 +000091static asn_TYPE_tag2member_t asn_DEF_T_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +000092 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int at 15 */
vlm7f061a72005-02-25 08:19:34 +000093 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* collection at 17 */
vlm35efd1b2004-06-06 07:20:52 +000094};
vlm02296432004-09-29 13:19:37 +000095static asn_SEQUENCE_specifics_t asn_DEF_T_specs = {
vlmfa67ddc2004-06-03 03:38:44 +000096 sizeof(struct T),
vlm02296432004-09-29 13:19:37 +000097 offsetof(struct T, _asn_ctx),
98 asn_DEF_T_tag2el,
vlm35efd1b2004-06-06 07:20:52 +000099 2, /* Count of tags in the map */
vlmfa67ddc2004-06-03 03:38:44 +0000100 -1, /* Start extensions */
101 -1 /* Stop extensions */
102};
vlm02296432004-09-29 13:19:37 +0000103asn_TYPE_descriptor_t asn_DEF_T = {
vlmfa67ddc2004-06-03 03:38:44 +0000104 "T",
vlm9de248e2004-10-20 15:50:55 +0000105 "T",
vlm39ba4c42004-09-22 16:06:28 +0000106 SEQUENCE_free,
107 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000108 SEQUENCE_constraint,
109 SEQUENCE_decode_ber,
110 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000111 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000112 SEQUENCE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000113 0, /* Use generic outmost tag fetcher */
vlm02296432004-09-29 13:19:37 +0000114 asn_DEF_T_tags,
115 sizeof(asn_DEF_T_tags)
116 /sizeof(asn_DEF_T_tags[0]), /* 1 */
117 asn_DEF_T_tags, /* Same as above */
118 sizeof(asn_DEF_T_tags)
119 /sizeof(asn_DEF_T_tags[0]), /* 1 */
120 asn_MBR_T,
vlm21e46002004-08-20 13:36:32 +0000121 2, /* Elements count */
vlm02296432004-09-29 13:19:37 +0000122 &asn_DEF_T_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000123};
124
125
vlmeb2157b2004-08-11 05:22:22 +0000126/*** <<< INCLUDES [T2] >>> ***/
vlmfa67ddc2004-06-03 03:38:44 +0000127
vlmfa67ddc2004-06-03 03:38:44 +0000128#include <BOOLEAN.h>
129#include <UTF8String.h>
vlmfa67ddc2004-06-03 03:38:44 +0000130#include <constr_SEQUENCE.h>
131
vlmeb2157b2004-08-11 05:22:22 +0000132/*** <<< DEPS [T2] >>> ***/
133
vlm02296432004-09-29 13:19:37 +0000134extern asn_TYPE_descriptor_t asn_DEF_T2;
vlmfa67ddc2004-06-03 03:38:44 +0000135
136/*** <<< TYPE-DECLS [T2] >>> ***/
137
138
139typedef struct T2 {
140 BOOLEAN_t flag;
141 UTF8String_t str;
142
143 /* Context for parsing across buffer boundaries */
vlm02296432004-09-29 13:19:37 +0000144 asn_struct_ctx_t _asn_ctx;
vlmfa67ddc2004-06-03 03:38:44 +0000145} T2_t;
146
147/*** <<< STAT-DEFS [T2] >>> ***/
148
vlm02296432004-09-29 13:19:37 +0000149static asn_TYPE_member_t asn_MBR_T2[] = {
vlmddd5a7d2004-09-10 09:18:20 +0000150 { ATF_NOFLAGS, 0, offsetof(struct T2, flag),
vlm21e46002004-08-20 13:36:32 +0000151 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
152 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000153 .type = (void *)&asn_DEF_BOOLEAN,
vlm0a9af512005-01-17 12:20:19 +0000154 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000155 .name = "flag"
vlmfa67ddc2004-06-03 03:38:44 +0000156 },
vlmddd5a7d2004-09-10 09:18:20 +0000157 { ATF_NOFLAGS, 0, offsetof(struct T2, str),
vlm21e46002004-08-20 13:36:32 +0000158 .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
159 .tag_mode = 0,
vlm02296432004-09-29 13:19:37 +0000160 .type = (void *)&asn_DEF_UTF8String,
vlm0a9af512005-01-17 12:20:19 +0000161 .memb_constraints = 0, /* Defer constraints checking to the member type */
vlm21e46002004-08-20 13:36:32 +0000162 .name = "str"
vlmfa67ddc2004-06-03 03:38:44 +0000163 },
164};
vlm02296432004-09-29 13:19:37 +0000165static ber_tlv_tag_t asn_DEF_T2_tags[] = {
vlmfa67ddc2004-06-03 03:38:44 +0000166 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
167};
vlm02296432004-09-29 13:19:37 +0000168static asn_TYPE_tag2member_t asn_DEF_T2_tag2el[] = {
vlmc8aeab42004-06-14 13:09:45 +0000169 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag at 20 */
vlm7f061a72005-02-25 08:19:34 +0000170 { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 } /* str at 21 */
vlm35efd1b2004-06-06 07:20:52 +0000171};
vlm02296432004-09-29 13:19:37 +0000172static asn_SEQUENCE_specifics_t asn_DEF_T2_specs = {
vlmfa67ddc2004-06-03 03:38:44 +0000173 sizeof(struct T2),
vlm02296432004-09-29 13:19:37 +0000174 offsetof(struct T2, _asn_ctx),
175 asn_DEF_T2_tag2el,
vlm35efd1b2004-06-06 07:20:52 +0000176 2, /* Count of tags in the map */
vlmfa67ddc2004-06-03 03:38:44 +0000177 -1, /* Start extensions */
178 -1 /* Stop extensions */
179};
vlm02296432004-09-29 13:19:37 +0000180asn_TYPE_descriptor_t asn_DEF_T2 = {
vlmfa67ddc2004-06-03 03:38:44 +0000181 "T2",
vlm9de248e2004-10-20 15:50:55 +0000182 "T2",
vlm39ba4c42004-09-22 16:06:28 +0000183 SEQUENCE_free,
184 SEQUENCE_print,
vlmfa67ddc2004-06-03 03:38:44 +0000185 SEQUENCE_constraint,
186 SEQUENCE_decode_ber,
187 SEQUENCE_encode_der,
vlm2dbab7c2004-10-23 15:07:45 +0000188 SEQUENCE_decode_xer,
vlm39ba4c42004-09-22 16:06:28 +0000189 SEQUENCE_encode_xer,
vlmfa67ddc2004-06-03 03:38:44 +0000190 0, /* Use generic outmost tag fetcher */
vlm02296432004-09-29 13:19:37 +0000191 asn_DEF_T2_tags,
192 sizeof(asn_DEF_T2_tags)
193 /sizeof(asn_DEF_T2_tags[0]), /* 1 */
194 asn_DEF_T2_tags, /* Same as above */
195 sizeof(asn_DEF_T2_tags)
196 /sizeof(asn_DEF_T2_tags[0]), /* 1 */
197 asn_MBR_T2,
vlm21e46002004-08-20 13:36:32 +0000198 2, /* Elements count */
vlm02296432004-09-29 13:19:37 +0000199 &asn_DEF_T2_specs /* Additional specs */
vlmfa67ddc2004-06-03 03:38:44 +0000200};
201