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