vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 1 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 2 | /*** <<< INCLUDES [T] >>> ***/ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 3 | |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 4 | #include <NULL.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 5 | #include <constr_CHOICE.h> |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 6 | #include <constr_SEQUENCE.h> |
| 7 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 8 | /*** <<< DEPS [T] >>> ***/ |
| 9 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 10 | typedef enum b_PR { |
| 11 | b_PR_NOTHING, /* No components present */ |
| 12 | b_PR_c, |
| 13 | b_PR_d, |
| 14 | b_PR_e, |
| 15 | b_PR_h, |
| 16 | } b_PR; |
| 17 | typedef enum e_PR { |
| 18 | e_PR_NOTHING, /* No components present */ |
| 19 | e_PR_f, |
| 20 | e_PR_g, |
| 21 | } e_PR; |
| 22 | typedef enum h_PR { |
| 23 | h_PR_NOTHING, /* No components present */ |
| 24 | h_PR_i, |
| 25 | h_PR_j, |
| 26 | } h_PR; |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 27 | |
| 28 | /*** <<< TYPE-DECLS [T] >>> ***/ |
| 29 | |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 30 | typedef struct T { |
| 31 | NULL_t a; |
| 32 | struct b { |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 33 | b_PR present; |
vlm | 2e77428 | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 34 | union T__b_u { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 35 | NULL_t c; |
| 36 | NULL_t d; |
| 37 | struct e { |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 38 | e_PR present; |
vlm | 2e77428 | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 39 | union T__b__e_u { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 40 | NULL_t f; |
| 41 | NULL_t g; |
| 42 | } choice; |
| 43 | |
| 44 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 45 | asn_struct_ctx_t _asn_ctx; |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 46 | } e; |
| 47 | struct h { |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 48 | h_PR present; |
vlm | 2e77428 | 2005-08-14 15:03:31 +0000 | [diff] [blame] | 49 | union T__b__h_u { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 50 | NULL_t i; |
| 51 | NULL_t j; |
| 52 | } choice; |
| 53 | |
| 54 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 55 | asn_struct_ctx_t _asn_ctx; |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 56 | } h; |
| 57 | } choice; |
| 58 | |
| 59 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 60 | asn_struct_ctx_t _asn_ctx; |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 61 | } b; |
| 62 | |
| 63 | /* Context for parsing across buffer boundaries */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 64 | asn_struct_ctx_t _asn_ctx; |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 65 | } T_t; |
| 66 | |
vlm | 0b567bf | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 67 | /*** <<< FUNC-DECLS [T] >>> ***/ |
| 68 | |
| 69 | extern asn_TYPE_descriptor_t asn_DEF_T; |
| 70 | |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 71 | /*** <<< STAT-DEFS [T] >>> ***/ |
| 72 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 73 | static asn_TYPE_member_t asn_MBR_e_6[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 74 | { ATF_NOFLAGS, 0, offsetof(struct e, choice.f), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 75 | .tag = (ASN_TAG_CLASS_PRIVATE | (7 << 2)), |
| 76 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 77 | .type = (void *)&asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 78 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 79 | .name = "f" |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 80 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 81 | { ATF_NOFLAGS, 0, offsetof(struct e, choice.g), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 82 | .tag = (ASN_TAG_CLASS_PRIVATE | (8 << 2)), |
| 83 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 84 | .type = (void *)&asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 85 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 86 | .name = "g" |
| 87 | }, |
| 88 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 89 | static asn_TYPE_tag2member_t asn_MAP_e_6_tag2el[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 90 | { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f at 20 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 91 | { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g at 21 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 92 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 93 | static asn_CHOICE_specifics_t asn_SPC_e_6_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 94 | sizeof(struct e), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 95 | offsetof(struct e, _asn_ctx), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 96 | offsetof(struct e, present), |
| 97 | sizeof(((struct e *)0)->present), |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 98 | asn_MAP_e_6_tag2el, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 99 | 2, /* Count of tags in the map */ |
| 100 | 0 /* Whether extensible */ |
| 101 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 102 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 103 | asn_TYPE_descriptor_t asn_DEF_e_6 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 104 | "e", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 105 | "e", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 106 | CHOICE_free, |
| 107 | CHOICE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 108 | CHOICE_constraint, |
| 109 | CHOICE_decode_ber, |
| 110 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 111 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 112 | CHOICE_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 113 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 114 | 0, /* No effective tags (pointer) */ |
| 115 | 0, /* No effective tags (count) */ |
| 116 | 0, /* No tags (pointer) */ |
| 117 | 0, /* No tags (count) */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 118 | asn_MBR_e_6, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 119 | 2, /* Elements count */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 120 | &asn_SPC_e_6_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 121 | }; |
| 122 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 123 | static asn_TYPE_member_t asn_MBR_h_9[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 124 | { ATF_NOFLAGS, 0, offsetof(struct h, choice.i), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 125 | .tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)), |
| 126 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 127 | .type = (void *)&asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 128 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 129 | .name = "i" |
| 130 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 131 | { ATF_NOFLAGS, 0, offsetof(struct h, choice.j), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 132 | .tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)), |
| 133 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 134 | .type = (void *)&asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 135 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 136 | .name = "j" |
| 137 | }, |
| 138 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 139 | static asn_TYPE_tag2member_t asn_MAP_h_9_tag2el[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 140 | { (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i at 24 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 141 | { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j at 25 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 142 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 143 | static asn_CHOICE_specifics_t asn_SPC_h_9_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 144 | sizeof(struct h), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 145 | offsetof(struct h, _asn_ctx), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 146 | offsetof(struct h, present), |
| 147 | sizeof(((struct h *)0)->present), |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 148 | asn_MAP_h_9_tag2el, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 149 | 2, /* Count of tags in the map */ |
| 150 | 0 /* Whether extensible */ |
| 151 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 152 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 153 | asn_TYPE_descriptor_t asn_DEF_h_9 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 154 | "h", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 155 | "h", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 156 | CHOICE_free, |
| 157 | CHOICE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 158 | CHOICE_constraint, |
| 159 | CHOICE_decode_ber, |
| 160 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 161 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 162 | CHOICE_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 163 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 164 | 0, /* No effective tags (pointer) */ |
| 165 | 0, /* No effective tags (count) */ |
| 166 | 0, /* No tags (pointer) */ |
| 167 | 0, /* No tags (count) */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 168 | asn_MBR_h_9, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 169 | 2, /* Elements count */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 170 | &asn_SPC_h_9_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 171 | }; |
| 172 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 173 | static asn_TYPE_member_t asn_MBR_b_3[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 174 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.c), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 175 | .tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)), |
| 176 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 177 | .type = (void *)&asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 178 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 179 | .name = "c" |
| 180 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 181 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.d), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 182 | .tag = (ASN_TAG_CLASS_PRIVATE | (6 << 2)), |
| 183 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 184 | .type = (void *)&asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 185 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 186 | .name = "d" |
| 187 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 188 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.e), |
vlm | 060fe2a | 2004-09-10 09:37:12 +0000 | [diff] [blame] | 189 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 190 | .tag_mode = 0, |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 191 | .type = (void *)&asn_DEF_e_6, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 192 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 193 | .name = "e" |
| 194 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 195 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.h), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 196 | .tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)), |
| 197 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 198 | .type = (void *)&asn_DEF_h_9, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 199 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 200 | .name = "h" |
| 201 | }, |
| 202 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 203 | static asn_TYPE_tag2member_t asn_MAP_b_3_tag2el[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 204 | { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c at 17 */ |
| 205 | { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */ |
| 206 | { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f at 20 */ |
| 207 | { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g at 21 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 208 | { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h at 24 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 209 | }; |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 210 | static asn_CHOICE_specifics_t asn_SPC_b_3_specs = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 211 | sizeof(struct b), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 212 | offsetof(struct b, _asn_ctx), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 213 | offsetof(struct b, present), |
| 214 | sizeof(((struct b *)0)->present), |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 215 | asn_MAP_b_3_tag2el, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 216 | 5, /* Count of tags in the map */ |
| 217 | 0 /* Whether extensible */ |
| 218 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 219 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 220 | asn_TYPE_descriptor_t asn_DEF_b_3 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 221 | "b", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 222 | "b", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 223 | CHOICE_free, |
| 224 | CHOICE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 225 | CHOICE_constraint, |
| 226 | CHOICE_decode_ber, |
| 227 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 228 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 229 | CHOICE_encode_xer, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 230 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 231 | 0, /* No effective tags (pointer) */ |
| 232 | 0, /* No effective tags (count) */ |
| 233 | 0, /* No tags (pointer) */ |
| 234 | 0, /* No tags (count) */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 235 | asn_MBR_b_3, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 236 | 4, /* Elements count */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 237 | &asn_SPC_b_3_specs /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 238 | }; |
| 239 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 240 | static asn_TYPE_member_t asn_MBR_T_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 241 | { ATF_NOFLAGS, 0, offsetof(struct T, a), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 242 | .tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)), |
| 243 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 244 | .type = (void *)&asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 245 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 246 | .name = "a" |
| 247 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 248 | { ATF_NOFLAGS, 0, offsetof(struct T, b), |
vlm | 060fe2a | 2004-09-10 09:37:12 +0000 | [diff] [blame] | 249 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 250 | .tag_mode = 0, |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 251 | .type = (void *)&asn_DEF_b_3, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 252 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 253 | .name = "b" |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 254 | }, |
| 255 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 256 | static ber_tlv_tag_t asn_DEF_T_1_tags[] = { |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 257 | (ASN_TAG_CLASS_PRIVATE | (1 << 2)), |
| 258 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 259 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 260 | static asn_TYPE_tag2member_t asn_MAP_T_1_tag2el[] = { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 261 | { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 0, 0, 0 }, /* a at 15 */ |
| 262 | { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 1, 0, 0 }, /* c at 17 */ |
| 263 | { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */ |
| 264 | { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 1, 0, 0 }, /* f at 20 */ |
| 265 | { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 }, /* g at 21 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 266 | { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 1, 0, 0 } /* h at 24 */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 267 | }; |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 268 | static asn_SEQUENCE_specifics_t asn_SPC_T_1_specs = { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 269 | sizeof(struct T), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 270 | offsetof(struct T, _asn_ctx), |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 271 | asn_MAP_T_1_tag2el, |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 272 | 6, /* Count of tags in the map */ |
| 273 | -1, /* Start extensions */ |
| 274 | -1 /* Stop extensions */ |
| 275 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 276 | asn_TYPE_descriptor_t asn_DEF_T = { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 277 | "T", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 278 | "T", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 279 | SEQUENCE_free, |
| 280 | SEQUENCE_print, |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 281 | SEQUENCE_constraint, |
| 282 | SEQUENCE_decode_ber, |
| 283 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 284 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 285 | SEQUENCE_encode_xer, |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 286 | 0, /* Use generic outmost tag fetcher */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 287 | asn_DEF_T_1_tags, |
| 288 | sizeof(asn_DEF_T_1_tags) |
| 289 | /sizeof(asn_DEF_T_1_tags[0]) - 1, /* 1 */ |
| 290 | asn_DEF_T_1_tags, /* Same as above */ |
| 291 | sizeof(asn_DEF_T_1_tags) |
| 292 | /sizeof(asn_DEF_T_1_tags[0]), /* 2 */ |
| 293 | asn_MBR_T_1, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 294 | 2, /* Elements count */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 295 | &asn_SPC_T_1_specs /* Additional specs */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 296 | }; |
| 297 | |