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, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 15 | b_PR_h |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 16 | } b_PR; |
| 17 | typedef enum e_PR { |
| 18 | e_PR_NOTHING, /* No components present */ |
| 19 | e_PR_f, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 20 | e_PR_g |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 21 | } e_PR; |
| 22 | typedef enum h_PR { |
| 23 | h_PR_NOTHING, /* No components present */ |
| 24 | h_PR_i, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 25 | h_PR_j |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 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 | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 77 | .type = &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 | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 79 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 80 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 81 | .name = "f" |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 82 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 83 | { ATF_NOFLAGS, 0, offsetof(struct e, choice.g), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 84 | .tag = (ASN_TAG_CLASS_PRIVATE | (8 << 2)), |
| 85 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 86 | .type = &asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 87 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 88 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 89 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 90 | .name = "g" |
| 91 | }, |
| 92 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 93 | static asn_TYPE_tag2member_t asn_MAP_e_tag2el_6[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 94 | { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f at 20 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 95 | { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g at 21 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 96 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 97 | static asn_CHOICE_specifics_t asn_SPC_e_specs_6 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 98 | sizeof(struct e), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 99 | offsetof(struct e, _asn_ctx), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 100 | offsetof(struct e, present), |
| 101 | sizeof(((struct e *)0)->present), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 102 | asn_MAP_e_tag2el_6, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 103 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 104 | .canonical_order = 0, |
| 105 | .ext_start = -1 /* Extensions start */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 106 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 107 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 108 | asn_TYPE_descriptor_t asn_DEF_e_6 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 109 | "e", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 110 | "e", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 111 | CHOICE_free, |
| 112 | CHOICE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 113 | CHOICE_constraint, |
| 114 | CHOICE_decode_ber, |
| 115 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 116 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 117 | CHOICE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 118 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 119 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 120 | 0, /* No effective tags (pointer) */ |
| 121 | 0, /* No effective tags (count) */ |
| 122 | 0, /* No tags (pointer) */ |
| 123 | 0, /* No tags (count) */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 124 | 0, /* No PER visible constraints */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 125 | asn_MBR_e_6, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 126 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 127 | &asn_SPC_e_specs_6 /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 128 | }; |
| 129 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 130 | static asn_TYPE_member_t asn_MBR_h_9[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 131 | { ATF_NOFLAGS, 0, offsetof(struct h, choice.i), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 132 | .tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)), |
| 133 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 134 | .type = &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 | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 136 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 137 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 138 | .name = "i" |
| 139 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 140 | { ATF_NOFLAGS, 0, offsetof(struct h, choice.j), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 141 | .tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)), |
| 142 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 143 | .type = &asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 144 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 145 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 146 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 147 | .name = "j" |
| 148 | }, |
| 149 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 150 | static asn_TYPE_tag2member_t asn_MAP_h_tag2el_9[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 151 | { (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i at 24 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 152 | { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j at 25 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 153 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 154 | static asn_CHOICE_specifics_t asn_SPC_h_specs_9 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 155 | sizeof(struct h), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 156 | offsetof(struct h, _asn_ctx), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 157 | offsetof(struct h, present), |
| 158 | sizeof(((struct h *)0)->present), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 159 | asn_MAP_h_tag2el_9, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 160 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 161 | .canonical_order = 0, |
| 162 | .ext_start = -1 /* Extensions start */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 163 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 164 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 165 | asn_TYPE_descriptor_t asn_DEF_h_9 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 166 | "h", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 167 | "h", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 168 | CHOICE_free, |
| 169 | CHOICE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 170 | CHOICE_constraint, |
| 171 | CHOICE_decode_ber, |
| 172 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 173 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 174 | CHOICE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 175 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 176 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 177 | 0, /* No effective tags (pointer) */ |
| 178 | 0, /* No effective tags (count) */ |
| 179 | 0, /* No tags (pointer) */ |
| 180 | 0, /* No tags (count) */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 181 | 0, /* No PER visible constraints */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 182 | asn_MBR_h_9, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 183 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 184 | &asn_SPC_h_specs_9 /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 185 | }; |
| 186 | |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 187 | static asn_TYPE_member_t asn_MBR_b_3[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 188 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.c), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 189 | .tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)), |
| 190 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 191 | .type = &asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 192 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 193 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 194 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 195 | .name = "c" |
| 196 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 197 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.d), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 198 | .tag = (ASN_TAG_CLASS_PRIVATE | (6 << 2)), |
| 199 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 200 | .type = &asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 201 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 202 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 203 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 204 | .name = "d" |
| 205 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 206 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.e), |
vlm | 060fe2a | 2004-09-10 09:37:12 +0000 | [diff] [blame] | 207 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 208 | .tag_mode = 0, |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 209 | .type = &asn_DEF_e_6, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 210 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 211 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 212 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 213 | .name = "e" |
| 214 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 215 | { ATF_NOFLAGS, 0, offsetof(struct b, choice.h), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 216 | .tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)), |
| 217 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 218 | .type = &asn_DEF_h_9, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 219 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 220 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 221 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 222 | .name = "h" |
| 223 | }, |
| 224 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 225 | static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 226 | { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c at 17 */ |
| 227 | { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */ |
| 228 | { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f at 20 */ |
| 229 | { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g at 21 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 230 | { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h at 24 */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 231 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 232 | static asn_CHOICE_specifics_t asn_SPC_b_specs_3 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 233 | sizeof(struct b), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 234 | offsetof(struct b, _asn_ctx), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 235 | offsetof(struct b, present), |
| 236 | sizeof(((struct b *)0)->present), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 237 | asn_MAP_b_tag2el_3, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 238 | 5, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 239 | .canonical_order = 0, |
| 240 | .ext_start = -1 /* Extensions start */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 241 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 242 | static /* Use -fall-defs-global to expose */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 243 | asn_TYPE_descriptor_t asn_DEF_b_3 = { |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 244 | "b", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 245 | "b", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 246 | CHOICE_free, |
| 247 | CHOICE_print, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 248 | CHOICE_constraint, |
| 249 | CHOICE_decode_ber, |
| 250 | CHOICE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 251 | CHOICE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 252 | CHOICE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 253 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 254 | CHOICE_outmost_tag, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 255 | 0, /* No effective tags (pointer) */ |
| 256 | 0, /* No effective tags (count) */ |
| 257 | 0, /* No tags (pointer) */ |
| 258 | 0, /* No tags (count) */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 259 | 0, /* No PER visible constraints */ |
vlm | 67d57fe | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 260 | asn_MBR_b_3, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 261 | 4, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 262 | &asn_SPC_b_specs_3 /* Additional specs */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 263 | }; |
| 264 | |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 265 | static asn_TYPE_member_t asn_MBR_T_1[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 266 | { ATF_NOFLAGS, 0, offsetof(struct T, a), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 267 | .tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)), |
| 268 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 269 | .type = &asn_DEF_NULL, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 270 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 271 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 272 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 273 | .name = "a" |
| 274 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 275 | { ATF_NOFLAGS, 0, offsetof(struct T, b), |
vlm | 060fe2a | 2004-09-10 09:37:12 +0000 | [diff] [blame] | 276 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 277 | .tag_mode = 0, |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 278 | .type = &asn_DEF_b_3, |
vlm | 0a9af51 | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 279 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 280 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 281 | .default_value = 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 282 | .name = "b" |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 283 | }, |
| 284 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 285 | static ber_tlv_tag_t asn_DEF_T_tags_1[] = { |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 286 | (ASN_TAG_CLASS_PRIVATE | (1 << 2)), |
| 287 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 288 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 289 | static asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 290 | { (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 0, 0, 0 }, /* a at 15 */ |
| 291 | { (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 1, 0, 0 }, /* c at 17 */ |
| 292 | { (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */ |
| 293 | { (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 1, 0, 0 }, /* f at 20 */ |
| 294 | { (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 }, /* g at 21 */ |
vlm | 7f061a7 | 2005-02-25 08:19:34 +0000 | [diff] [blame] | 295 | { (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 1, 0, 0 } /* h at 24 */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 296 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 297 | static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 298 | sizeof(struct T), |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 299 | offsetof(struct T, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 300 | asn_MAP_T_tag2el_1, |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 301 | 6, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 302 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 303 | -1, /* Start extensions */ |
| 304 | -1 /* Stop extensions */ |
| 305 | }; |
vlm | 0229643 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 306 | asn_TYPE_descriptor_t asn_DEF_T = { |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 307 | "T", |
vlm | 9de248e | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 308 | "T", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 309 | SEQUENCE_free, |
| 310 | SEQUENCE_print, |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 311 | SEQUENCE_constraint, |
| 312 | SEQUENCE_decode_ber, |
| 313 | SEQUENCE_encode_der, |
vlm | 2dbab7c | 2004-10-23 15:07:45 +0000 | [diff] [blame] | 314 | SEQUENCE_decode_xer, |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 315 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 316 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 317 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 318 | asn_DEF_T_tags_1, |
| 319 | sizeof(asn_DEF_T_tags_1) |
| 320 | /sizeof(asn_DEF_T_tags_1[0]) - 1, /* 1 */ |
| 321 | asn_DEF_T_tags_1, /* Same as above */ |
| 322 | sizeof(asn_DEF_T_tags_1) |
| 323 | /sizeof(asn_DEF_T_tags_1[0]), /* 2 */ |
| 324 | 0, /* No PER visible constraints */ |
vlm | 44fe49a | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 325 | asn_MBR_T_1, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 326 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 327 | &asn_SPC_T_specs_1 /* Additional specs */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 328 | }; |
| 329 | |