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