Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [T1] >>> ***/ |
| 3 | |
| 4 | #include <T2.h> |
| 5 | |
| 6 | /*** <<< TYPE-DECLS [T1] >>> ***/ |
| 7 | |
| 8 | |
| 9 | typedef T2_t T1_t; |
| 10 | |
| 11 | /*** <<< FUNC-DECLS [T1] >>> ***/ |
| 12 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 13 | extern asn_TYPE_descriptor_t asn_DEF_T1; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 14 | asn_struct_free_f T1_free; |
| 15 | asn_struct_print_f T1_print; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 16 | asn_constr_check_f T1_constraint; |
| 17 | ber_type_decoder_f T1_decode_ber; |
| 18 | der_type_encoder_f T1_encode_der; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 19 | xer_type_encoder_f T1_encode_xer; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 20 | |
| 21 | /*** <<< CODE [T1] >>> ***/ |
| 22 | |
| 23 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 24 | T1_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 25 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 26 | /* Replace with underlying type checker */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 27 | td->check_constraints = asn_DEF_T2.check_constraints; |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 28 | return td->check_constraints(td, sptr, app_errlog, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | /* |
| 32 | * This type is implemented using T2, |
Lev Walkin | c3808c1 | 2004-09-23 22:14:58 +0000 | [diff] [blame] | 33 | * so here we adjust the DEF accordingly. |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 34 | */ |
| 35 | static void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 36 | T1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 37 | td->free_struct = asn_DEF_T2.free_struct; |
| 38 | td->print_struct = asn_DEF_T2.print_struct; |
| 39 | td->ber_decoder = asn_DEF_T2.ber_decoder; |
| 40 | td->der_encoder = asn_DEF_T2.der_encoder; |
| 41 | td->xer_decoder = asn_DEF_T2.xer_decoder; |
| 42 | td->xer_encoder = asn_DEF_T2.xer_encoder; |
| 43 | td->elements = asn_DEF_T2.elements; |
| 44 | td->elements_count = asn_DEF_T2.elements_count; |
| 45 | td->specifics = asn_DEF_T2.specifics; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 46 | } |
| 47 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 48 | void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 49 | T1_free(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 50 | void *struct_ptr, int contents_only) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 51 | T1_inherit_TYPE_descriptor(td); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 52 | td->free_struct(td, struct_ptr, contents_only); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 56 | T1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 57 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 58 | T1_inherit_TYPE_descriptor(td); |
| 59 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 60 | } |
| 61 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 62 | ber_dec_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 63 | T1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 64 | void **structure, void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 65 | T1_inherit_TYPE_descriptor(td); |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 66 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 70 | T1_encode_der(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 71 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 72 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 73 | T1_inherit_TYPE_descriptor(td); |
| 74 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 75 | } |
| 76 | |
| 77 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 78 | T1_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 79 | int ilevel, enum xer_encoder_flags_e flags, |
| 80 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 81 | T1_inherit_TYPE_descriptor(td); |
| 82 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | |
| 86 | /*** <<< STAT-DEFS [T1] >>> ***/ |
| 87 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 88 | static ber_tlv_tag_t asn_DEF_T1_tags[] = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 89 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 90 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 91 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 92 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)) |
| 93 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 94 | static ber_tlv_tag_t asn_DEF_T1_all_tags[] = { |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 95 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 96 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 97 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 98 | (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 99 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
Lev Walkin | 2888f27 | 2004-09-14 12:46:58 +0000 | [diff] [blame] | 100 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 101 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 102 | asn_TYPE_descriptor_t asn_DEF_T1 = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 103 | "T1", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 104 | T1_free, |
| 105 | T1_print, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 106 | T1_constraint, |
| 107 | T1_decode_ber, |
| 108 | T1_encode_der, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 109 | 0, /* Not implemented yet */ |
| 110 | T1_encode_xer, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 111 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 112 | asn_DEF_T1_tags, |
| 113 | sizeof(asn_DEF_T1_tags) |
| 114 | /sizeof(asn_DEF_T1_tags[0]), /* 4 */ |
| 115 | asn_DEF_T1_all_tags, |
| 116 | sizeof(asn_DEF_T1_all_tags) |
| 117 | /sizeof(asn_DEF_T1_all_tags[0]), /* 6 */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 118 | 0, 0, /* No members */ |
| 119 | 0 /* No specifics */ |
| 120 | }; |
| 121 | |
| 122 | |
| 123 | /*** <<< INCLUDES [T2] >>> ***/ |
| 124 | |
| 125 | #include <T3.h> |
| 126 | |
| 127 | /*** <<< TYPE-DECLS [T2] >>> ***/ |
| 128 | |
| 129 | |
| 130 | typedef T3_t T2_t; |
| 131 | |
| 132 | /*** <<< FUNC-DECLS [T2] >>> ***/ |
| 133 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 134 | extern asn_TYPE_descriptor_t asn_DEF_T2; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 135 | asn_struct_free_f T2_free; |
| 136 | asn_struct_print_f T2_print; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 137 | asn_constr_check_f T2_constraint; |
| 138 | ber_type_decoder_f T2_decode_ber; |
| 139 | der_type_encoder_f T2_encode_der; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 140 | xer_type_encoder_f T2_encode_xer; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 141 | |
| 142 | /*** <<< CODE [T2] >>> ***/ |
| 143 | |
| 144 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 145 | T2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 146 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 147 | /* Replace with underlying type checker */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 148 | td->check_constraints = asn_DEF_T3.check_constraints; |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 149 | return td->check_constraints(td, sptr, app_errlog, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 150 | } |
| 151 | |
| 152 | /* |
| 153 | * This type is implemented using T3, |
Lev Walkin | c3808c1 | 2004-09-23 22:14:58 +0000 | [diff] [blame] | 154 | * so here we adjust the DEF accordingly. |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 155 | */ |
| 156 | static void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 157 | T2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 158 | td->free_struct = asn_DEF_T3.free_struct; |
| 159 | td->print_struct = asn_DEF_T3.print_struct; |
| 160 | td->ber_decoder = asn_DEF_T3.ber_decoder; |
| 161 | td->der_encoder = asn_DEF_T3.der_encoder; |
| 162 | td->xer_decoder = asn_DEF_T3.xer_decoder; |
| 163 | td->xer_encoder = asn_DEF_T3.xer_encoder; |
| 164 | td->elements = asn_DEF_T3.elements; |
| 165 | td->elements_count = asn_DEF_T3.elements_count; |
| 166 | td->specifics = asn_DEF_T3.specifics; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 167 | } |
| 168 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 169 | void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 170 | T2_free(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 171 | void *struct_ptr, int contents_only) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 172 | T2_inherit_TYPE_descriptor(td); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 173 | td->free_struct(td, struct_ptr, contents_only); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 174 | } |
| 175 | |
| 176 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 177 | T2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 178 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 179 | T2_inherit_TYPE_descriptor(td); |
| 180 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 181 | } |
| 182 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 183 | ber_dec_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 184 | T2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 185 | void **structure, void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 186 | T2_inherit_TYPE_descriptor(td); |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 187 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 191 | T2_encode_der(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 192 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 193 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 194 | T2_inherit_TYPE_descriptor(td); |
| 195 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 196 | } |
| 197 | |
| 198 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 199 | T2_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 200 | int ilevel, enum xer_encoder_flags_e flags, |
| 201 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 202 | T2_inherit_TYPE_descriptor(td); |
| 203 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 204 | } |
| 205 | |
| 206 | |
| 207 | /*** <<< STAT-DEFS [T2] >>> ***/ |
| 208 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 209 | static ber_tlv_tag_t asn_DEF_T2_tags[] = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 210 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 211 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 212 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)) |
| 213 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 214 | static ber_tlv_tag_t asn_DEF_T2_all_tags[] = { |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 215 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 216 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 217 | (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 218 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
Lev Walkin | 2888f27 | 2004-09-14 12:46:58 +0000 | [diff] [blame] | 219 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 220 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 221 | asn_TYPE_descriptor_t asn_DEF_T2 = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 222 | "T2", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 223 | T2_free, |
| 224 | T2_print, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 225 | T2_constraint, |
| 226 | T2_decode_ber, |
| 227 | T2_encode_der, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 228 | 0, /* Not implemented yet */ |
| 229 | T2_encode_xer, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 230 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 231 | asn_DEF_T2_tags, |
| 232 | sizeof(asn_DEF_T2_tags) |
| 233 | /sizeof(asn_DEF_T2_tags[0]), /* 3 */ |
| 234 | asn_DEF_T2_all_tags, |
| 235 | sizeof(asn_DEF_T2_all_tags) |
| 236 | /sizeof(asn_DEF_T2_all_tags[0]), /* 5 */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 237 | 0, 0, /* No members */ |
| 238 | 0 /* No specifics */ |
| 239 | }; |
| 240 | |
| 241 | |
| 242 | /*** <<< INCLUDES [T3] >>> ***/ |
| 243 | |
| 244 | #include <T4.h> |
| 245 | |
| 246 | /*** <<< TYPE-DECLS [T3] >>> ***/ |
| 247 | |
| 248 | |
| 249 | typedef T4_t T3_t; |
| 250 | |
| 251 | /*** <<< FUNC-DECLS [T3] >>> ***/ |
| 252 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 253 | extern asn_TYPE_descriptor_t asn_DEF_T3; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 254 | asn_struct_free_f T3_free; |
| 255 | asn_struct_print_f T3_print; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 256 | asn_constr_check_f T3_constraint; |
| 257 | ber_type_decoder_f T3_decode_ber; |
| 258 | der_type_encoder_f T3_encode_der; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 259 | xer_type_encoder_f T3_encode_xer; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 260 | |
| 261 | /*** <<< CODE [T3] >>> ***/ |
| 262 | |
| 263 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 264 | T3_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 265 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 266 | /* Replace with underlying type checker */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 267 | td->check_constraints = asn_DEF_T4.check_constraints; |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 268 | return td->check_constraints(td, sptr, app_errlog, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 269 | } |
| 270 | |
| 271 | /* |
| 272 | * This type is implemented using T4, |
Lev Walkin | c3808c1 | 2004-09-23 22:14:58 +0000 | [diff] [blame] | 273 | * so here we adjust the DEF accordingly. |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 274 | */ |
| 275 | static void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 276 | T3_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 277 | td->free_struct = asn_DEF_T4.free_struct; |
| 278 | td->print_struct = asn_DEF_T4.print_struct; |
| 279 | td->ber_decoder = asn_DEF_T4.ber_decoder; |
| 280 | td->der_encoder = asn_DEF_T4.der_encoder; |
| 281 | td->xer_decoder = asn_DEF_T4.xer_decoder; |
| 282 | td->xer_encoder = asn_DEF_T4.xer_encoder; |
| 283 | td->elements = asn_DEF_T4.elements; |
| 284 | td->elements_count = asn_DEF_T4.elements_count; |
| 285 | td->specifics = asn_DEF_T4.specifics; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 286 | } |
| 287 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 288 | void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 289 | T3_free(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 290 | void *struct_ptr, int contents_only) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 291 | T3_inherit_TYPE_descriptor(td); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 292 | td->free_struct(td, struct_ptr, contents_only); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 293 | } |
| 294 | |
| 295 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 296 | T3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 297 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 298 | T3_inherit_TYPE_descriptor(td); |
| 299 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 300 | } |
| 301 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 302 | ber_dec_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 303 | T3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 304 | void **structure, void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 305 | T3_inherit_TYPE_descriptor(td); |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 306 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 307 | } |
| 308 | |
| 309 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 310 | T3_encode_der(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 311 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 312 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 313 | T3_inherit_TYPE_descriptor(td); |
| 314 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 315 | } |
| 316 | |
| 317 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 318 | T3_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 319 | int ilevel, enum xer_encoder_flags_e flags, |
| 320 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 321 | T3_inherit_TYPE_descriptor(td); |
| 322 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 323 | } |
| 324 | |
| 325 | |
| 326 | /*** <<< STAT-DEFS [T3] >>> ***/ |
| 327 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 328 | static ber_tlv_tag_t asn_DEF_T3_tags[] = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 329 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 330 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)) |
| 331 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 332 | static ber_tlv_tag_t asn_DEF_T3_all_tags[] = { |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 333 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 334 | (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 335 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
Lev Walkin | 2888f27 | 2004-09-14 12:46:58 +0000 | [diff] [blame] | 336 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 337 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 338 | asn_TYPE_descriptor_t asn_DEF_T3 = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 339 | "T3", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 340 | T3_free, |
| 341 | T3_print, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 342 | T3_constraint, |
| 343 | T3_decode_ber, |
| 344 | T3_encode_der, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 345 | 0, /* Not implemented yet */ |
| 346 | T3_encode_xer, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 347 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 348 | asn_DEF_T3_tags, |
| 349 | sizeof(asn_DEF_T3_tags) |
| 350 | /sizeof(asn_DEF_T3_tags[0]), /* 2 */ |
| 351 | asn_DEF_T3_all_tags, |
| 352 | sizeof(asn_DEF_T3_all_tags) |
| 353 | /sizeof(asn_DEF_T3_all_tags[0]), /* 4 */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 354 | 0, 0, /* No members */ |
| 355 | 0 /* No specifics */ |
| 356 | }; |
| 357 | |
| 358 | |
| 359 | /*** <<< INCLUDES [T4] >>> ***/ |
| 360 | |
| 361 | #include <T5.h> |
| 362 | |
| 363 | /*** <<< TYPE-DECLS [T4] >>> ***/ |
| 364 | |
| 365 | |
| 366 | typedef T5_t T4_t; |
| 367 | |
| 368 | /*** <<< FUNC-DECLS [T4] >>> ***/ |
| 369 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 370 | extern asn_TYPE_descriptor_t asn_DEF_T4; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 371 | asn_struct_free_f T4_free; |
| 372 | asn_struct_print_f T4_print; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 373 | asn_constr_check_f T4_constraint; |
| 374 | ber_type_decoder_f T4_decode_ber; |
| 375 | der_type_encoder_f T4_encode_der; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 376 | xer_type_encoder_f T4_encode_xer; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 377 | |
| 378 | /*** <<< CODE [T4] >>> ***/ |
| 379 | |
| 380 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 381 | T4_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 382 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 383 | /* Replace with underlying type checker */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 384 | td->check_constraints = asn_DEF_T5.check_constraints; |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 385 | return td->check_constraints(td, sptr, app_errlog, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 386 | } |
| 387 | |
| 388 | /* |
| 389 | * This type is implemented using T5, |
Lev Walkin | c3808c1 | 2004-09-23 22:14:58 +0000 | [diff] [blame] | 390 | * so here we adjust the DEF accordingly. |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 391 | */ |
| 392 | static void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 393 | T4_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 394 | td->free_struct = asn_DEF_T5.free_struct; |
| 395 | td->print_struct = asn_DEF_T5.print_struct; |
| 396 | td->ber_decoder = asn_DEF_T5.ber_decoder; |
| 397 | td->der_encoder = asn_DEF_T5.der_encoder; |
| 398 | td->xer_decoder = asn_DEF_T5.xer_decoder; |
| 399 | td->xer_encoder = asn_DEF_T5.xer_encoder; |
| 400 | td->elements = asn_DEF_T5.elements; |
| 401 | td->elements_count = asn_DEF_T5.elements_count; |
| 402 | td->specifics = asn_DEF_T5.specifics; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 403 | } |
| 404 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 405 | void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 406 | T4_free(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 407 | void *struct_ptr, int contents_only) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 408 | T4_inherit_TYPE_descriptor(td); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 409 | td->free_struct(td, struct_ptr, contents_only); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 410 | } |
| 411 | |
| 412 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 413 | T4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 414 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 415 | T4_inherit_TYPE_descriptor(td); |
| 416 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 417 | } |
| 418 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 419 | ber_dec_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 420 | T4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 421 | void **structure, void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 422 | T4_inherit_TYPE_descriptor(td); |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 423 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 424 | } |
| 425 | |
| 426 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 427 | T4_encode_der(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 428 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 429 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 430 | T4_inherit_TYPE_descriptor(td); |
| 431 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 432 | } |
| 433 | |
| 434 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 435 | T4_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 436 | int ilevel, enum xer_encoder_flags_e flags, |
| 437 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 438 | T4_inherit_TYPE_descriptor(td); |
| 439 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 440 | } |
| 441 | |
| 442 | |
| 443 | /*** <<< STAT-DEFS [T4] >>> ***/ |
| 444 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 445 | static ber_tlv_tag_t asn_DEF_T4_tags[] = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 446 | (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 447 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
Lev Walkin | 2888f27 | 2004-09-14 12:46:58 +0000 | [diff] [blame] | 448 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 449 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 450 | asn_TYPE_descriptor_t asn_DEF_T4 = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 451 | "T4", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 452 | T4_free, |
| 453 | T4_print, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 454 | T4_constraint, |
| 455 | T4_decode_ber, |
| 456 | T4_encode_der, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 457 | 0, /* Not implemented yet */ |
| 458 | T4_encode_xer, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 459 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 460 | asn_DEF_T4_tags, |
| 461 | sizeof(asn_DEF_T4_tags) |
| 462 | /sizeof(asn_DEF_T4_tags[0]) - 1, /* 2 */ |
| 463 | asn_DEF_T4_tags, /* Same as above */ |
| 464 | sizeof(asn_DEF_T4_tags) |
| 465 | /sizeof(asn_DEF_T4_tags[0]), /* 3 */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 466 | 0, 0, /* No members */ |
| 467 | 0 /* No specifics */ |
| 468 | }; |
| 469 | |
| 470 | |
| 471 | /*** <<< INCLUDES [T5] >>> ***/ |
| 472 | |
| 473 | #include <T6.h> |
| 474 | |
| 475 | /*** <<< TYPE-DECLS [T5] >>> ***/ |
| 476 | |
| 477 | |
| 478 | typedef T6_t T5_t; |
| 479 | |
| 480 | /*** <<< FUNC-DECLS [T5] >>> ***/ |
| 481 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 482 | extern asn_TYPE_descriptor_t asn_DEF_T5; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 483 | asn_struct_free_f T5_free; |
| 484 | asn_struct_print_f T5_print; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 485 | asn_constr_check_f T5_constraint; |
| 486 | ber_type_decoder_f T5_decode_ber; |
| 487 | der_type_encoder_f T5_encode_der; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 488 | xer_type_encoder_f T5_encode_xer; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 489 | |
| 490 | /*** <<< CODE [T5] >>> ***/ |
| 491 | |
| 492 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 493 | T5_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 494 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 495 | /* Replace with underlying type checker */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 496 | td->check_constraints = asn_DEF_T6.check_constraints; |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 497 | return td->check_constraints(td, sptr, app_errlog, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 498 | } |
| 499 | |
| 500 | /* |
| 501 | * This type is implemented using T6, |
Lev Walkin | c3808c1 | 2004-09-23 22:14:58 +0000 | [diff] [blame] | 502 | * so here we adjust the DEF accordingly. |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 503 | */ |
| 504 | static void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 505 | T5_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 506 | td->free_struct = asn_DEF_T6.free_struct; |
| 507 | td->print_struct = asn_DEF_T6.print_struct; |
| 508 | td->ber_decoder = asn_DEF_T6.ber_decoder; |
| 509 | td->der_encoder = asn_DEF_T6.der_encoder; |
| 510 | td->xer_decoder = asn_DEF_T6.xer_decoder; |
| 511 | td->xer_encoder = asn_DEF_T6.xer_encoder; |
| 512 | td->elements = asn_DEF_T6.elements; |
| 513 | td->elements_count = asn_DEF_T6.elements_count; |
| 514 | td->specifics = asn_DEF_T6.specifics; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 515 | } |
| 516 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 517 | void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 518 | T5_free(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 519 | void *struct_ptr, int contents_only) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 520 | T5_inherit_TYPE_descriptor(td); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 521 | td->free_struct(td, struct_ptr, contents_only); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 522 | } |
| 523 | |
| 524 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 525 | T5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 526 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 527 | T5_inherit_TYPE_descriptor(td); |
| 528 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 529 | } |
| 530 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 531 | ber_dec_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 532 | T5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 533 | void **structure, void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 534 | T5_inherit_TYPE_descriptor(td); |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 535 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 536 | } |
| 537 | |
| 538 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 539 | T5_encode_der(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 540 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 541 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 542 | T5_inherit_TYPE_descriptor(td); |
| 543 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 544 | } |
| 545 | |
| 546 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 547 | T5_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 548 | int ilevel, enum xer_encoder_flags_e flags, |
| 549 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 550 | T5_inherit_TYPE_descriptor(td); |
| 551 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 552 | } |
| 553 | |
| 554 | |
| 555 | /*** <<< STAT-DEFS [T5] >>> ***/ |
| 556 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 557 | static ber_tlv_tag_t asn_DEF_T5_tags[] = { |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 558 | (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
Lev Walkin | 2888f27 | 2004-09-14 12:46:58 +0000 | [diff] [blame] | 559 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 560 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 561 | asn_TYPE_descriptor_t asn_DEF_T5 = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 562 | "T5", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 563 | T5_free, |
| 564 | T5_print, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 565 | T5_constraint, |
| 566 | T5_decode_ber, |
| 567 | T5_encode_der, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 568 | 0, /* Not implemented yet */ |
| 569 | T5_encode_xer, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 570 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 571 | asn_DEF_T5_tags, |
| 572 | sizeof(asn_DEF_T5_tags) |
| 573 | /sizeof(asn_DEF_T5_tags[0]) - 1, /* 1 */ |
| 574 | asn_DEF_T5_tags, /* Same as above */ |
| 575 | sizeof(asn_DEF_T5_tags) |
| 576 | /sizeof(asn_DEF_T5_tags[0]), /* 2 */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 577 | 0, 0, /* No members */ |
| 578 | 0 /* No specifics */ |
| 579 | }; |
| 580 | |
| 581 | |
| 582 | /*** <<< INCLUDES [T6] >>> ***/ |
| 583 | |
Lev Walkin | 2888f27 | 2004-09-14 12:46:58 +0000 | [diff] [blame] | 584 | #include <REAL.h> |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 585 | |
| 586 | /*** <<< TYPE-DECLS [T6] >>> ***/ |
| 587 | |
| 588 | |
Lev Walkin | 2888f27 | 2004-09-14 12:46:58 +0000 | [diff] [blame] | 589 | typedef REAL_t T6_t; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 590 | |
| 591 | /*** <<< FUNC-DECLS [T6] >>> ***/ |
| 592 | |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 593 | /* This type is equivalent to REAL */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 594 | #define asn_DEF_T6 asn_DEF_REAL |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 595 | |
| 596 | /*** <<< CODE [T6] >>> ***/ |
| 597 | |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 598 | /* This type is equivalent to REAL */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 599 | |
| 600 | |
| 601 | /*** <<< INCLUDES [T] >>> ***/ |
| 602 | |
| 603 | #include <Ts.h> |
| 604 | |
| 605 | /*** <<< TYPE-DECLS [T] >>> ***/ |
| 606 | |
| 607 | |
| 608 | typedef Ts_t T_t; |
| 609 | |
| 610 | /*** <<< FUNC-DECLS [T] >>> ***/ |
| 611 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 612 | extern asn_TYPE_descriptor_t asn_DEF_T; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 613 | asn_struct_free_f T_free; |
| 614 | asn_struct_print_f T_print; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 615 | asn_constr_check_f T_constraint; |
| 616 | ber_type_decoder_f T_decode_ber; |
| 617 | der_type_encoder_f T_encode_der; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 618 | xer_type_encoder_f T_encode_xer; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 619 | |
| 620 | /*** <<< CODE [T] >>> ***/ |
| 621 | |
| 622 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 623 | T_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 624 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 625 | /* Replace with underlying type checker */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 626 | td->check_constraints = asn_DEF_Ts.check_constraints; |
Lev Walkin | 154aa18 | 2004-09-26 13:12:56 +0000 | [diff] [blame] | 627 | return td->check_constraints(td, sptr, app_errlog, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 628 | } |
| 629 | |
| 630 | /* |
| 631 | * This type is implemented using Ts, |
Lev Walkin | c3808c1 | 2004-09-23 22:14:58 +0000 | [diff] [blame] | 632 | * so here we adjust the DEF accordingly. |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 633 | */ |
| 634 | static void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 635 | T_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 636 | td->free_struct = asn_DEF_Ts.free_struct; |
| 637 | td->print_struct = asn_DEF_Ts.print_struct; |
| 638 | td->ber_decoder = asn_DEF_Ts.ber_decoder; |
| 639 | td->der_encoder = asn_DEF_Ts.der_encoder; |
| 640 | td->xer_decoder = asn_DEF_Ts.xer_decoder; |
| 641 | td->xer_encoder = asn_DEF_Ts.xer_encoder; |
| 642 | td->elements = asn_DEF_Ts.elements; |
| 643 | td->elements_count = asn_DEF_Ts.elements_count; |
| 644 | td->specifics = asn_DEF_Ts.specifics; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 645 | } |
| 646 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 647 | void |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 648 | T_free(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 649 | void *struct_ptr, int contents_only) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 650 | T_inherit_TYPE_descriptor(td); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 651 | td->free_struct(td, struct_ptr, contents_only); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 652 | } |
| 653 | |
| 654 | int |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 655 | T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 656 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 657 | T_inherit_TYPE_descriptor(td); |
| 658 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 659 | } |
| 660 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 661 | ber_dec_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 662 | T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 663 | void **structure, void *bufptr, size_t size, int tag_mode) { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 664 | T_inherit_TYPE_descriptor(td); |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 665 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 666 | } |
| 667 | |
| 668 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 669 | T_encode_der(asn_TYPE_descriptor_t *td, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 670 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 671 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 672 | T_inherit_TYPE_descriptor(td); |
| 673 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 674 | } |
| 675 | |
| 676 | asn_enc_rval_t |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 677 | T_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 678 | int ilevel, enum xer_encoder_flags_e flags, |
| 679 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 680 | T_inherit_TYPE_descriptor(td); |
| 681 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 682 | } |
| 683 | |
| 684 | |
| 685 | /*** <<< STAT-DEFS [T] >>> ***/ |
| 686 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 687 | static ber_tlv_tag_t asn_DEF_T_tags[] = { |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 688 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 689 | (ASN_TAG_CLASS_CONTEXT | (123 << 2)), |
| 690 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 691 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 692 | asn_TYPE_descriptor_t asn_DEF_T = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 693 | "T", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 694 | T_free, |
| 695 | T_print, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 696 | T_constraint, |
| 697 | T_decode_ber, |
| 698 | T_encode_der, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 699 | 0, /* Not implemented yet */ |
| 700 | T_encode_xer, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 701 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 702 | asn_DEF_T_tags, |
| 703 | sizeof(asn_DEF_T_tags) |
| 704 | /sizeof(asn_DEF_T_tags[0]) - 2, /* 1 */ |
| 705 | asn_DEF_T_tags, /* Same as above */ |
| 706 | sizeof(asn_DEF_T_tags) |
| 707 | /sizeof(asn_DEF_T_tags[0]), /* 3 */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 708 | 0, 0, /* Defined elsewhere */ |
| 709 | 0 /* No specifics */ |
| 710 | }; |
| 711 | |
| 712 | |
| 713 | /*** <<< INCLUDES [Ts] >>> ***/ |
| 714 | |
| 715 | #include <T2.h> |
| 716 | #include <T3.h> |
| 717 | #include <constr_SEQUENCE.h> |
| 718 | |
| 719 | /*** <<< DEPS [Ts] >>> ***/ |
| 720 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 721 | extern asn_TYPE_descriptor_t asn_DEF_Ts; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 722 | |
| 723 | /*** <<< TYPE-DECLS [Ts] >>> ***/ |
| 724 | |
| 725 | |
| 726 | typedef struct Ts { |
| 727 | T2_t m1; |
| 728 | T3_t *m2 /* OPTIONAL */; |
| 729 | T3_t m3; |
| 730 | |
| 731 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 732 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 733 | } Ts_t; |
| 734 | |
| 735 | /*** <<< STAT-DEFS [Ts] >>> ***/ |
| 736 | |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 737 | static asn_TYPE_member_t asn_MBR_Ts[] = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 738 | { ATF_NOFLAGS, 0, offsetof(struct Ts, m1), |
| 739 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 740 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 741 | .type = (void *)&asn_DEF_T2, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 742 | .memb_constraints = 0, /* Defer to actual type */ |
| 743 | .name = "m1" |
| 744 | }, |
| 745 | { ATF_POINTER, 1, offsetof(struct Ts, m2), |
| 746 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 747 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 748 | .type = (void *)&asn_DEF_T3, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 749 | .memb_constraints = 0, /* Defer to actual type */ |
| 750 | .name = "m2" |
| 751 | }, |
| 752 | { ATF_NOFLAGS, 0, offsetof(struct Ts, m3), |
| 753 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 754 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 755 | .type = (void *)&asn_DEF_T3, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 756 | .memb_constraints = 0, /* Defer to actual type */ |
| 757 | .name = "m3" |
| 758 | }, |
| 759 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 760 | static ber_tlv_tag_t asn_DEF_Ts_tags[] = { |
Lev Walkin | 188ed2c | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 761 | (ASN_TAG_CLASS_CONTEXT | (123 << 2)), |
| 762 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 763 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 764 | static asn_TYPE_tag2member_t asn_DEF_Ts_tag2el[] = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 765 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* m1 at 24 */ |
| 766 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* m2 at 25 */ |
| 767 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* m3 at 27 */ |
| 768 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 769 | static asn_SEQUENCE_specifics_t asn_DEF_Ts_specs = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 770 | sizeof(struct Ts), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 771 | offsetof(struct Ts, _asn_ctx), |
| 772 | asn_DEF_Ts_tag2el, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 773 | 3, /* Count of tags in the map */ |
| 774 | -1, /* Start extensions */ |
| 775 | -1 /* Stop extensions */ |
| 776 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 777 | asn_TYPE_descriptor_t asn_DEF_Ts = { |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 778 | "Ts", |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 779 | SEQUENCE_free, |
| 780 | SEQUENCE_print, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 781 | SEQUENCE_constraint, |
| 782 | SEQUENCE_decode_ber, |
| 783 | SEQUENCE_encode_der, |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 784 | 0, /* Not implemented yet */ |
| 785 | SEQUENCE_encode_xer, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 786 | 0, /* Use generic outmost tag fetcher */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 787 | asn_DEF_Ts_tags, |
| 788 | sizeof(asn_DEF_Ts_tags) |
| 789 | /sizeof(asn_DEF_Ts_tags[0]) - 1, /* 1 */ |
| 790 | asn_DEF_Ts_tags, /* Same as above */ |
| 791 | sizeof(asn_DEF_Ts_tags) |
| 792 | /sizeof(asn_DEF_Ts_tags[0]), /* 2 */ |
| 793 | asn_MBR_Ts, |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 794 | 3, /* Elements count */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 795 | &asn_DEF_Ts_specs /* Additional specs */ |
Lev Walkin | 906654e | 2004-09-10 15:49:15 +0000 | [diff] [blame] | 796 | }; |
| 797 | |