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