vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | |
vlm | eb2157b | 2004-08-11 05:22:22 +0000 | [diff] [blame] | 2 | /*** <<< INCLUDES [T] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | #include <INTEGER.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5 | #include <T2.h> |
| 6 | #include <asn_SEQUENCE_OF.h> |
vlm | eb2157b | 2004-08-11 05:22:22 +0000 | [diff] [blame] | 7 | #include <constr_SEQUENCE_OF.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 8 | #include <constr_SEQUENCE.h> |
| 9 | |
vlm | eb2157b | 2004-08-11 05:22:22 +0000 | [diff] [blame] | 10 | /*** <<< DEPS [T] >>> ***/ |
| 11 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 12 | extern asn_TYPE_descriptor_t asn_DEF_T; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13 | |
| 14 | /*** <<< TYPE-DECLS [T] >>> ***/ |
| 15 | |
| 16 | |
| 17 | typedef struct T { |
| 18 | INTEGER_t int; |
| 19 | struct collection { |
vlm | b47f48e | 2004-09-17 06:32:12 +0000 | [diff] [blame] | 20 | A_SEQUENCE_OF(T2_t) list; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21 | |
| 22 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 23 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24 | } collection; |
| 25 | |
| 26 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 27 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 28 | } T_t; |
| 29 | |
| 30 | /*** <<< STAT-DEFS [T] >>> ***/ |
| 31 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 32 | static asn_TYPE_member_t asn_MBR_collection[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 33 | { ATF_NOFLAGS, 0, 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 34 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 35 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 36 | .type = (void *)&asn_DEF_T2, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 37 | .memb_constraints = 0, /* Defer to actual type */ |
| 38 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 39 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 40 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 41 | static ber_tlv_tag_t asn_DEF_collection_tags[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 42 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 43 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 44 | static asn_SET_OF_specifics_t asn_DEF_collection_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 45 | sizeof(struct collection), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 46 | offsetof(struct collection, _asn_ctx), |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 47 | 0, /* XER encoding is XMLDelimitedItemList */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 48 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 49 | static /* Use -fall-defs-global to expose */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 50 | asn_TYPE_descriptor_t asn_DEF_collection = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 51 | "collection", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 52 | SEQUENCE_OF_free, |
| 53 | SEQUENCE_OF_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 54 | SEQUENCE_OF_constraint, |
| 55 | SEQUENCE_OF_decode_ber, |
| 56 | SEQUENCE_OF_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 57 | 0, /* Not implemented yet */ |
| 58 | SEQUENCE_OF_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 59 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 60 | asn_DEF_collection_tags, |
| 61 | sizeof(asn_DEF_collection_tags) |
| 62 | /sizeof(asn_DEF_collection_tags[0]), /* 1 */ |
| 63 | asn_DEF_collection_tags, /* Same as above */ |
| 64 | sizeof(asn_DEF_collection_tags) |
| 65 | /sizeof(asn_DEF_collection_tags[0]), /* 1 */ |
| 66 | asn_MBR_collection, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 67 | 1, /* Single element */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 68 | &asn_DEF_collection_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 69 | }; |
| 70 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 71 | static asn_TYPE_member_t asn_MBR_T[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 72 | { ATF_NOFLAGS, 0, offsetof(struct T, int), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 73 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 74 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 75 | .type = (void *)&asn_DEF_INTEGER, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 76 | .memb_constraints = 0, /* Defer to actual type */ |
| 77 | .name = "int" |
| 78 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 79 | { ATF_NOFLAGS, 0, offsetof(struct T, collection), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 80 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 81 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 82 | .type = (void *)&asn_DEF_collection, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 83 | .memb_constraints = 0, /* Defer to actual type */ |
| 84 | .name = "collection" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 85 | }, |
| 86 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 87 | static ber_tlv_tag_t asn_DEF_T_tags[] = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 88 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 89 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 90 | static asn_TYPE_tag2member_t asn_DEF_T_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 91 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* int at 15 */ |
| 92 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* collection at 17 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 93 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 94 | static asn_SEQUENCE_specifics_t asn_DEF_T_specs = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 95 | sizeof(struct T), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 96 | offsetof(struct T, _asn_ctx), |
| 97 | asn_DEF_T_tag2el, |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 98 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 99 | -1, /* Start extensions */ |
| 100 | -1 /* Stop extensions */ |
| 101 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 102 | asn_TYPE_descriptor_t asn_DEF_T = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 103 | "T", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 104 | SEQUENCE_free, |
| 105 | SEQUENCE_print, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 106 | SEQUENCE_constraint, |
| 107 | SEQUENCE_decode_ber, |
| 108 | SEQUENCE_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 109 | 0, /* Not implemented yet */ |
| 110 | SEQUENCE_encode_xer, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 111 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 112 | asn_DEF_T_tags, |
| 113 | sizeof(asn_DEF_T_tags) |
| 114 | /sizeof(asn_DEF_T_tags[0]), /* 1 */ |
| 115 | asn_DEF_T_tags, /* Same as above */ |
| 116 | sizeof(asn_DEF_T_tags) |
| 117 | /sizeof(asn_DEF_T_tags[0]), /* 1 */ |
| 118 | asn_MBR_T, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 119 | 2, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 120 | &asn_DEF_T_specs /* Additional specs */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 121 | }; |
| 122 | |
| 123 | |
vlm | eb2157b | 2004-08-11 05:22:22 +0000 | [diff] [blame] | 124 | /*** <<< INCLUDES [T2] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 125 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 126 | #include <BOOLEAN.h> |
| 127 | #include <UTF8String.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 128 | #include <constr_SEQUENCE.h> |
| 129 | |
vlm | eb2157b | 2004-08-11 05:22:22 +0000 | [diff] [blame] | 130 | /*** <<< DEPS [T2] >>> ***/ |
| 131 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 132 | extern asn_TYPE_descriptor_t asn_DEF_T2; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 133 | |
| 134 | /*** <<< TYPE-DECLS [T2] >>> ***/ |
| 135 | |
| 136 | |
| 137 | typedef struct T2 { |
| 138 | BOOLEAN_t flag; |
| 139 | UTF8String_t str; |
| 140 | |
| 141 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 142 | asn_struct_ctx_t _asn_ctx; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 143 | } T2_t; |
| 144 | |
| 145 | /*** <<< STAT-DEFS [T2] >>> ***/ |
| 146 | |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 147 | static asn_TYPE_member_t asn_MBR_T2[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 148 | { ATF_NOFLAGS, 0, offsetof(struct T2, flag), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 149 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), |
| 150 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 151 | .type = (void *)&asn_DEF_BOOLEAN, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 152 | .memb_constraints = 0, /* Defer to actual type */ |
| 153 | .name = "flag" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 154 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 155 | { ATF_NOFLAGS, 0, offsetof(struct T2, str), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 156 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), |
| 157 | .tag_mode = 0, |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 158 | .type = (void *)&asn_DEF_UTF8String, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 159 | .memb_constraints = 0, /* Defer to actual type */ |
| 160 | .name = "str" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 161 | }, |
| 162 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 163 | static ber_tlv_tag_t asn_DEF_T2_tags[] = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 164 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 165 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 166 | static asn_TYPE_tag2member_t asn_DEF_T2_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 167 | { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* flag at 20 */ |
| 168 | { (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)), 1, 0, 0 }, /* str at 21 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 169 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 170 | static asn_SEQUENCE_specifics_t asn_DEF_T2_specs = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 171 | sizeof(struct T2), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 172 | offsetof(struct T2, _asn_ctx), |
| 173 | asn_DEF_T2_tag2el, |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 174 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 175 | -1, /* Start extensions */ |
| 176 | -1 /* Stop extensions */ |
| 177 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 178 | asn_TYPE_descriptor_t asn_DEF_T2 = { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 179 | "T2", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 180 | SEQUENCE_free, |
| 181 | SEQUENCE_print, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 182 | SEQUENCE_constraint, |
| 183 | SEQUENCE_decode_ber, |
| 184 | SEQUENCE_encode_der, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 185 | 0, /* Not implemented yet */ |
| 186 | SEQUENCE_encode_xer, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 187 | 0, /* Use generic outmost tag fetcher */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 188 | asn_DEF_T2_tags, |
| 189 | sizeof(asn_DEF_T2_tags) |
| 190 | /sizeof(asn_DEF_T2_tags[0]), /* 1 */ |
| 191 | asn_DEF_T2_tags, /* Same as above */ |
| 192 | sizeof(asn_DEF_T2_tags) |
| 193 | /sizeof(asn_DEF_T2_tags[0]), /* 1 */ |
| 194 | asn_MBR_T2, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 195 | 2, /* Elements count */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 196 | &asn_DEF_T2_specs /* Additional specs */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 197 | }; |
| 198 | |