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