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