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