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