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