Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [T] >>> ***/ |
| 3 | |
| 4 | #include <INTEGER.h> |
| 5 | #include <OCTET_STRING.h> |
| 6 | #include "Choice1.h" |
| 7 | #include "Choice2.h" |
| 8 | #include <constr_CHOICE.h> |
| 9 | |
| 10 | /*** <<< DEPS [T] >>> ***/ |
| 11 | |
| 12 | typedef enum T_PR { |
| 13 | T_PR_NOTHING, /* No components present */ |
| 14 | T_PR_t_a, |
| 15 | T_PR_t_b, |
| 16 | T_PR_t_c, |
| 17 | T_PR_t_d |
| 18 | } T_PR; |
| 19 | |
| 20 | /*** <<< TYPE-DECLS [T] >>> ***/ |
| 21 | |
| 22 | typedef struct T { |
| 23 | T_PR present; |
| 24 | union T_u { |
| 25 | INTEGER_t t_a; |
| 26 | OCTET_STRING_t t_b; |
| 27 | Choice1_t t_c; |
| 28 | Choice2_t t_d; |
| 29 | } choice; |
| 30 | |
| 31 | /* Context for parsing across buffer boundaries */ |
| 32 | asn_struct_ctx_t _asn_ctx; |
| 33 | } T_t; |
| 34 | |
| 35 | /*** <<< FUNC-DECLS [T] >>> ***/ |
| 36 | |
| 37 | extern asn_TYPE_descriptor_t asn_DEF_T; |
| 38 | |
| 39 | /*** <<< STAT-DEFS [T] >>> ***/ |
| 40 | |
| 41 | static asn_TYPE_member_t asn_MBR_T_1[] = { |
| 42 | { ATF_NOFLAGS, 0, offsetof(struct T, choice.t_a), |
| 43 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 44 | .tag_mode = 0, |
| 45 | .type = &asn_DEF_INTEGER, |
| 46 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 47 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 48 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 49 | .default_value = 0, |
| 50 | .name = "t-a" |
| 51 | }, |
| 52 | { ATF_NOFLAGS, 0, offsetof(struct T, choice.t_b), |
| 53 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), |
| 54 | .tag_mode = 0, |
| 55 | .type = &asn_DEF_OCTET_STRING, |
| 56 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 57 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 58 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 59 | .default_value = 0, |
| 60 | .name = "t-b" |
| 61 | }, |
| 62 | { ATF_NOFLAGS, 0, offsetof(struct T, choice.t_c), |
| 63 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 64 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
| 65 | .type = &asn_DEF_Choice1, |
| 66 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 67 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 68 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 69 | .default_value = 0, |
| 70 | .name = "t-c" |
| 71 | }, |
| 72 | { ATF_NOFLAGS, 0, offsetof(struct T, choice.t_d), |
| 73 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 74 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 75 | .type = &asn_DEF_Choice2, |
| 76 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 77 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 78 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 79 | .default_value = 0, |
| 80 | .name = "t-d" |
| 81 | }, |
| 82 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 83 | static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 84 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* t-a */ |
| 85 | { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* t-b */ |
| 86 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 2, 0, 0 }, /* t-c */ |
| 87 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* t-d */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 88 | }; |
| 89 | static asn_CHOICE_specifics_t asn_SPC_T_specs_1 = { |
| 90 | sizeof(struct T), |
| 91 | offsetof(struct T, _asn_ctx), |
| 92 | offsetof(struct T, present), |
| 93 | sizeof(((struct T *)0)->present), |
| 94 | asn_MAP_T_tag2el_1, |
| 95 | 4, /* Count of tags in the map */ |
| 96 | .canonical_order = 0, |
| 97 | .ext_start = -1 /* Extensions start */ |
| 98 | }; |
| 99 | asn_TYPE_descriptor_t asn_DEF_T = { |
| 100 | "T", |
| 101 | "T", |
| 102 | CHOICE_free, |
| 103 | CHOICE_print, |
| 104 | CHOICE_constraint, |
| 105 | CHOICE_decode_ber, |
| 106 | CHOICE_encode_der, |
| 107 | CHOICE_decode_xer, |
| 108 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 109 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 110 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 111 | CHOICE_outmost_tag, |
| 112 | 0, /* No effective tags (pointer) */ |
| 113 | 0, /* No effective tags (count) */ |
| 114 | 0, /* No tags (pointer) */ |
| 115 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 116 | 0, /* No OER visible constraints */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 117 | 0, /* No PER visible constraints */ |
| 118 | asn_MBR_T_1, |
| 119 | 4, /* Elements count */ |
| 120 | &asn_SPC_T_specs_1 /* Additional specs */ |
| 121 | }; |
| 122 | |
| 123 | |
| 124 | /*** <<< INCLUDES [Choice1] >>> ***/ |
| 125 | |
| 126 | #include <OCTET_STRING.h> |
| 127 | #include <INTEGER.h> |
| 128 | #include <constr_CHOICE.h> |
| 129 | |
| 130 | /*** <<< DEPS [Choice1] >>> ***/ |
| 131 | |
| 132 | typedef enum Choice1_PR { |
| 133 | Choice1_PR_NOTHING, /* No components present */ |
| 134 | Choice1_PR_c_a, |
| 135 | Choice1_PR_c_b |
| 136 | } Choice1_PR; |
| 137 | |
| 138 | /*** <<< TYPE-DECLS [Choice1] >>> ***/ |
| 139 | |
| 140 | typedef struct Choice1 { |
| 141 | Choice1_PR present; |
| 142 | union Choice1_u { |
| 143 | OCTET_STRING_t c_a; |
| 144 | INTEGER_t c_b; |
| 145 | } choice; |
| 146 | |
| 147 | /* Context for parsing across buffer boundaries */ |
| 148 | asn_struct_ctx_t _asn_ctx; |
| 149 | } Choice1_t; |
| 150 | |
| 151 | /*** <<< FUNC-DECLS [Choice1] >>> ***/ |
| 152 | |
| 153 | extern asn_TYPE_descriptor_t asn_DEF_Choice1; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 154 | extern asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1; |
| 155 | extern asn_TYPE_member_t asn_MBR_Choice1_1[2]; |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 156 | |
| 157 | /*** <<< STAT-DEFS [Choice1] >>> ***/ |
| 158 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 159 | asn_TYPE_member_t asn_MBR_Choice1_1[] = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 160 | { ATF_NOFLAGS, 0, offsetof(struct Choice1, choice.c_a), |
| 161 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), |
| 162 | .tag_mode = 0, |
| 163 | .type = &asn_DEF_OCTET_STRING, |
| 164 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 165 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 166 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 167 | .default_value = 0, |
| 168 | .name = "c-a" |
| 169 | }, |
| 170 | { ATF_NOFLAGS, 0, offsetof(struct Choice1, choice.c_b), |
| 171 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 172 | .tag_mode = 0, |
| 173 | .type = &asn_DEF_INTEGER, |
| 174 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 175 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 176 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 177 | .default_value = 0, |
| 178 | .name = "c-b" |
| 179 | }, |
| 180 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 181 | static const asn_TYPE_tag2member_t asn_MAP_Choice1_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 182 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* c-b */ |
| 183 | { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* c-a */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 184 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 185 | asn_CHOICE_specifics_t asn_SPC_Choice1_specs_1 = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 186 | sizeof(struct Choice1), |
| 187 | offsetof(struct Choice1, _asn_ctx), |
| 188 | offsetof(struct Choice1, present), |
| 189 | sizeof(((struct Choice1 *)0)->present), |
| 190 | asn_MAP_Choice1_tag2el_1, |
| 191 | 2, /* Count of tags in the map */ |
| 192 | .canonical_order = 0, |
| 193 | .ext_start = -1 /* Extensions start */ |
| 194 | }; |
| 195 | asn_TYPE_descriptor_t asn_DEF_Choice1 = { |
| 196 | "Choice1", |
| 197 | "Choice1", |
| 198 | CHOICE_free, |
| 199 | CHOICE_print, |
| 200 | CHOICE_constraint, |
| 201 | CHOICE_decode_ber, |
| 202 | CHOICE_encode_der, |
| 203 | CHOICE_decode_xer, |
| 204 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 205 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 206 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 207 | CHOICE_outmost_tag, |
| 208 | 0, /* No effective tags (pointer) */ |
| 209 | 0, /* No effective tags (count) */ |
| 210 | 0, /* No tags (pointer) */ |
| 211 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 212 | 0, /* No OER visible constraints */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 213 | 0, /* No PER visible constraints */ |
| 214 | asn_MBR_Choice1_1, |
| 215 | 2, /* Elements count */ |
| 216 | &asn_SPC_Choice1_specs_1 /* Additional specs */ |
| 217 | }; |
| 218 | |
| 219 | |
| 220 | /*** <<< INCLUDES [Choice2] >>> ***/ |
| 221 | |
| 222 | #include <OCTET_STRING.h> |
| 223 | #include <INTEGER.h> |
| 224 | #include "Choice1.h" |
| 225 | #include <constr_CHOICE.h> |
| 226 | |
| 227 | /*** <<< DEPS [Choice2] >>> ***/ |
| 228 | |
| 229 | typedef enum Choice2_PR { |
| 230 | Choice2_PR_NOTHING, /* No components present */ |
| 231 | Choice2_PR_c_a, |
| 232 | Choice2_PR_c_b, |
| 233 | Choice2_PR_c_d, |
| 234 | Choice2_PR_c_e |
| 235 | } Choice2_PR; |
| 236 | |
| 237 | /*** <<< TYPE-DECLS [Choice2] >>> ***/ |
| 238 | |
| 239 | typedef struct Choice2 { |
| 240 | Choice2_PR present; |
| 241 | union Choice2_u { |
| 242 | OCTET_STRING_t c_a; |
| 243 | INTEGER_t c_b; |
| 244 | Choice1_t c_d; |
| 245 | Choice1_t c_e; |
| 246 | } choice; |
| 247 | |
| 248 | /* Context for parsing across buffer boundaries */ |
| 249 | asn_struct_ctx_t _asn_ctx; |
| 250 | } Choice2_t; |
| 251 | |
| 252 | /*** <<< FUNC-DECLS [Choice2] >>> ***/ |
| 253 | |
| 254 | extern asn_TYPE_descriptor_t asn_DEF_Choice2; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 255 | extern asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1; |
| 256 | extern asn_TYPE_member_t asn_MBR_Choice2_1[4]; |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 257 | |
| 258 | /*** <<< STAT-DEFS [Choice2] >>> ***/ |
| 259 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 260 | asn_TYPE_member_t asn_MBR_Choice2_1[] = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 261 | { ATF_NOFLAGS, 0, offsetof(struct Choice2, choice.c_a), |
| 262 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), |
| 263 | .tag_mode = 0, |
| 264 | .type = &asn_DEF_OCTET_STRING, |
| 265 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 266 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 267 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 268 | .default_value = 0, |
| 269 | .name = "c-a" |
| 270 | }, |
| 271 | { ATF_NOFLAGS, 0, offsetof(struct Choice2, choice.c_b), |
| 272 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 273 | .tag_mode = 0, |
| 274 | .type = &asn_DEF_INTEGER, |
| 275 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 276 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 277 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 278 | .default_value = 0, |
| 279 | .name = "c-b" |
| 280 | }, |
| 281 | { ATF_NOFLAGS, 0, offsetof(struct Choice2, choice.c_d), |
| 282 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 283 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
| 284 | .type = &asn_DEF_Choice1, |
| 285 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 286 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 287 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 288 | .default_value = 0, |
| 289 | .name = "c-d" |
| 290 | }, |
| 291 | { ATF_NOFLAGS, 0, offsetof(struct Choice2, choice.c_e), |
| 292 | .tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 293 | .tag_mode = +1, /* EXPLICIT tag at current level */ |
| 294 | .type = &asn_DEF_Choice1, |
| 295 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 296 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 297 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 298 | .default_value = 0, |
| 299 | .name = "c-e" |
| 300 | }, |
| 301 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 302 | static const ber_tlv_tag_t asn_DEF_Choice2_tags_1[] = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 303 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)) |
| 304 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 305 | static const asn_TYPE_tag2member_t asn_MAP_Choice2_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 306 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* c-b */ |
| 307 | { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 }, /* c-a */ |
| 308 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* c-d */ |
| 309 | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 } /* c-e */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 310 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 311 | asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 312 | sizeof(struct Choice2), |
| 313 | offsetof(struct Choice2, _asn_ctx), |
| 314 | offsetof(struct Choice2, present), |
| 315 | sizeof(((struct Choice2 *)0)->present), |
| 316 | asn_MAP_Choice2_tag2el_1, |
| 317 | 4, /* Count of tags in the map */ |
| 318 | .canonical_order = 0, |
| 319 | .ext_start = -1 /* Extensions start */ |
| 320 | }; |
| 321 | asn_TYPE_descriptor_t asn_DEF_Choice2 = { |
| 322 | "Choice2", |
| 323 | "Choice2", |
| 324 | CHOICE_free, |
| 325 | CHOICE_print, |
| 326 | CHOICE_constraint, |
| 327 | CHOICE_decode_ber, |
| 328 | CHOICE_encode_der, |
| 329 | CHOICE_decode_xer, |
| 330 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 331 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 332 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 333 | CHOICE_outmost_tag, |
| 334 | asn_DEF_Choice2_tags_1, |
| 335 | sizeof(asn_DEF_Choice2_tags_1) |
| 336 | /sizeof(asn_DEF_Choice2_tags_1[0]), /* 1 */ |
| 337 | asn_DEF_Choice2_tags_1, /* Same as above */ |
| 338 | sizeof(asn_DEF_Choice2_tags_1) |
| 339 | /sizeof(asn_DEF_Choice2_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 340 | 0, /* No OER visible constraints */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 341 | 0, /* No PER visible constraints */ |
| 342 | asn_MBR_Choice2_1, |
| 343 | 4, /* Elements count */ |
| 344 | &asn_SPC_Choice2_specs_1 /* Additional specs */ |
| 345 | }; |
| 346 | |
| 347 | |
| 348 | /*** <<< INCLUDES [Choice3] >>> ***/ |
| 349 | |
| 350 | #include "Choice2.h" |
| 351 | |
| 352 | /*** <<< TYPE-DECLS [Choice3] >>> ***/ |
| 353 | |
| 354 | typedef Choice2_t Choice3_t; |
| 355 | |
| 356 | /*** <<< FUNC-DECLS [Choice3] >>> ***/ |
| 357 | |
| 358 | extern asn_TYPE_descriptor_t asn_DEF_Choice3; |
| 359 | asn_struct_free_f Choice3_free; |
| 360 | asn_struct_print_f Choice3_print; |
| 361 | asn_constr_check_f Choice3_constraint; |
| 362 | ber_type_decoder_f Choice3_decode_ber; |
| 363 | der_type_encoder_f Choice3_encode_der; |
| 364 | xer_type_decoder_f Choice3_decode_xer; |
| 365 | xer_type_encoder_f Choice3_encode_xer; |
| 366 | |
| 367 | /*** <<< CODE [Choice3] >>> ***/ |
| 368 | |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 369 | /* |
| 370 | * This type is implemented using Choice2, |
| 371 | * so here we adjust the DEF accordingly. |
| 372 | */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 373 | |
| 374 | /*** <<< STAT-DEFS [Choice3] >>> ***/ |
| 375 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 376 | static const ber_tlv_tag_t asn_DEF_Choice3_tags_1[] = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 377 | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 378 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)) |
| 379 | }; |
| 380 | asn_TYPE_descriptor_t asn_DEF_Choice3 = { |
| 381 | "Choice3", |
| 382 | "Choice3", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 383 | CHOICE_free, |
| 384 | CHOICE_print, |
| 385 | CHOICE_constraint, |
| 386 | CHOICE_decode_ber, |
| 387 | CHOICE_encode_der, |
| 388 | CHOICE_decode_xer, |
| 389 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 390 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 391 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 392 | CHOICE_outmost_tag, |
| 393 | asn_DEF_Choice3_tags_1, |
| 394 | sizeof(asn_DEF_Choice3_tags_1) |
| 395 | /sizeof(asn_DEF_Choice3_tags_1[0]), /* 2 */ |
| 396 | asn_DEF_Choice3_tags_1, /* Same as above */ |
| 397 | sizeof(asn_DEF_Choice3_tags_1) |
| 398 | /sizeof(asn_DEF_Choice3_tags_1[0]), /* 2 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 399 | 0, /* No OER visible constraints */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 400 | 0, /* No PER visible constraints */ |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 401 | asn_MBR_Choice2_1, |
| 402 | 4, /* Elements count */ |
| 403 | &asn_SPC_Choice2_specs_1 /* Additional specs */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 404 | }; |
| 405 | |
| 406 | |
| 407 | /*** <<< INCLUDES [Choice4] >>> ***/ |
| 408 | |
| 409 | #include "Choice2.h" |
| 410 | |
| 411 | /*** <<< TYPE-DECLS [Choice4] >>> ***/ |
| 412 | |
| 413 | typedef Choice2_t Choice4_t; |
| 414 | |
| 415 | /*** <<< FUNC-DECLS [Choice4] >>> ***/ |
| 416 | |
| 417 | extern asn_TYPE_descriptor_t asn_DEF_Choice4; |
| 418 | asn_struct_free_f Choice4_free; |
| 419 | asn_struct_print_f Choice4_print; |
| 420 | asn_constr_check_f Choice4_constraint; |
| 421 | ber_type_decoder_f Choice4_decode_ber; |
| 422 | der_type_encoder_f Choice4_encode_der; |
| 423 | xer_type_decoder_f Choice4_decode_xer; |
| 424 | xer_type_encoder_f Choice4_encode_xer; |
| 425 | |
| 426 | /*** <<< CODE [Choice4] >>> ***/ |
| 427 | |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 428 | /* |
| 429 | * This type is implemented using Choice2, |
| 430 | * so here we adjust the DEF accordingly. |
| 431 | */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 432 | |
| 433 | /*** <<< STAT-DEFS [Choice4] >>> ***/ |
| 434 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 435 | static const ber_tlv_tag_t asn_DEF_Choice4_tags_1[] = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 436 | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
| 437 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)) |
| 438 | }; |
| 439 | asn_TYPE_descriptor_t asn_DEF_Choice4 = { |
| 440 | "Choice4", |
| 441 | "Choice4", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 442 | CHOICE_free, |
| 443 | CHOICE_print, |
| 444 | CHOICE_constraint, |
| 445 | CHOICE_decode_ber, |
| 446 | CHOICE_encode_der, |
| 447 | CHOICE_decode_xer, |
| 448 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 449 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 450 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 451 | CHOICE_outmost_tag, |
| 452 | asn_DEF_Choice4_tags_1, |
| 453 | sizeof(asn_DEF_Choice4_tags_1) |
| 454 | /sizeof(asn_DEF_Choice4_tags_1[0]) - 1, /* 1 */ |
| 455 | asn_DEF_Choice4_tags_1, /* Same as above */ |
| 456 | sizeof(asn_DEF_Choice4_tags_1) |
| 457 | /sizeof(asn_DEF_Choice4_tags_1[0]), /* 2 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 458 | 0, /* No OER visible constraints */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 459 | 0, /* No PER visible constraints */ |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 460 | asn_MBR_Choice2_1, |
| 461 | 4, /* Elements count */ |
| 462 | &asn_SPC_Choice2_specs_1 /* Additional specs */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 463 | }; |
| 464 | |
| 465 | |
| 466 | /*** <<< INCLUDES [Choice5] >>> ***/ |
| 467 | |
| 468 | #include "Choice2.h" |
| 469 | |
| 470 | /*** <<< TYPE-DECLS [Choice5] >>> ***/ |
| 471 | |
| 472 | typedef Choice2_t Choice5_t; |
| 473 | |
| 474 | /*** <<< FUNC-DECLS [Choice5] >>> ***/ |
| 475 | |
| 476 | extern asn_TYPE_descriptor_t asn_DEF_Choice5; |
| 477 | asn_struct_free_f Choice5_free; |
| 478 | asn_struct_print_f Choice5_print; |
| 479 | asn_constr_check_f Choice5_constraint; |
| 480 | ber_type_decoder_f Choice5_decode_ber; |
| 481 | der_type_encoder_f Choice5_encode_der; |
| 482 | xer_type_decoder_f Choice5_decode_xer; |
| 483 | xer_type_encoder_f Choice5_encode_xer; |
| 484 | |
| 485 | /*** <<< CODE [Choice5] >>> ***/ |
| 486 | |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 487 | /* |
| 488 | * This type is implemented using Choice2, |
| 489 | * so here we adjust the DEF accordingly. |
| 490 | */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 491 | |
| 492 | /*** <<< STAT-DEFS [Choice5] >>> ***/ |
| 493 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 494 | static const ber_tlv_tag_t asn_DEF_Choice5_tags_1[] = { |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 495 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)) |
| 496 | }; |
| 497 | asn_TYPE_descriptor_t asn_DEF_Choice5 = { |
| 498 | "Choice5", |
| 499 | "Choice5", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 500 | CHOICE_free, |
| 501 | CHOICE_print, |
| 502 | CHOICE_constraint, |
| 503 | CHOICE_decode_ber, |
| 504 | CHOICE_encode_der, |
| 505 | CHOICE_decode_xer, |
| 506 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 507 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 508 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 509 | CHOICE_outmost_tag, |
| 510 | asn_DEF_Choice5_tags_1, |
| 511 | sizeof(asn_DEF_Choice5_tags_1) |
| 512 | /sizeof(asn_DEF_Choice5_tags_1[0]), /* 1 */ |
| 513 | asn_DEF_Choice5_tags_1, /* Same as above */ |
| 514 | sizeof(asn_DEF_Choice5_tags_1) |
| 515 | /sizeof(asn_DEF_Choice5_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 516 | 0, /* No OER visible constraints */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 517 | 0, /* No PER visible constraints */ |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 518 | asn_MBR_Choice2_1, |
| 519 | 4, /* Elements count */ |
| 520 | &asn_SPC_Choice2_specs_1 /* Additional specs */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 521 | }; |
| 522 | |
| 523 | |
| 524 | /*** <<< INCLUDES [Choice6] >>> ***/ |
| 525 | |
| 526 | #include "Choice1.h" |
| 527 | |
| 528 | /*** <<< TYPE-DECLS [Choice6] >>> ***/ |
| 529 | |
| 530 | typedef Choice1_t Choice6_t; |
| 531 | |
| 532 | /*** <<< FUNC-DECLS [Choice6] >>> ***/ |
| 533 | |
| 534 | extern asn_TYPE_descriptor_t asn_DEF_Choice6; |
| 535 | asn_struct_free_f Choice6_free; |
| 536 | asn_struct_print_f Choice6_print; |
| 537 | asn_constr_check_f Choice6_constraint; |
| 538 | ber_type_decoder_f Choice6_decode_ber; |
| 539 | der_type_encoder_f Choice6_encode_der; |
| 540 | xer_type_decoder_f Choice6_decode_xer; |
| 541 | xer_type_encoder_f Choice6_encode_xer; |
| 542 | |
| 543 | /*** <<< CODE [Choice6] >>> ***/ |
| 544 | |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 545 | /* |
| 546 | * This type is implemented using Choice1, |
| 547 | * so here we adjust the DEF accordingly. |
| 548 | */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 549 | |
| 550 | /*** <<< STAT-DEFS [Choice6] >>> ***/ |
| 551 | |
| 552 | asn_TYPE_descriptor_t asn_DEF_Choice6 = { |
| 553 | "Choice6", |
| 554 | "Choice6", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 555 | CHOICE_free, |
| 556 | CHOICE_print, |
| 557 | CHOICE_constraint, |
| 558 | CHOICE_decode_ber, |
| 559 | CHOICE_encode_der, |
| 560 | CHOICE_decode_xer, |
| 561 | CHOICE_encode_xer, |
Lev Walkin | ba68c91 | 2017-07-06 07:52:39 -0700 | [diff] [blame] | 562 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 563 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 564 | CHOICE_outmost_tag, |
| 565 | 0, /* No effective tags (pointer) */ |
| 566 | 0, /* No effective tags (count) */ |
| 567 | 0, /* No tags (pointer) */ |
| 568 | 0, /* No tags (count) */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 569 | 0, /* No OER visible constraints */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 570 | 0, /* No PER visible constraints */ |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 571 | asn_MBR_Choice1_1, |
| 572 | 2, /* Elements count */ |
| 573 | &asn_SPC_Choice1_specs_1 /* Additional specs */ |
Lev Walkin | 8c2ca0b | 2006-09-17 06:31:08 +0000 | [diff] [blame] | 574 | }; |
| 575 | |