vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Everything] >>> ***/ |
| 3 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 4 | #include "Set.h" |
| 5 | #include "Alpha.h" |
| 6 | #include "Beta.h" |
| 7 | #include "Gamma.h" |
| 8 | #include "OneTwo.h" |
| 9 | #include "TwoThree.h" |
| 10 | #include "ThreeOne.h" |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 11 | #include <constr_SEQUENCE.h> |
| 12 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 13 | /*** <<< FWD-DECLS [Everything] >>> ***/ |
| 14 | |
| 15 | struct Choice1; |
| 16 | struct Choice2; |
| 17 | struct Choice3; |
| 18 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 19 | /*** <<< TYPE-DECLS [Everything] >>> ***/ |
| 20 | |
| 21 | typedef struct Everything { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 22 | struct Choice1 *ch1; |
| 23 | struct Choice2 *ch2; |
| 24 | struct Choice3 *ch3; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 25 | Set_t set; |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 26 | Alpha_t a; |
| 27 | Beta_t b; |
| 28 | Gamma_t g; |
| 29 | OneTwo_t ot; |
| 30 | TwoThree_t tt; |
| 31 | ThreeOne_t to; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 32 | |
| 33 | /* Context for parsing across buffer boundaries */ |
| 34 | asn_struct_ctx_t _asn_ctx; |
| 35 | } Everything_t; |
| 36 | |
| 37 | /*** <<< FUNC-DECLS [Everything] >>> ***/ |
| 38 | |
| 39 | extern asn_TYPE_descriptor_t asn_DEF_Everything; |
| 40 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 41 | /*** <<< POST-INCLUDE [Everything] >>> ***/ |
| 42 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 43 | #include "Choice1.h" |
| 44 | #include "Choice2.h" |
| 45 | #include "Choice3.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 46 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 47 | /*** <<< STAT-DEFS [Everything] >>> ***/ |
| 48 | |
| 49 | static asn_TYPE_member_t asn_MBR_Everything_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 50 | { ATF_POINTER, 0, offsetof(struct Everything, ch1), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 51 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 52 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 53 | .type = &asn_DEF_Choice1, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 54 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 55 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 56 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 57 | .name = "ch1" |
| 58 | }, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 59 | { ATF_POINTER, 0, offsetof(struct Everything, ch2), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 60 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 61 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 62 | .type = &asn_DEF_Choice2, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 63 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 64 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 65 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 66 | .name = "ch2" |
| 67 | }, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 68 | { ATF_POINTER, 0, offsetof(struct Everything, ch3), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 69 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 70 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 71 | .type = &asn_DEF_Choice3, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 72 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 73 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 74 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 75 | .name = "ch3" |
| 76 | }, |
| 77 | { ATF_NOFLAGS, 0, offsetof(struct Everything, set), |
| 78 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 79 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 80 | .type = &asn_DEF_Set, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 81 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 82 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 83 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 84 | .name = "set" |
| 85 | }, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 86 | { ATF_NOFLAGS, 0, offsetof(struct Everything, a), |
| 87 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 88 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 89 | .type = &asn_DEF_Alpha, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 90 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 91 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 92 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 93 | .name = "a" |
| 94 | }, |
| 95 | { ATF_NOFLAGS, 0, offsetof(struct Everything, b), |
| 96 | .tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
| 97 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 98 | .type = &asn_DEF_Beta, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 99 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 100 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 101 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 102 | .name = "b" |
| 103 | }, |
| 104 | { ATF_NOFLAGS, 0, offsetof(struct Everything, g), |
| 105 | .tag = (ASN_TAG_CLASS_CONTEXT | (6 << 2)), |
| 106 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 107 | .type = &asn_DEF_Gamma, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 108 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 109 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 110 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 111 | .name = "g" |
| 112 | }, |
| 113 | { ATF_NOFLAGS, 0, offsetof(struct Everything, ot), |
| 114 | .tag = (ASN_TAG_CLASS_CONTEXT | (7 << 2)), |
| 115 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 116 | .type = &asn_DEF_OneTwo, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 117 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 118 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 119 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 120 | .name = "ot" |
| 121 | }, |
| 122 | { ATF_NOFLAGS, 0, offsetof(struct Everything, tt), |
| 123 | .tag = (ASN_TAG_CLASS_CONTEXT | (8 << 2)), |
| 124 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 125 | .type = &asn_DEF_TwoThree, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 126 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 127 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 128 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 129 | .name = "tt" |
| 130 | }, |
| 131 | { ATF_NOFLAGS, 0, offsetof(struct Everything, to), |
| 132 | .tag = (ASN_TAG_CLASS_CONTEXT | (9 << 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_ThreeOne, |
vlm | 6c4a850 | 2005-08-18 13:38: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 | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 138 | .name = "to" |
| 139 | }, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 140 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 141 | static ber_tlv_tag_t asn_DEF_Everything_tags_1[] = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 142 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 143 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 144 | static asn_TYPE_tag2member_t asn_MAP_Everything_tag2el_1[] = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 145 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ch1 at 15 */ |
| 146 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ch2 at 16 */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 147 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ch3 at 17 */ |
| 148 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set at 18 */ |
| 149 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* a at 19 */ |
| 150 | { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* b at 20 */ |
| 151 | { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* g at 21 */ |
| 152 | { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* ot at 22 */ |
| 153 | { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* tt at 23 */ |
| 154 | { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* to at 25 */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 155 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 156 | static asn_SEQUENCE_specifics_t asn_SPC_Everything_specs_1 = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 157 | sizeof(struct Everything), |
| 158 | offsetof(struct Everything, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 159 | asn_MAP_Everything_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 160 | 10, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 161 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 162 | -1, /* Start extensions */ |
| 163 | -1 /* Stop extensions */ |
| 164 | }; |
| 165 | asn_TYPE_descriptor_t asn_DEF_Everything = { |
| 166 | "Everything", |
| 167 | "Everything", |
| 168 | SEQUENCE_free, |
| 169 | SEQUENCE_print, |
| 170 | SEQUENCE_constraint, |
| 171 | SEQUENCE_decode_ber, |
| 172 | SEQUENCE_encode_der, |
| 173 | SEQUENCE_decode_xer, |
| 174 | SEQUENCE_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 | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 176 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 177 | asn_DEF_Everything_tags_1, |
| 178 | sizeof(asn_DEF_Everything_tags_1) |
| 179 | /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */ |
| 180 | asn_DEF_Everything_tags_1, /* Same as above */ |
| 181 | sizeof(asn_DEF_Everything_tags_1) |
| 182 | /sizeof(asn_DEF_Everything_tags_1[0]), /* 1 */ |
| 183 | 0, /* No PER visible constraints */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 184 | asn_MBR_Everything_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 185 | 10, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 186 | &asn_SPC_Everything_specs_1 /* Additional specs */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 187 | }; |
| 188 | |
| 189 | |
| 190 | /*** <<< INCLUDES [Choice1] >>> ***/ |
| 191 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 192 | #include <constr_CHOICE.h> |
| 193 | |
| 194 | /*** <<< DEPS [Choice1] >>> ***/ |
| 195 | |
| 196 | typedef enum Choice1_PR { |
| 197 | Choice1_PR_NOTHING, /* No components present */ |
| 198 | Choice1_PR_something, |
| 199 | /* Extensions may appear below */ |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 200 | Choice1_PR_some2 |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 201 | } Choice1_PR; |
| 202 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 203 | /*** <<< FWD-DECLS [Choice1] >>> ***/ |
| 204 | |
| 205 | struct Everything; |
| 206 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 207 | /*** <<< TYPE-DECLS [Choice1] >>> ***/ |
| 208 | |
| 209 | typedef struct Choice1 { |
| 210 | Choice1_PR present; |
| 211 | union Choice1_u { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 212 | struct Everything *something; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 213 | /* |
| 214 | * This type is extensible, |
| 215 | * possible extensions are below. |
| 216 | */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 217 | struct Everything *some2; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 218 | } choice; |
| 219 | |
| 220 | /* Context for parsing across buffer boundaries */ |
| 221 | asn_struct_ctx_t _asn_ctx; |
| 222 | } Choice1_t; |
| 223 | |
| 224 | /*** <<< FUNC-DECLS [Choice1] >>> ***/ |
| 225 | |
| 226 | extern asn_TYPE_descriptor_t asn_DEF_Choice1; |
| 227 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 228 | /*** <<< POST-INCLUDE [Choice1] >>> ***/ |
| 229 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 230 | #include "Everything.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 231 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 232 | /*** <<< STAT-DEFS [Choice1] >>> ***/ |
| 233 | |
| 234 | static asn_TYPE_member_t asn_MBR_Choice1_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 235 | { ATF_POINTER, 0, offsetof(struct Choice1, choice.something), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 236 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 237 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 238 | .type = &asn_DEF_Everything, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 239 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 240 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 241 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 242 | .name = "something" |
| 243 | }, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 244 | { ATF_POINTER, 0, offsetof(struct Choice1, choice.some2), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 245 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 246 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 247 | .type = &asn_DEF_Everything, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 248 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 249 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 250 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 251 | .name = "some2" |
| 252 | }, |
| 253 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 254 | static asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 255 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* something at 29 */ |
| 256 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some2 at 32 */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 257 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 258 | static asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1 = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 259 | sizeof(struct Choice1), |
| 260 | offsetof(struct Choice1, _asn_ctx), |
| 261 | offsetof(struct Choice1, present), |
| 262 | sizeof(((struct Choice1 *)0)->present), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 263 | asn_MAP_Choice1_tag2el_1, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 264 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 265 | .canonical_order = 0, |
| 266 | .ext_start = 1 /* Extensions start */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 267 | }; |
| 268 | asn_TYPE_descriptor_t asn_DEF_Choice1 = { |
| 269 | "Choice1", |
| 270 | "Choice1", |
| 271 | CHOICE_free, |
| 272 | CHOICE_print, |
| 273 | CHOICE_constraint, |
| 274 | CHOICE_decode_ber, |
| 275 | CHOICE_encode_der, |
| 276 | CHOICE_decode_xer, |
| 277 | CHOICE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 278 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 279 | CHOICE_outmost_tag, |
| 280 | 0, /* No effective tags (pointer) */ |
| 281 | 0, /* No effective tags (count) */ |
| 282 | 0, /* No tags (pointer) */ |
| 283 | 0, /* No tags (count) */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 284 | 0, /* No PER visible constraints */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 285 | asn_MBR_Choice1_1, |
| 286 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 287 | &asn_SPC_Choice1_specs_1 /* Additional specs */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 288 | }; |
| 289 | |
| 290 | |
| 291 | /*** <<< INCLUDES [Choice2] >>> ***/ |
| 292 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 293 | #include "TypeRef.h" |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 294 | #include <constr_CHOICE.h> |
| 295 | |
| 296 | /*** <<< DEPS [Choice2] >>> ***/ |
| 297 | |
| 298 | typedef enum Choice2_PR { |
| 299 | Choice2_PR_NOTHING, /* No components present */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 300 | Choice2_PR_typeref, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 301 | /* Extensions may appear below */ |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 302 | Choice2_PR_some3 |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 303 | } Choice2_PR; |
| 304 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 305 | /*** <<< FWD-DECLS [Choice2] >>> ***/ |
| 306 | |
| 307 | struct Everything; |
| 308 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 309 | /*** <<< TYPE-DECLS [Choice2] >>> ***/ |
| 310 | |
| 311 | typedef struct Choice2 { |
| 312 | Choice2_PR present; |
| 313 | union Choice2_u { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 314 | TypeRef_t typeref; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 315 | /* |
| 316 | * This type is extensible, |
| 317 | * possible extensions are below. |
| 318 | */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 319 | struct Everything *some3; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 320 | } choice; |
| 321 | |
| 322 | /* Context for parsing across buffer boundaries */ |
| 323 | asn_struct_ctx_t _asn_ctx; |
| 324 | } Choice2_t; |
| 325 | |
| 326 | /*** <<< FUNC-DECLS [Choice2] >>> ***/ |
| 327 | |
| 328 | extern asn_TYPE_descriptor_t asn_DEF_Choice2; |
| 329 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 330 | /*** <<< POST-INCLUDE [Choice2] >>> ***/ |
| 331 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 332 | #include "Everything.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 333 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 334 | /*** <<< STAT-DEFS [Choice2] >>> ***/ |
| 335 | |
| 336 | static asn_TYPE_member_t asn_MBR_Choice2_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 337 | { ATF_NOFLAGS, 0, offsetof(struct Choice2, choice.typeref), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 338 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 339 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 340 | .type = &asn_DEF_TypeRef, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 341 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 342 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 343 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 344 | .name = "typeref" |
| 345 | }, |
| 346 | { ATF_POINTER, 0, offsetof(struct Choice2, choice.some3), |
| 347 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 348 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 349 | .type = &asn_DEF_Everything, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 350 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 351 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 352 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 353 | .name = "some3" |
| 354 | }, |
| 355 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 356 | static asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 357 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* typeref at 35 */ |
| 358 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* some3 at 38 */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 359 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 360 | static asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 361 | sizeof(struct Choice2), |
| 362 | offsetof(struct Choice2, _asn_ctx), |
| 363 | offsetof(struct Choice2, present), |
| 364 | sizeof(((struct Choice2 *)0)->present), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 365 | asn_MAP_Choice2_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 366 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 367 | .canonical_order = 0, |
| 368 | .ext_start = 1 /* Extensions start */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 369 | }; |
| 370 | asn_TYPE_descriptor_t asn_DEF_Choice2 = { |
| 371 | "Choice2", |
| 372 | "Choice2", |
| 373 | CHOICE_free, |
| 374 | CHOICE_print, |
| 375 | CHOICE_constraint, |
| 376 | CHOICE_decode_ber, |
| 377 | CHOICE_encode_der, |
| 378 | CHOICE_decode_xer, |
| 379 | CHOICE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 380 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 381 | CHOICE_outmost_tag, |
| 382 | 0, /* No effective tags (pointer) */ |
| 383 | 0, /* No effective tags (count) */ |
| 384 | 0, /* No tags (pointer) */ |
| 385 | 0, /* No tags (count) */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 386 | 0, /* No PER visible constraints */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 387 | asn_MBR_Choice2_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 388 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 389 | &asn_SPC_Choice2_specs_1 /* Additional specs */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 390 | }; |
| 391 | |
| 392 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 393 | /*** <<< INCLUDES [Choice3] >>> ***/ |
| 394 | |
| 395 | #include <constr_SEQUENCE.h> |
| 396 | #include <asn_SEQUENCE_OF.h> |
| 397 | #include <constr_SEQUENCE_OF.h> |
| 398 | #include <constr_CHOICE.h> |
| 399 | |
| 400 | /*** <<< DEPS [Choice3] >>> ***/ |
| 401 | |
| 402 | typedef enum Choice3_PR { |
| 403 | Choice3_PR_NOTHING, /* No components present */ |
| 404 | Choice3_PR_a, |
| 405 | Choice3_PR_b, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 406 | Choice3_PR_c |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 407 | } Choice3_PR; |
| 408 | |
| 409 | /*** <<< FWD-DECLS [Choice3] >>> ***/ |
| 410 | |
| 411 | struct Everything; |
| 412 | struct Choice3; |
| 413 | |
| 414 | /*** <<< TYPE-DECLS [Choice3] >>> ***/ |
| 415 | |
| 416 | typedef struct Choice3 { |
| 417 | Choice3_PR present; |
| 418 | union Choice3_u { |
| 419 | struct a { |
| 420 | struct Everything *aa; |
| 421 | |
| 422 | /* Context for parsing across buffer boundaries */ |
| 423 | asn_struct_ctx_t _asn_ctx; |
| 424 | } a; |
| 425 | struct Everything *b; |
| 426 | struct c { |
| 427 | A_SEQUENCE_OF(struct Choice3) list; |
| 428 | |
| 429 | /* Context for parsing across buffer boundaries */ |
| 430 | asn_struct_ctx_t _asn_ctx; |
| 431 | } c; |
| 432 | } choice; |
| 433 | |
| 434 | /* Context for parsing across buffer boundaries */ |
| 435 | asn_struct_ctx_t _asn_ctx; |
| 436 | } Choice3_t; |
| 437 | |
| 438 | /*** <<< FUNC-DECLS [Choice3] >>> ***/ |
| 439 | |
| 440 | extern asn_TYPE_descriptor_t asn_DEF_Choice3; |
| 441 | |
| 442 | /*** <<< POST-INCLUDE [Choice3] >>> ***/ |
| 443 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 444 | #include "Everything.h" |
| 445 | #include "Choice3.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 446 | |
| 447 | /*** <<< STAT-DEFS [Choice3] >>> ***/ |
| 448 | |
| 449 | static asn_TYPE_member_t asn_MBR_a_2[] = { |
| 450 | { ATF_POINTER, 0, offsetof(struct a, aa), |
| 451 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 452 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 453 | .type = &asn_DEF_Everything, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 454 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 455 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 456 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 457 | .name = "aa" |
| 458 | }, |
| 459 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 460 | static ber_tlv_tag_t asn_DEF_a_tags_2[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 461 | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 462 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 463 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 464 | static asn_TYPE_tag2member_t asn_MAP_a_tag2el_2[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 465 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* aa at 43 */ |
| 466 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 467 | static asn_SEQUENCE_specifics_t asn_SPC_a_specs_2 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 468 | sizeof(struct a), |
| 469 | offsetof(struct a, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 470 | asn_MAP_a_tag2el_2, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 471 | 1, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 472 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 473 | -1, /* Start extensions */ |
| 474 | -1 /* Stop extensions */ |
| 475 | }; |
| 476 | static /* Use -fall-defs-global to expose */ |
| 477 | asn_TYPE_descriptor_t asn_DEF_a_2 = { |
| 478 | "a", |
| 479 | "a", |
| 480 | SEQUENCE_free, |
| 481 | SEQUENCE_print, |
| 482 | SEQUENCE_constraint, |
| 483 | SEQUENCE_decode_ber, |
| 484 | SEQUENCE_encode_der, |
| 485 | SEQUENCE_decode_xer, |
| 486 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 487 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 488 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 489 | asn_DEF_a_tags_2, |
| 490 | sizeof(asn_DEF_a_tags_2) |
| 491 | /sizeof(asn_DEF_a_tags_2[0]) - 1, /* 1 */ |
| 492 | asn_DEF_a_tags_2, /* Same as above */ |
| 493 | sizeof(asn_DEF_a_tags_2) |
| 494 | /sizeof(asn_DEF_a_tags_2[0]), /* 2 */ |
| 495 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 496 | asn_MBR_a_2, |
| 497 | 1, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 498 | &asn_SPC_a_specs_2 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 499 | }; |
| 500 | |
| 501 | static asn_TYPE_member_t asn_MBR_c_5[] = { |
| 502 | { ATF_POINTER, 0, 0, |
| 503 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 504 | .tag_mode = 0, |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 505 | .type = &asn_DEF_Choice3, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 506 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 507 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 508 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 509 | .name = "" |
| 510 | }, |
| 511 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 512 | static ber_tlv_tag_t asn_DEF_c_tags_5[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 513 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 514 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 515 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 516 | static asn_SET_OF_specifics_t asn_SPC_c_specs_5 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 517 | sizeof(struct c), |
| 518 | offsetof(struct c, _asn_ctx), |
vlm | 6d44a54 | 2005-11-08 03:06:16 +0000 | [diff] [blame] | 519 | 2, /* XER encoding is XMLValueList */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 520 | }; |
| 521 | static /* Use -fall-defs-global to expose */ |
| 522 | asn_TYPE_descriptor_t asn_DEF_c_5 = { |
| 523 | "c", |
| 524 | "c", |
| 525 | SEQUENCE_OF_free, |
| 526 | SEQUENCE_OF_print, |
| 527 | SEQUENCE_OF_constraint, |
| 528 | SEQUENCE_OF_decode_ber, |
| 529 | SEQUENCE_OF_encode_der, |
| 530 | SEQUENCE_OF_decode_xer, |
| 531 | SEQUENCE_OF_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 532 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 533 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 534 | asn_DEF_c_tags_5, |
| 535 | sizeof(asn_DEF_c_tags_5) |
| 536 | /sizeof(asn_DEF_c_tags_5[0]) - 1, /* 1 */ |
| 537 | asn_DEF_c_tags_5, /* Same as above */ |
| 538 | sizeof(asn_DEF_c_tags_5) |
| 539 | /sizeof(asn_DEF_c_tags_5[0]), /* 2 */ |
| 540 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 541 | asn_MBR_c_5, |
| 542 | 1, /* Single element */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 543 | &asn_SPC_c_specs_5 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 544 | }; |
| 545 | |
| 546 | static asn_TYPE_member_t asn_MBR_Choice3_1[] = { |
| 547 | { ATF_NOFLAGS, 0, offsetof(struct Choice3, choice.a), |
| 548 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 549 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 550 | .type = &asn_DEF_a_2, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 551 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 552 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 553 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 554 | .name = "a" |
| 555 | }, |
| 556 | { ATF_POINTER, 0, offsetof(struct Choice3, choice.b), |
| 557 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 558 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 559 | .type = &asn_DEF_Everything, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 560 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 561 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 562 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 563 | .name = "b" |
| 564 | }, |
| 565 | { ATF_NOFLAGS, 0, offsetof(struct Choice3, choice.c), |
| 566 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 567 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 568 | .type = &asn_DEF_c_5, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 569 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 570 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 571 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 572 | .name = "c" |
| 573 | }, |
| 574 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 575 | static asn_TYPE_tag2member_t asn_MAP_Choice3_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 576 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 43 */ |
| 577 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* b at 44 */ |
| 578 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* c at 46 */ |
| 579 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 580 | static asn_CHOICE_specifics_t asn_SPC_Choice3_specs_1 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 581 | sizeof(struct Choice3), |
| 582 | offsetof(struct Choice3, _asn_ctx), |
| 583 | offsetof(struct Choice3, present), |
| 584 | sizeof(((struct Choice3 *)0)->present), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 585 | asn_MAP_Choice3_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 586 | 3, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 587 | .canonical_order = 0, |
| 588 | .ext_start = -1 /* Extensions start */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 589 | }; |
| 590 | asn_TYPE_descriptor_t asn_DEF_Choice3 = { |
| 591 | "Choice3", |
| 592 | "Choice3", |
| 593 | CHOICE_free, |
| 594 | CHOICE_print, |
| 595 | CHOICE_constraint, |
| 596 | CHOICE_decode_ber, |
| 597 | CHOICE_encode_der, |
| 598 | CHOICE_decode_xer, |
| 599 | CHOICE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 600 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 601 | CHOICE_outmost_tag, |
| 602 | 0, /* No effective tags (pointer) */ |
| 603 | 0, /* No effective tags (count) */ |
| 604 | 0, /* No tags (pointer) */ |
| 605 | 0, /* No tags (count) */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 606 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 607 | asn_MBR_Choice3_1, |
| 608 | 3, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 609 | &asn_SPC_Choice3_specs_1 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 610 | }; |
| 611 | |
| 612 | |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 613 | /*** <<< INCLUDES [Set] >>> ***/ |
| 614 | |
| 615 | #include <asn_SET_OF.h> |
| 616 | #include <INTEGER.h> |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 617 | #include <constr_SEQUENCE.h> |
| 618 | #include <constr_SET_OF.h> |
| 619 | |
| 620 | /*** <<< FWD-DECLS [Set] >>> ***/ |
| 621 | |
| 622 | struct Set; |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 623 | struct Sequence; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 624 | |
| 625 | /*** <<< TYPE-DECLS [Set] >>> ***/ |
| 626 | |
| 627 | typedef struct Set { |
| 628 | A_SET_OF(struct Member { |
| 629 | INTEGER_t Int; |
| 630 | struct Set *set; |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 631 | struct Sequence *seq; |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 632 | struct Set *set2 /* OPTIONAL */; |
| 633 | /* |
| 634 | * This type is extensible, |
| 635 | * possible extensions are below. |
| 636 | */ |
| 637 | struct Set *set3; |
| 638 | |
| 639 | /* Context for parsing across buffer boundaries */ |
| 640 | asn_struct_ctx_t _asn_ctx; |
| 641 | } ) list; |
| 642 | |
| 643 | /* Context for parsing across buffer boundaries */ |
| 644 | asn_struct_ctx_t _asn_ctx; |
| 645 | } Set_t; |
| 646 | |
| 647 | /*** <<< FUNC-DECLS [Set] >>> ***/ |
| 648 | |
| 649 | extern asn_TYPE_descriptor_t asn_DEF_Set; |
| 650 | |
| 651 | /*** <<< POST-INCLUDE [Set] >>> ***/ |
| 652 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 653 | #include "Set.h" |
| 654 | #include "Sequence.h" |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 655 | |
| 656 | /*** <<< STAT-DEFS [Set] >>> ***/ |
| 657 | |
| 658 | static asn_TYPE_member_t asn_MBR_Member_2[] = { |
| 659 | { ATF_NOFLAGS, 0, offsetof(struct Member, Int), |
| 660 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 661 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 662 | .type = &asn_DEF_INTEGER, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 663 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 664 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 665 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 666 | .name = "int" |
| 667 | }, |
| 668 | { ATF_POINTER, 0, offsetof(struct Member, set), |
| 669 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 670 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 671 | .type = &asn_DEF_Set, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 672 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 673 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 674 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 675 | .name = "set" |
| 676 | }, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 677 | { ATF_POINTER, 0, offsetof(struct Member, seq), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 678 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 679 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 680 | .type = &asn_DEF_Sequence, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 681 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 682 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 683 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 684 | .name = "seq" |
| 685 | }, |
| 686 | { ATF_POINTER, 2, offsetof(struct Member, set2), |
| 687 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 688 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 689 | .type = &asn_DEF_Set, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 690 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 691 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 692 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 693 | .name = "set2" |
| 694 | }, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 695 | { ATF_POINTER, 1, offsetof(struct Member, set3), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 696 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 697 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 698 | .type = &asn_DEF_Set, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 699 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 700 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 701 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 702 | .name = "set3" |
| 703 | }, |
| 704 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 705 | static ber_tlv_tag_t asn_DEF_Member_tags_2[] = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 706 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 707 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 708 | static asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 709 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* int at 49 */ |
| 710 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* set at 50 */ |
| 711 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* seq at 51 */ |
| 712 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* set2 at 52 */ |
| 713 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* set3 at 55 */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 714 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 715 | static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 716 | sizeof(struct Member), |
| 717 | offsetof(struct Member, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 718 | asn_MAP_Member_tag2el_2, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 719 | 5, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 720 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 721 | 3, /* Start extensions */ |
| 722 | 6 /* Stop extensions */ |
| 723 | }; |
| 724 | static /* Use -fall-defs-global to expose */ |
| 725 | asn_TYPE_descriptor_t asn_DEF_Member_2 = { |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 726 | "SEQUENCE", |
| 727 | "SEQUENCE", |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 728 | SEQUENCE_free, |
| 729 | SEQUENCE_print, |
| 730 | SEQUENCE_constraint, |
| 731 | SEQUENCE_decode_ber, |
| 732 | SEQUENCE_encode_der, |
| 733 | SEQUENCE_decode_xer, |
| 734 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 735 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 736 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 737 | asn_DEF_Member_tags_2, |
| 738 | sizeof(asn_DEF_Member_tags_2) |
| 739 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 740 | asn_DEF_Member_tags_2, /* Same as above */ |
| 741 | sizeof(asn_DEF_Member_tags_2) |
| 742 | /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ |
| 743 | 0, /* No PER visible constraints */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 744 | asn_MBR_Member_2, |
| 745 | 5, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 746 | &asn_SPC_Member_specs_2 /* Additional specs */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 747 | }; |
| 748 | |
| 749 | static asn_TYPE_member_t asn_MBR_Set_1[] = { |
| 750 | { ATF_POINTER, 0, 0, |
| 751 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 752 | .tag_mode = 0, |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 753 | .type = &asn_DEF_Member_2, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 754 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 755 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 756 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 757 | .name = "" |
| 758 | }, |
| 759 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 760 | static ber_tlv_tag_t asn_DEF_Set_tags_1[] = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 761 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 762 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 763 | static asn_SET_OF_specifics_t asn_SPC_Set_specs_1 = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 764 | sizeof(struct Set), |
| 765 | offsetof(struct Set, _asn_ctx), |
| 766 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 767 | }; |
| 768 | asn_TYPE_descriptor_t asn_DEF_Set = { |
| 769 | "Set", |
| 770 | "Set", |
| 771 | SET_OF_free, |
| 772 | SET_OF_print, |
| 773 | SET_OF_constraint, |
| 774 | SET_OF_decode_ber, |
| 775 | SET_OF_encode_der, |
| 776 | SET_OF_decode_xer, |
| 777 | SET_OF_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 778 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 779 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 780 | asn_DEF_Set_tags_1, |
| 781 | sizeof(asn_DEF_Set_tags_1) |
| 782 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 783 | asn_DEF_Set_tags_1, /* Same as above */ |
| 784 | sizeof(asn_DEF_Set_tags_1) |
| 785 | /sizeof(asn_DEF_Set_tags_1[0]), /* 1 */ |
| 786 | 0, /* No PER visible constraints */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 787 | asn_MBR_Set_1, |
| 788 | 1, /* Single element */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 789 | &asn_SPC_Set_specs_1 /* Additional specs */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 790 | }; |
| 791 | |
| 792 | |
| 793 | /*** <<< INCLUDES [Sequence] >>> ***/ |
| 794 | |
| 795 | #include <INTEGER.h> |
| 796 | #include <constr_SEQUENCE.h> |
| 797 | |
| 798 | /*** <<< FWD-DECLS [Sequence] >>> ***/ |
| 799 | |
| 800 | struct Sequence; |
| 801 | struct Set; |
| 802 | |
| 803 | /*** <<< TYPE-DECLS [Sequence] >>> ***/ |
| 804 | |
| 805 | typedef struct Sequence { |
| 806 | INTEGER_t a; |
| 807 | struct Sequence *seq /* OPTIONAL */; |
| 808 | /* |
| 809 | * This type is extensible, |
| 810 | * possible extensions are below. |
| 811 | */ |
| 812 | INTEGER_t *b; |
| 813 | struct Set *set /* OPTIONAL */; |
| 814 | |
| 815 | /* Context for parsing across buffer boundaries */ |
| 816 | asn_struct_ctx_t _asn_ctx; |
| 817 | } Sequence_t; |
| 818 | |
| 819 | /*** <<< FUNC-DECLS [Sequence] >>> ***/ |
| 820 | |
| 821 | extern asn_TYPE_descriptor_t asn_DEF_Sequence; |
| 822 | |
| 823 | /*** <<< POST-INCLUDE [Sequence] >>> ***/ |
| 824 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 825 | #include "Sequence.h" |
| 826 | #include "Set.h" |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 827 | |
| 828 | /*** <<< STAT-DEFS [Sequence] >>> ***/ |
| 829 | |
| 830 | static asn_TYPE_member_t asn_MBR_Sequence_1[] = { |
| 831 | { ATF_NOFLAGS, 0, offsetof(struct Sequence, a), |
| 832 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 833 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 834 | .type = &asn_DEF_INTEGER, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 835 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 836 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 837 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 838 | .name = "a" |
| 839 | }, |
| 840 | { ATF_POINTER, 3, offsetof(struct Sequence, seq), |
| 841 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 842 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 843 | .type = &asn_DEF_Sequence, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 844 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 845 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 846 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 847 | .name = "seq" |
| 848 | }, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 849 | { ATF_POINTER, 2, offsetof(struct Sequence, b), |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 850 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 851 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 852 | .type = &asn_DEF_INTEGER, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 853 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 854 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 855 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 856 | .name = "b" |
| 857 | }, |
| 858 | { ATF_POINTER, 1, offsetof(struct Sequence, set), |
| 859 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 860 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 861 | .type = &asn_DEF_Set, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 862 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 863 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 864 | .default_value = 0, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 865 | .name = "set" |
| 866 | }, |
| 867 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 868 | static ber_tlv_tag_t asn_DEF_Sequence_tags_1[] = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 869 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 870 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 871 | static asn_TYPE_tag2member_t asn_MAP_Sequence_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 872 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 58 */ |
| 873 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* seq at 59 */ |
| 874 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* b at 61 */ |
| 875 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* set at 62 */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 876 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 877 | static asn_SEQUENCE_specifics_t asn_SPC_Sequence_specs_1 = { |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 878 | sizeof(struct Sequence), |
| 879 | offsetof(struct Sequence, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 880 | asn_MAP_Sequence_tag2el_1, |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 881 | 4, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 882 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 883 | 1, /* Start extensions */ |
| 884 | 5 /* Stop extensions */ |
| 885 | }; |
| 886 | asn_TYPE_descriptor_t asn_DEF_Sequence = { |
| 887 | "Sequence", |
| 888 | "Sequence", |
| 889 | SEQUENCE_free, |
| 890 | SEQUENCE_print, |
| 891 | SEQUENCE_constraint, |
| 892 | SEQUENCE_decode_ber, |
| 893 | SEQUENCE_encode_der, |
| 894 | SEQUENCE_decode_xer, |
| 895 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 896 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 897 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 898 | asn_DEF_Sequence_tags_1, |
| 899 | sizeof(asn_DEF_Sequence_tags_1) |
| 900 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 901 | asn_DEF_Sequence_tags_1, /* Same as above */ |
| 902 | sizeof(asn_DEF_Sequence_tags_1) |
| 903 | /sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */ |
| 904 | 0, /* No PER visible constraints */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 905 | asn_MBR_Sequence_1, |
| 906 | 4, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 907 | &asn_SPC_Sequence_specs_1 /* Additional specs */ |
vlm | c754e53 | 2005-08-16 16:56:59 +0000 | [diff] [blame] | 908 | }; |
| 909 | |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 910 | |
| 911 | /*** <<< INCLUDES [TypeRef] >>> ***/ |
| 912 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 913 | #include "Sequence.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 914 | |
| 915 | /*** <<< TYPE-DECLS [TypeRef] >>> ***/ |
| 916 | |
| 917 | typedef Sequence_t TypeRef_t; |
| 918 | |
| 919 | /*** <<< FUNC-DECLS [TypeRef] >>> ***/ |
| 920 | |
| 921 | extern asn_TYPE_descriptor_t asn_DEF_TypeRef; |
| 922 | asn_struct_free_f TypeRef_free; |
| 923 | asn_struct_print_f TypeRef_print; |
| 924 | asn_constr_check_f TypeRef_constraint; |
| 925 | ber_type_decoder_f TypeRef_decode_ber; |
| 926 | der_type_encoder_f TypeRef_encode_der; |
| 927 | xer_type_decoder_f TypeRef_decode_xer; |
| 928 | xer_type_encoder_f TypeRef_encode_xer; |
| 929 | |
| 930 | /*** <<< CODE [TypeRef] >>> ***/ |
| 931 | |
| 932 | int |
| 933 | TypeRef_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
vlm | af68ef5 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 934 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 935 | /* Replace with underlying type checker */ |
| 936 | td->check_constraints = asn_DEF_Sequence.check_constraints; |
vlm | af68ef5 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 937 | return td->check_constraints(td, sptr, ctfailcb, app_key); |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 938 | } |
| 939 | |
| 940 | /* |
| 941 | * This type is implemented using Sequence, |
| 942 | * so here we adjust the DEF accordingly. |
| 943 | */ |
| 944 | static void |
| 945 | TypeRef_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 946 | td->free_struct = asn_DEF_Sequence.free_struct; |
| 947 | td->print_struct = asn_DEF_Sequence.print_struct; |
| 948 | td->ber_decoder = asn_DEF_Sequence.ber_decoder; |
| 949 | td->der_encoder = asn_DEF_Sequence.der_encoder; |
| 950 | td->xer_decoder = asn_DEF_Sequence.xer_decoder; |
| 951 | td->xer_encoder = asn_DEF_Sequence.xer_encoder; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 952 | td->uper_decoder = asn_DEF_Sequence.uper_decoder; |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 953 | td->uper_encoder = asn_DEF_Sequence.uper_encoder; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 954 | if(!td->per_constraints) |
| 955 | td->per_constraints = asn_DEF_Sequence.per_constraints; |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 956 | td->elements = asn_DEF_Sequence.elements; |
| 957 | td->elements_count = asn_DEF_Sequence.elements_count; |
| 958 | td->specifics = asn_DEF_Sequence.specifics; |
| 959 | } |
| 960 | |
| 961 | void |
| 962 | TypeRef_free(asn_TYPE_descriptor_t *td, |
| 963 | void *struct_ptr, int contents_only) { |
| 964 | TypeRef_1_inherit_TYPE_descriptor(td); |
| 965 | td->free_struct(td, struct_ptr, contents_only); |
| 966 | } |
| 967 | |
| 968 | int |
| 969 | TypeRef_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
| 970 | int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 971 | TypeRef_1_inherit_TYPE_descriptor(td); |
| 972 | return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 973 | } |
| 974 | |
| 975 | asn_dec_rval_t |
| 976 | TypeRef_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 977 | void **structure, const void *bufptr, size_t size, int tag_mode) { |
| 978 | TypeRef_1_inherit_TYPE_descriptor(td); |
| 979 | return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 980 | } |
| 981 | |
| 982 | asn_enc_rval_t |
| 983 | TypeRef_encode_der(asn_TYPE_descriptor_t *td, |
| 984 | void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 985 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 986 | TypeRef_1_inherit_TYPE_descriptor(td); |
| 987 | return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 988 | } |
| 989 | |
| 990 | asn_dec_rval_t |
| 991 | TypeRef_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 992 | void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
| 993 | TypeRef_1_inherit_TYPE_descriptor(td); |
| 994 | return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 995 | } |
| 996 | |
| 997 | asn_enc_rval_t |
| 998 | TypeRef_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
| 999 | int ilevel, enum xer_encoder_flags_e flags, |
| 1000 | asn_app_consume_bytes_f *cb, void *app_key) { |
| 1001 | TypeRef_1_inherit_TYPE_descriptor(td); |
| 1002 | return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 1003 | } |
| 1004 | |
| 1005 | |
| 1006 | /*** <<< STAT-DEFS [TypeRef] >>> ***/ |
| 1007 | |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1008 | static ber_tlv_tag_t asn_DEF_TypeRef_tags_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1009 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1010 | }; |
| 1011 | asn_TYPE_descriptor_t asn_DEF_TypeRef = { |
| 1012 | "TypeRef", |
| 1013 | "TypeRef", |
| 1014 | TypeRef_free, |
| 1015 | TypeRef_print, |
| 1016 | TypeRef_constraint, |
| 1017 | TypeRef_decode_ber, |
| 1018 | TypeRef_encode_der, |
| 1019 | TypeRef_decode_xer, |
| 1020 | TypeRef_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1021 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1022 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1023 | asn_DEF_TypeRef_tags_1, |
| 1024 | sizeof(asn_DEF_TypeRef_tags_1) |
| 1025 | /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */ |
| 1026 | asn_DEF_TypeRef_tags_1, /* Same as above */ |
| 1027 | sizeof(asn_DEF_TypeRef_tags_1) |
| 1028 | /sizeof(asn_DEF_TypeRef_tags_1[0]), /* 1 */ |
| 1029 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1030 | 0, 0, /* Defined elsewhere */ |
| 1031 | 0 /* No specifics */ |
| 1032 | }; |
| 1033 | |
| 1034 | |
| 1035 | /*** <<< INCLUDES [Alpha] >>> ***/ |
| 1036 | |
| 1037 | #include <constr_SEQUENCE.h> |
| 1038 | |
| 1039 | /*** <<< FWD-DECLS [Alpha] >>> ***/ |
| 1040 | |
| 1041 | struct Beta; |
| 1042 | |
| 1043 | /*** <<< TYPE-DECLS [Alpha] >>> ***/ |
| 1044 | |
| 1045 | typedef struct Alpha { |
| 1046 | struct Beta *a; |
| 1047 | struct b { |
| 1048 | struct Beta *b /* OPTIONAL */; |
| 1049 | |
| 1050 | /* Context for parsing across buffer boundaries */ |
| 1051 | asn_struct_ctx_t _asn_ctx; |
| 1052 | } b; |
| 1053 | |
| 1054 | /* Context for parsing across buffer boundaries */ |
| 1055 | asn_struct_ctx_t _asn_ctx; |
| 1056 | } Alpha_t; |
| 1057 | |
| 1058 | /*** <<< FUNC-DECLS [Alpha] >>> ***/ |
| 1059 | |
| 1060 | extern asn_TYPE_descriptor_t asn_DEF_Alpha; |
| 1061 | |
| 1062 | /*** <<< POST-INCLUDE [Alpha] >>> ***/ |
| 1063 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1064 | #include "Beta.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1065 | |
| 1066 | /*** <<< STAT-DEFS [Alpha] >>> ***/ |
| 1067 | |
| 1068 | static asn_TYPE_member_t asn_MBR_b_3[] = { |
| 1069 | { ATF_POINTER, 1, offsetof(struct b, b), |
| 1070 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1071 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1072 | .type = &asn_DEF_Beta, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1073 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1074 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1075 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1076 | .name = "b" |
| 1077 | }, |
| 1078 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1079 | static ber_tlv_tag_t asn_DEF_b_tags_3[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1080 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1081 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1082 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1083 | static asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1084 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* b at 70 */ |
| 1085 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1086 | static asn_SEQUENCE_specifics_t asn_SPC_b_specs_3 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1087 | sizeof(struct b), |
| 1088 | offsetof(struct b, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1089 | asn_MAP_b_tag2el_3, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1090 | 1, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1091 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1092 | -1, /* Start extensions */ |
| 1093 | -1 /* Stop extensions */ |
| 1094 | }; |
| 1095 | static /* Use -fall-defs-global to expose */ |
| 1096 | asn_TYPE_descriptor_t asn_DEF_b_3 = { |
| 1097 | "b", |
| 1098 | "b", |
| 1099 | SEQUENCE_free, |
| 1100 | SEQUENCE_print, |
| 1101 | SEQUENCE_constraint, |
| 1102 | SEQUENCE_decode_ber, |
| 1103 | SEQUENCE_encode_der, |
| 1104 | SEQUENCE_decode_xer, |
| 1105 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1106 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1107 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1108 | asn_DEF_b_tags_3, |
| 1109 | sizeof(asn_DEF_b_tags_3) |
| 1110 | /sizeof(asn_DEF_b_tags_3[0]) - 1, /* 1 */ |
| 1111 | asn_DEF_b_tags_3, /* Same as above */ |
| 1112 | sizeof(asn_DEF_b_tags_3) |
| 1113 | /sizeof(asn_DEF_b_tags_3[0]), /* 2 */ |
| 1114 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1115 | asn_MBR_b_3, |
| 1116 | 1, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1117 | &asn_SPC_b_specs_3 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1118 | }; |
| 1119 | |
| 1120 | static asn_TYPE_member_t asn_MBR_Alpha_1[] = { |
| 1121 | { ATF_POINTER, 0, offsetof(struct Alpha, a), |
| 1122 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1123 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1124 | .type = &asn_DEF_Beta, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1125 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1126 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1127 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1128 | .name = "a" |
| 1129 | }, |
| 1130 | { ATF_NOFLAGS, 0, offsetof(struct Alpha, b), |
| 1131 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1132 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1133 | .type = &asn_DEF_b_3, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1134 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1135 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1136 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1137 | .name = "b" |
| 1138 | }, |
| 1139 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1140 | static ber_tlv_tag_t asn_DEF_Alpha_tags_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1141 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1142 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1143 | static asn_TYPE_tag2member_t asn_MAP_Alpha_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1144 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 68 */ |
| 1145 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* b at 70 */ |
| 1146 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1147 | static asn_SEQUENCE_specifics_t asn_SPC_Alpha_specs_1 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1148 | sizeof(struct Alpha), |
| 1149 | offsetof(struct Alpha, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1150 | asn_MAP_Alpha_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1151 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1152 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1153 | -1, /* Start extensions */ |
| 1154 | -1 /* Stop extensions */ |
| 1155 | }; |
| 1156 | asn_TYPE_descriptor_t asn_DEF_Alpha = { |
| 1157 | "Alpha", |
| 1158 | "Alpha", |
| 1159 | SEQUENCE_free, |
| 1160 | SEQUENCE_print, |
| 1161 | SEQUENCE_constraint, |
| 1162 | SEQUENCE_decode_ber, |
| 1163 | SEQUENCE_encode_der, |
| 1164 | SEQUENCE_decode_xer, |
| 1165 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1166 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1167 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1168 | asn_DEF_Alpha_tags_1, |
| 1169 | sizeof(asn_DEF_Alpha_tags_1) |
| 1170 | /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */ |
| 1171 | asn_DEF_Alpha_tags_1, /* Same as above */ |
| 1172 | sizeof(asn_DEF_Alpha_tags_1) |
| 1173 | /sizeof(asn_DEF_Alpha_tags_1[0]), /* 1 */ |
| 1174 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1175 | asn_MBR_Alpha_1, |
| 1176 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1177 | &asn_SPC_Alpha_specs_1 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1178 | }; |
| 1179 | |
| 1180 | |
| 1181 | /*** <<< INCLUDES [Beta] >>> ***/ |
| 1182 | |
| 1183 | #include <constr_SEQUENCE.h> |
| 1184 | |
| 1185 | /*** <<< FWD-DECLS [Beta] >>> ***/ |
| 1186 | |
| 1187 | struct Alpha; |
| 1188 | struct Gamma; |
| 1189 | |
| 1190 | /*** <<< TYPE-DECLS [Beta] >>> ***/ |
| 1191 | |
| 1192 | typedef struct Beta { |
| 1193 | struct Alpha *b /* OPTIONAL */; |
| 1194 | struct Gamma *g /* OPTIONAL */; |
| 1195 | |
| 1196 | /* Context for parsing across buffer boundaries */ |
| 1197 | asn_struct_ctx_t _asn_ctx; |
| 1198 | } Beta_t; |
| 1199 | |
| 1200 | /*** <<< FUNC-DECLS [Beta] >>> ***/ |
| 1201 | |
| 1202 | extern asn_TYPE_descriptor_t asn_DEF_Beta; |
| 1203 | |
| 1204 | /*** <<< POST-INCLUDE [Beta] >>> ***/ |
| 1205 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1206 | #include "Alpha.h" |
| 1207 | #include "Gamma.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1208 | |
| 1209 | /*** <<< STAT-DEFS [Beta] >>> ***/ |
| 1210 | |
| 1211 | static asn_TYPE_member_t asn_MBR_Beta_1[] = { |
| 1212 | { ATF_POINTER, 2, offsetof(struct Beta, b), |
| 1213 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1214 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1215 | .type = &asn_DEF_Alpha, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1216 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1217 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1218 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1219 | .name = "b" |
| 1220 | }, |
| 1221 | { ATF_POINTER, 1, offsetof(struct Beta, g), |
| 1222 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1223 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1224 | .type = &asn_DEF_Gamma, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1225 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1226 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1227 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1228 | .name = "g" |
| 1229 | }, |
| 1230 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1231 | static ber_tlv_tag_t asn_DEF_Beta_tags_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1232 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1233 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1234 | static asn_TYPE_tag2member_t asn_MAP_Beta_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1235 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* b at 75 */ |
| 1236 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g at 76 */ |
| 1237 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1238 | static asn_SEQUENCE_specifics_t asn_SPC_Beta_specs_1 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1239 | sizeof(struct Beta), |
| 1240 | offsetof(struct Beta, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1241 | asn_MAP_Beta_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1242 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1243 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1244 | -1, /* Start extensions */ |
| 1245 | -1 /* Stop extensions */ |
| 1246 | }; |
| 1247 | asn_TYPE_descriptor_t asn_DEF_Beta = { |
| 1248 | "Beta", |
| 1249 | "Beta", |
| 1250 | SEQUENCE_free, |
| 1251 | SEQUENCE_print, |
| 1252 | SEQUENCE_constraint, |
| 1253 | SEQUENCE_decode_ber, |
| 1254 | SEQUENCE_encode_der, |
| 1255 | SEQUENCE_decode_xer, |
| 1256 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1257 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1258 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1259 | asn_DEF_Beta_tags_1, |
| 1260 | sizeof(asn_DEF_Beta_tags_1) |
| 1261 | /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */ |
| 1262 | asn_DEF_Beta_tags_1, /* Same as above */ |
| 1263 | sizeof(asn_DEF_Beta_tags_1) |
| 1264 | /sizeof(asn_DEF_Beta_tags_1[0]), /* 1 */ |
| 1265 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1266 | asn_MBR_Beta_1, |
| 1267 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1268 | &asn_SPC_Beta_specs_1 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1269 | }; |
| 1270 | |
| 1271 | |
| 1272 | /*** <<< INCLUDES [Gamma] >>> ***/ |
| 1273 | |
| 1274 | #include <constr_SEQUENCE.h> |
| 1275 | |
| 1276 | /*** <<< FWD-DECLS [Gamma] >>> ***/ |
| 1277 | |
| 1278 | struct TwoThree; |
| 1279 | struct Alpha; |
| 1280 | struct Beta; |
| 1281 | |
| 1282 | /*** <<< TYPE-DECLS [Gamma] >>> ***/ |
| 1283 | |
| 1284 | typedef struct Gamma { |
| 1285 | struct TwoThree *o; |
| 1286 | struct Alpha *a; |
| 1287 | struct Beta *b; |
| 1288 | |
| 1289 | /* Context for parsing across buffer boundaries */ |
| 1290 | asn_struct_ctx_t _asn_ctx; |
| 1291 | } Gamma_t; |
| 1292 | |
| 1293 | /*** <<< FUNC-DECLS [Gamma] >>> ***/ |
| 1294 | |
| 1295 | extern asn_TYPE_descriptor_t asn_DEF_Gamma; |
| 1296 | |
| 1297 | /*** <<< POST-INCLUDE [Gamma] >>> ***/ |
| 1298 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1299 | #include "TwoThree.h" |
| 1300 | #include "Alpha.h" |
| 1301 | #include "Beta.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1302 | |
| 1303 | /*** <<< STAT-DEFS [Gamma] >>> ***/ |
| 1304 | |
| 1305 | static asn_TYPE_member_t asn_MBR_Gamma_1[] = { |
| 1306 | { ATF_POINTER, 0, offsetof(struct Gamma, o), |
| 1307 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1308 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1309 | .type = &asn_DEF_TwoThree, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1310 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1311 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1312 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1313 | .name = "o" |
| 1314 | }, |
| 1315 | { ATF_POINTER, 0, offsetof(struct Gamma, a), |
| 1316 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1317 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1318 | .type = &asn_DEF_Alpha, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1319 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1320 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1321 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1322 | .name = "a" |
| 1323 | }, |
| 1324 | { ATF_POINTER, 0, offsetof(struct Gamma, b), |
| 1325 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 1326 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1327 | .type = &asn_DEF_Beta, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1328 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1329 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1330 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1331 | .name = "b" |
| 1332 | }, |
| 1333 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1334 | static ber_tlv_tag_t asn_DEF_Gamma_tags_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1335 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 1336 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1337 | static asn_TYPE_tag2member_t asn_MAP_Gamma_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1338 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* o at 80 */ |
| 1339 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* a at 81 */ |
| 1340 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* b at 83 */ |
| 1341 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1342 | static asn_SEQUENCE_specifics_t asn_SPC_Gamma_specs_1 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1343 | sizeof(struct Gamma), |
| 1344 | offsetof(struct Gamma, _asn_ctx), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1345 | asn_MAP_Gamma_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1346 | 3, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1347 | 0, 0, 0, /* Optional elements (not needed) */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1348 | -1, /* Start extensions */ |
| 1349 | -1 /* Stop extensions */ |
| 1350 | }; |
| 1351 | asn_TYPE_descriptor_t asn_DEF_Gamma = { |
| 1352 | "Gamma", |
| 1353 | "Gamma", |
| 1354 | SEQUENCE_free, |
| 1355 | SEQUENCE_print, |
| 1356 | SEQUENCE_constraint, |
| 1357 | SEQUENCE_decode_ber, |
| 1358 | SEQUENCE_encode_der, |
| 1359 | SEQUENCE_decode_xer, |
| 1360 | SEQUENCE_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1361 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1362 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1363 | asn_DEF_Gamma_tags_1, |
| 1364 | sizeof(asn_DEF_Gamma_tags_1) |
| 1365 | /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */ |
| 1366 | asn_DEF_Gamma_tags_1, /* Same as above */ |
| 1367 | sizeof(asn_DEF_Gamma_tags_1) |
| 1368 | /sizeof(asn_DEF_Gamma_tags_1[0]), /* 1 */ |
| 1369 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1370 | asn_MBR_Gamma_1, |
| 1371 | 3, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1372 | &asn_SPC_Gamma_specs_1 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1373 | }; |
| 1374 | |
| 1375 | |
| 1376 | /*** <<< INCLUDES [OneTwo] >>> ***/ |
| 1377 | |
| 1378 | #include <constr_SET.h> |
| 1379 | |
| 1380 | /*** <<< DEPS [OneTwo] >>> ***/ |
| 1381 | |
| 1382 | |
| 1383 | /* |
| 1384 | * Method of determining the components presence |
| 1385 | */ |
| 1386 | typedef enum OneTwo_PR { |
| 1387 | OneTwo_PR_m12, /* Member m12 is present */ |
| 1388 | } OneTwo_PR; |
| 1389 | |
| 1390 | /*** <<< FWD-DECLS [OneTwo] >>> ***/ |
| 1391 | |
| 1392 | struct TwoThree; |
| 1393 | |
| 1394 | /*** <<< TYPE-DECLS [OneTwo] >>> ***/ |
| 1395 | |
| 1396 | typedef struct OneTwo { |
| 1397 | struct TwoThree *m12; |
| 1398 | |
| 1399 | /* Presence bitmask: ASN_SET_ISPRESENT(pOneTwo, OneTwo_PR_x) */ |
| 1400 | unsigned int _presence_map |
| 1401 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 1402 | |
| 1403 | /* Context for parsing across buffer boundaries */ |
| 1404 | asn_struct_ctx_t _asn_ctx; |
| 1405 | } OneTwo_t; |
| 1406 | |
| 1407 | /*** <<< FUNC-DECLS [OneTwo] >>> ***/ |
| 1408 | |
| 1409 | extern asn_TYPE_descriptor_t asn_DEF_OneTwo; |
| 1410 | |
| 1411 | /*** <<< POST-INCLUDE [OneTwo] >>> ***/ |
| 1412 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1413 | #include "TwoThree.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1414 | |
| 1415 | /*** <<< STAT-DEFS [OneTwo] >>> ***/ |
| 1416 | |
| 1417 | static asn_TYPE_member_t asn_MBR_OneTwo_1[] = { |
| 1418 | { ATF_POINTER, 0, offsetof(struct OneTwo, m12), |
| 1419 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1420 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1421 | .type = &asn_DEF_TwoThree, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1422 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1423 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1424 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1425 | .name = "m12" |
| 1426 | }, |
| 1427 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1428 | static ber_tlv_tag_t asn_DEF_OneTwo_tags_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1429 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1430 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1431 | static asn_TYPE_tag2member_t asn_MAP_OneTwo_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1432 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m12 at 86 */ |
| 1433 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1434 | static uint8_t asn_MAP_OneTwo_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1435 | (1 << 7) |
| 1436 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1437 | static asn_SET_specifics_t asn_SPC_OneTwo_specs_1 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1438 | sizeof(struct OneTwo), |
| 1439 | offsetof(struct OneTwo, _asn_ctx), |
| 1440 | offsetof(struct OneTwo, _presence_map), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1441 | asn_MAP_OneTwo_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1442 | 1, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1443 | asn_MAP_OneTwo_tag2el_1, /* Same as above */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1444 | 1, /* Count of tags in the CXER map */ |
| 1445 | 0, /* Whether extensible */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1446 | (unsigned int *)asn_MAP_OneTwo_mmap_1 /* Mandatory elements map */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1447 | }; |
| 1448 | asn_TYPE_descriptor_t asn_DEF_OneTwo = { |
| 1449 | "OneTwo", |
| 1450 | "OneTwo", |
| 1451 | SET_free, |
| 1452 | SET_print, |
| 1453 | SET_constraint, |
| 1454 | SET_decode_ber, |
| 1455 | SET_encode_der, |
| 1456 | SET_decode_xer, |
| 1457 | SET_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1458 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1459 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1460 | asn_DEF_OneTwo_tags_1, |
| 1461 | sizeof(asn_DEF_OneTwo_tags_1) |
| 1462 | /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */ |
| 1463 | asn_DEF_OneTwo_tags_1, /* Same as above */ |
| 1464 | sizeof(asn_DEF_OneTwo_tags_1) |
| 1465 | /sizeof(asn_DEF_OneTwo_tags_1[0]), /* 1 */ |
| 1466 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1467 | asn_MBR_OneTwo_1, |
| 1468 | 1, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1469 | &asn_SPC_OneTwo_specs_1 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1470 | }; |
| 1471 | |
| 1472 | |
| 1473 | /*** <<< INCLUDES [TwoThree] >>> ***/ |
| 1474 | |
| 1475 | #include <constr_SET.h> |
| 1476 | |
| 1477 | /*** <<< DEPS [TwoThree] >>> ***/ |
| 1478 | |
| 1479 | |
| 1480 | /* |
| 1481 | * Method of determining the components presence |
| 1482 | */ |
| 1483 | typedef enum TwoThree_PR { |
| 1484 | TwoThree_PR_m23, /* Member m23 is present */ |
| 1485 | } TwoThree_PR; |
| 1486 | |
| 1487 | /*** <<< FWD-DECLS [TwoThree] >>> ***/ |
| 1488 | |
| 1489 | struct ThreeOne; |
| 1490 | |
| 1491 | /*** <<< TYPE-DECLS [TwoThree] >>> ***/ |
| 1492 | |
| 1493 | typedef struct TwoThree { |
| 1494 | struct ThreeOne *m23; |
| 1495 | |
| 1496 | /* Presence bitmask: ASN_SET_ISPRESENT(pTwoThree, TwoThree_PR_x) */ |
| 1497 | unsigned int _presence_map |
| 1498 | [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 1499 | |
| 1500 | /* Context for parsing across buffer boundaries */ |
| 1501 | asn_struct_ctx_t _asn_ctx; |
| 1502 | } TwoThree_t; |
| 1503 | |
| 1504 | /*** <<< FUNC-DECLS [TwoThree] >>> ***/ |
| 1505 | |
| 1506 | extern asn_TYPE_descriptor_t asn_DEF_TwoThree; |
| 1507 | |
| 1508 | /*** <<< POST-INCLUDE [TwoThree] >>> ***/ |
| 1509 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1510 | #include "ThreeOne.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1511 | |
| 1512 | /*** <<< STAT-DEFS [TwoThree] >>> ***/ |
| 1513 | |
| 1514 | static asn_TYPE_member_t asn_MBR_TwoThree_1[] = { |
| 1515 | { ATF_POINTER, 0, offsetof(struct TwoThree, m23), |
| 1516 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1517 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1518 | .type = &asn_DEF_ThreeOne, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1519 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1520 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1521 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1522 | .name = "m23" |
| 1523 | }, |
| 1524 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1525 | static ber_tlv_tag_t asn_DEF_TwoThree_tags_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1526 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1527 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1528 | static asn_TYPE_tag2member_t asn_MAP_TwoThree_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1529 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* m23 at 87 */ |
| 1530 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1531 | static uint8_t asn_MAP_TwoThree_mmap_1[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1532 | (1 << 7) |
| 1533 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1534 | static asn_SET_specifics_t asn_SPC_TwoThree_specs_1 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1535 | sizeof(struct TwoThree), |
| 1536 | offsetof(struct TwoThree, _asn_ctx), |
| 1537 | offsetof(struct TwoThree, _presence_map), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1538 | asn_MAP_TwoThree_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1539 | 1, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1540 | asn_MAP_TwoThree_tag2el_1, /* Same as above */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1541 | 1, /* Count of tags in the CXER map */ |
| 1542 | 0, /* Whether extensible */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1543 | (unsigned int *)asn_MAP_TwoThree_mmap_1 /* Mandatory elements map */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1544 | }; |
| 1545 | asn_TYPE_descriptor_t asn_DEF_TwoThree = { |
| 1546 | "TwoThree", |
| 1547 | "TwoThree", |
| 1548 | SET_free, |
| 1549 | SET_print, |
| 1550 | SET_constraint, |
| 1551 | SET_decode_ber, |
| 1552 | SET_encode_der, |
| 1553 | SET_decode_xer, |
| 1554 | SET_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1555 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1556 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1557 | asn_DEF_TwoThree_tags_1, |
| 1558 | sizeof(asn_DEF_TwoThree_tags_1) |
| 1559 | /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */ |
| 1560 | asn_DEF_TwoThree_tags_1, /* Same as above */ |
| 1561 | sizeof(asn_DEF_TwoThree_tags_1) |
| 1562 | /sizeof(asn_DEF_TwoThree_tags_1[0]), /* 1 */ |
| 1563 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1564 | asn_MBR_TwoThree_1, |
| 1565 | 1, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1566 | &asn_SPC_TwoThree_specs_1 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1567 | }; |
| 1568 | |
| 1569 | |
| 1570 | /*** <<< INCLUDES [ThreeOne] >>> ***/ |
| 1571 | |
| 1572 | #include <constr_SET.h> |
| 1573 | |
| 1574 | /*** <<< DEPS [ThreeOne] >>> ***/ |
| 1575 | |
| 1576 | |
| 1577 | /* |
| 1578 | * Method of determining the components presence |
| 1579 | */ |
| 1580 | typedef enum ThreeOne_PR { |
| 1581 | ThreeOne_PR_m31, /* Member m31 is present */ |
| 1582 | ThreeOne_PR_g, /* Member g is present */ |
| 1583 | } ThreeOne_PR; |
| 1584 | |
| 1585 | /*** <<< FWD-DECLS [ThreeOne] >>> ***/ |
| 1586 | |
| 1587 | struct OneTwo; |
| 1588 | struct Gamma; |
| 1589 | |
| 1590 | /*** <<< TYPE-DECLS [ThreeOne] >>> ***/ |
| 1591 | |
| 1592 | typedef struct ThreeOne { |
| 1593 | struct OneTwo *m31; |
| 1594 | struct Gamma *g; |
| 1595 | |
| 1596 | /* Presence bitmask: ASN_SET_ISPRESENT(pThreeOne, ThreeOne_PR_x) */ |
| 1597 | unsigned int _presence_map |
| 1598 | [((2+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 1599 | |
| 1600 | /* Context for parsing across buffer boundaries */ |
| 1601 | asn_struct_ctx_t _asn_ctx; |
| 1602 | } ThreeOne_t; |
| 1603 | |
| 1604 | /*** <<< FUNC-DECLS [ThreeOne] >>> ***/ |
| 1605 | |
| 1606 | extern asn_TYPE_descriptor_t asn_DEF_ThreeOne; |
| 1607 | |
| 1608 | /*** <<< POST-INCLUDE [ThreeOne] >>> ***/ |
| 1609 | |
vlm | ea22677 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 1610 | #include "OneTwo.h" |
| 1611 | #include "Gamma.h" |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1612 | |
| 1613 | /*** <<< STAT-DEFS [ThreeOne] >>> ***/ |
| 1614 | |
| 1615 | static asn_TYPE_member_t asn_MBR_ThreeOne_1[] = { |
| 1616 | { ATF_POINTER, 0, offsetof(struct ThreeOne, m31), |
| 1617 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 1618 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1619 | .type = &asn_DEF_OneTwo, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1620 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1621 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1622 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1623 | .name = "m31" |
| 1624 | }, |
| 1625 | { ATF_POINTER, 0, offsetof(struct ThreeOne, g), |
| 1626 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 1627 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
vlm | e0fea71 | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 1628 | .type = &asn_DEF_Gamma, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1629 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1630 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 1631 | .default_value = 0, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1632 | .name = "g" |
| 1633 | }, |
| 1634 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1635 | static ber_tlv_tag_t asn_DEF_ThreeOne_tags_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1636 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 1637 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1638 | static asn_TYPE_tag2member_t asn_MAP_ThreeOne_tag2el_1[] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1639 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* m31 at 88 */ |
| 1640 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* g at 88 */ |
| 1641 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1642 | static uint8_t asn_MAP_ThreeOne_mmap_1[(2 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1643 | (1 << 7) | (1 << 6) |
| 1644 | }; |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1645 | static asn_SET_specifics_t asn_SPC_ThreeOne_specs_1 = { |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1646 | sizeof(struct ThreeOne), |
| 1647 | offsetof(struct ThreeOne, _asn_ctx), |
| 1648 | offsetof(struct ThreeOne, _presence_map), |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1649 | asn_MAP_ThreeOne_tag2el_1, |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1650 | 2, /* Count of tags in the map */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1651 | asn_MAP_ThreeOne_tag2el_1, /* Same as above */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1652 | 2, /* Count of tags in the CXER map */ |
| 1653 | 0, /* Whether extensible */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1654 | (unsigned int *)asn_MAP_ThreeOne_mmap_1 /* Mandatory elements map */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1655 | }; |
| 1656 | asn_TYPE_descriptor_t asn_DEF_ThreeOne = { |
| 1657 | "ThreeOne", |
| 1658 | "ThreeOne", |
| 1659 | SET_free, |
| 1660 | SET_print, |
| 1661 | SET_constraint, |
| 1662 | SET_decode_ber, |
| 1663 | SET_encode_der, |
| 1664 | SET_decode_xer, |
| 1665 | SET_encode_xer, |
vlm | b1b193e | 2006-08-18 01:46:46 +0000 | [diff] [blame] | 1666 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1667 | 0, /* Use generic outmost tag fetcher */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1668 | asn_DEF_ThreeOne_tags_1, |
| 1669 | sizeof(asn_DEF_ThreeOne_tags_1) |
| 1670 | /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */ |
| 1671 | asn_DEF_ThreeOne_tags_1, /* Same as above */ |
| 1672 | sizeof(asn_DEF_ThreeOne_tags_1) |
| 1673 | /sizeof(asn_DEF_ThreeOne_tags_1[0]), /* 1 */ |
| 1674 | 0, /* No PER visible constraints */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1675 | asn_MBR_ThreeOne_1, |
| 1676 | 2, /* Elements count */ |
vlm | 337167e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 1677 | &asn_SPC_ThreeOne_specs_1 /* Additional specs */ |
vlm | 6c4a850 | 2005-08-18 13:38:19 +0000 | [diff] [blame] | 1678 | }; |
| 1679 | |