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