Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Forest] >>> ***/ |
| 3 | |
| 4 | #include <asn_SET_OF.h> |
| 5 | #include <constr_SET_OF.h> |
| 6 | |
| 7 | /*** <<< FWD-DECLS [Forest] >>> ***/ |
| 8 | |
| 9 | struct Tree; |
| 10 | |
| 11 | /*** <<< TYPE-DECLS [Forest] >>> ***/ |
| 12 | |
| 13 | typedef struct Forest { |
| 14 | A_SET_OF(struct Tree) list; |
| 15 | |
| 16 | /* Context for parsing across buffer boundaries */ |
| 17 | asn_struct_ctx_t _asn_ctx; |
| 18 | } Forest_t; |
| 19 | |
| 20 | /*** <<< FUNC-DECLS [Forest] >>> ***/ |
| 21 | |
| 22 | extern asn_TYPE_descriptor_t asn_DEF_Forest; |
| 23 | extern asn_SET_OF_specifics_t asn_SPC_Forest_specs_1; |
| 24 | extern asn_TYPE_member_t asn_MBR_Forest_1[1]; |
| 25 | |
| 26 | /*** <<< POST-INCLUDE [Forest] >>> ***/ |
| 27 | |
| 28 | #include "Tree.h" |
| 29 | |
| 30 | /*** <<< STAT-DEFS [Forest] >>> ***/ |
| 31 | |
| 32 | asn_TYPE_member_t asn_MBR_Forest_1[] = { |
| 33 | { ATF_POINTER, 0, 0, |
| 34 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 35 | .tag_mode = 0, |
| 36 | .type = &asn_DEF_Tree, |
| 37 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 38 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 39 | .default_value = 0, |
| 40 | .name = "" |
| 41 | }, |
| 42 | }; |
| 43 | static const ber_tlv_tag_t asn_DEF_Forest_tags_1[] = { |
| 44 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 45 | }; |
| 46 | asn_SET_OF_specifics_t asn_SPC_Forest_specs_1 = { |
| 47 | sizeof(struct Forest), |
| 48 | offsetof(struct Forest, _asn_ctx), |
| 49 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 50 | }; |
| 51 | asn_TYPE_descriptor_t asn_DEF_Forest = { |
| 52 | "Forest", |
| 53 | "Forest", |
| 54 | &asn_OP_SET_OF, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 55 | asn_DEF_Forest_tags_1, |
| 56 | sizeof(asn_DEF_Forest_tags_1) |
| 57 | /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */ |
| 58 | asn_DEF_Forest_tags_1, /* Same as above */ |
| 59 | sizeof(asn_DEF_Forest_tags_1) |
| 60 | /sizeof(asn_DEF_Forest_tags_1[0]), /* 1 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 61 | { 0, 0, SET_OF_constraint }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 62 | asn_MBR_Forest_1, |
| 63 | 1, /* Single element */ |
| 64 | &asn_SPC_Forest_specs_1 /* Additional specs */ |
| 65 | }; |
| 66 | |
| 67 | |
| 68 | /*** <<< INCLUDES [Tree] >>> ***/ |
| 69 | |
| 70 | #include <NativeInteger.h> |
| 71 | #include <constr_SEQUENCE.h> |
| 72 | |
| 73 | /*** <<< TYPE-DECLS [Tree] >>> ***/ |
| 74 | |
| 75 | typedef struct Tree { |
| 76 | long height; |
| 77 | long width; |
| 78 | |
| 79 | /* Context for parsing across buffer boundaries */ |
| 80 | asn_struct_ctx_t _asn_ctx; |
| 81 | } Tree_t; |
| 82 | |
| 83 | /*** <<< FUNC-DECLS [Tree] >>> ***/ |
| 84 | |
| 85 | extern asn_TYPE_descriptor_t asn_DEF_Tree; |
| 86 | extern asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1; |
| 87 | extern asn_TYPE_member_t asn_MBR_Tree_1[2]; |
| 88 | |
| 89 | /*** <<< STAT-DEFS [Tree] >>> ***/ |
| 90 | |
| 91 | asn_TYPE_member_t asn_MBR_Tree_1[] = { |
| 92 | { ATF_NOFLAGS, 0, offsetof(struct Tree, height), |
| 93 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 94 | .tag_mode = 0, |
| 95 | .type = &asn_DEF_NativeInteger, |
| 96 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 97 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 98 | .default_value = 0, |
| 99 | .name = "height" |
| 100 | }, |
| 101 | { ATF_NOFLAGS, 0, offsetof(struct Tree, width), |
| 102 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 103 | .tag_mode = 0, |
| 104 | .type = &asn_DEF_NativeInteger, |
| 105 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 106 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 107 | .default_value = 0, |
| 108 | .name = "width" |
| 109 | }, |
| 110 | }; |
| 111 | static const ber_tlv_tag_t asn_DEF_Tree_tags_1[] = { |
| 112 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 113 | }; |
| 114 | static const asn_TYPE_tag2member_t asn_MAP_Tree_tag2el_1[] = { |
| 115 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* height */ |
| 116 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, -1, 0 } /* width */ |
| 117 | }; |
| 118 | asn_SEQUENCE_specifics_t asn_SPC_Tree_specs_1 = { |
| 119 | sizeof(struct Tree), |
| 120 | offsetof(struct Tree, _asn_ctx), |
| 121 | .tag2el = asn_MAP_Tree_tag2el_1, |
| 122 | .tag2el_count = 2, /* Count of tags in the map */ |
| 123 | 0, 0, 0, /* Optional elements (not needed) */ |
| 124 | -1, /* Start extensions */ |
| 125 | -1 /* Stop extensions */ |
| 126 | }; |
| 127 | asn_TYPE_descriptor_t asn_DEF_Tree = { |
| 128 | "Tree", |
| 129 | "Tree", |
| 130 | &asn_OP_SEQUENCE, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 131 | asn_DEF_Tree_tags_1, |
| 132 | sizeof(asn_DEF_Tree_tags_1) |
| 133 | /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */ |
| 134 | asn_DEF_Tree_tags_1, /* Same as above */ |
| 135 | sizeof(asn_DEF_Tree_tags_1) |
| 136 | /sizeof(asn_DEF_Tree_tags_1[0]), /* 1 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 137 | { 0, 0, SEQUENCE_constraint }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 138 | asn_MBR_Tree_1, |
| 139 | 2, /* Elements count */ |
| 140 | &asn_SPC_Tree_specs_1 /* Additional specs */ |
| 141 | }; |
| 142 | |
| 143 | |
| 144 | /*** <<< INCLUDES [Stuff] >>> ***/ |
| 145 | |
| 146 | #include <asn_SET_OF.h> |
| 147 | #include <constr_SET_OF.h> |
| 148 | #include <BIT_STRING.h> |
| 149 | #include <constr_SEQUENCE.h> |
| 150 | #include <NativeInteger.h> |
| 151 | #include <constr_CHOICE.h> |
| 152 | #include <constr_SET.h> |
| 153 | |
| 154 | /*** <<< DEPS [Stuff] >>> ***/ |
| 155 | |
| 156 | |
| 157 | /* |
| 158 | * Method of determining the components presence |
| 159 | */ |
| 160 | typedef enum Stuff_PR { |
| 161 | Stuff_PR_trees, /* Member trees is present */ |
| 162 | Stuff_PR_anything, /* Member anything is present */ |
| 163 | Stuff_PR_other, /* Member other is present */ |
| 164 | } Stuff_PR; |
| 165 | typedef enum Stuff__other_PR { |
| 166 | Stuff__other_PR_NOTHING, /* No components present */ |
| 167 | Stuff__other_PR_a, |
| 168 | Stuff__other_PR_b |
| 169 | } Stuff__other_PR; |
| 170 | |
| 171 | /*** <<< FWD-DECLS [Stuff] >>> ***/ |
| 172 | |
| 173 | struct Forest; |
| 174 | |
| 175 | /*** <<< FWD-DEFS [Stuff] >>> ***/ |
| 176 | |
| 177 | typedef struct Stuff__anything__Member { |
| 178 | BIT_STRING_t cup_of_coffee; |
| 179 | /* |
| 180 | * This type is extensible, |
| 181 | * possible extensions are below. |
| 182 | */ |
| 183 | |
| 184 | /* Context for parsing across buffer boundaries */ |
| 185 | asn_struct_ctx_t _asn_ctx; |
| 186 | } Stuff__anything__Member; |
| 187 | |
| 188 | /*** <<< TYPE-DECLS [Stuff] >>> ***/ |
| 189 | |
| 190 | typedef struct Stuff { |
| 191 | struct Stuff__trees { |
| 192 | A_SET_OF(struct Forest) list; |
| 193 | |
| 194 | /* Context for parsing across buffer boundaries */ |
| 195 | asn_struct_ctx_t _asn_ctx; |
| 196 | } *trees; |
| 197 | struct Stuff__anything { |
| 198 | A_SET_OF(Stuff__anything__Member) list; |
| 199 | |
| 200 | /* Context for parsing across buffer boundaries */ |
| 201 | asn_struct_ctx_t _asn_ctx; |
| 202 | } *anything; |
| 203 | /* |
| 204 | * This type is extensible, |
| 205 | * possible extensions are below. |
| 206 | */ |
| 207 | struct Stuff__other { |
| 208 | Stuff__other_PR present; |
| 209 | union Stuff__other_u { |
| 210 | long a; |
| 211 | long b; |
| 212 | } choice; |
| 213 | |
| 214 | /* Context for parsing across buffer boundaries */ |
| 215 | asn_struct_ctx_t _asn_ctx; |
| 216 | } *other; |
| 217 | |
| 218 | /* Presence bitmask: ASN_SET_ISPRESENT(pStuff, Stuff_PR_x) */ |
| 219 | unsigned int _presence_map |
| 220 | [((3+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))]; |
| 221 | |
| 222 | /* Context for parsing across buffer boundaries */ |
| 223 | asn_struct_ctx_t _asn_ctx; |
| 224 | } Stuff_t; |
| 225 | |
| 226 | /*** <<< FUNC-DECLS [Stuff] >>> ***/ |
| 227 | |
| 228 | extern asn_TYPE_descriptor_t asn_DEF_Stuff; |
| 229 | |
| 230 | /*** <<< POST-INCLUDE [Stuff] >>> ***/ |
| 231 | |
| 232 | #include "Forest.h" |
| 233 | |
| 234 | /*** <<< STAT-DEFS [Stuff] >>> ***/ |
| 235 | |
| 236 | static asn_TYPE_member_t asn_MBR_trees_2[] = { |
| 237 | { ATF_POINTER, 0, 0, |
| 238 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 239 | .tag_mode = 0, |
| 240 | .type = &asn_DEF_Forest, |
| 241 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 242 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 243 | .default_value = 0, |
| 244 | .name = "" |
| 245 | }, |
| 246 | }; |
| 247 | static const ber_tlv_tag_t asn_DEF_trees_tags_2[] = { |
| 248 | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 249 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 250 | }; |
| 251 | static asn_SET_OF_specifics_t asn_SPC_trees_specs_2 = { |
| 252 | sizeof(struct Stuff__trees), |
| 253 | offsetof(struct Stuff__trees, _asn_ctx), |
| 254 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 255 | }; |
| 256 | static /* Use -fall-defs-global to expose */ |
| 257 | asn_TYPE_descriptor_t asn_DEF_trees_2 = { |
| 258 | "trees", |
| 259 | "trees", |
| 260 | &asn_OP_SET_OF, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 261 | asn_DEF_trees_tags_2, |
| 262 | sizeof(asn_DEF_trees_tags_2) |
| 263 | /sizeof(asn_DEF_trees_tags_2[0]) - 1, /* 1 */ |
| 264 | asn_DEF_trees_tags_2, /* Same as above */ |
| 265 | sizeof(asn_DEF_trees_tags_2) |
| 266 | /sizeof(asn_DEF_trees_tags_2[0]), /* 2 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 267 | { 0, 0, SET_OF_constraint }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 268 | asn_MBR_trees_2, |
| 269 | 1, /* Single element */ |
| 270 | &asn_SPC_trees_specs_2 /* Additional specs */ |
| 271 | }; |
| 272 | |
| 273 | static asn_TYPE_member_t asn_MBR_Member_5[] = { |
| 274 | { ATF_NOFLAGS, 0, offsetof(struct Stuff__anything__Member, cup_of_coffee), |
| 275 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), |
| 276 | .tag_mode = 0, |
| 277 | .type = &asn_DEF_BIT_STRING, |
| 278 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 279 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 280 | .default_value = 0, |
| 281 | .name = "cup-of-coffee" |
| 282 | }, |
| 283 | }; |
| 284 | static const ber_tlv_tag_t asn_DEF_Member_tags_5[] = { |
| 285 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 286 | }; |
| 287 | static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_5[] = { |
| 288 | { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee */ |
| 289 | }; |
| 290 | static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_5 = { |
| 291 | sizeof(struct Stuff__anything__Member), |
| 292 | offsetof(struct Stuff__anything__Member, _asn_ctx), |
| 293 | .tag2el = asn_MAP_Member_tag2el_5, |
| 294 | .tag2el_count = 1, /* Count of tags in the map */ |
| 295 | 0, 0, 0, /* Optional elements (not needed) */ |
| 296 | 0, /* Start extensions */ |
| 297 | 2 /* Stop extensions */ |
| 298 | }; |
| 299 | static /* Use -fall-defs-global to expose */ |
| 300 | asn_TYPE_descriptor_t asn_DEF_Member_5 = { |
| 301 | "SEQUENCE", |
| 302 | "SEQUENCE", |
| 303 | &asn_OP_SEQUENCE, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 304 | asn_DEF_Member_tags_5, |
| 305 | sizeof(asn_DEF_Member_tags_5) |
| 306 | /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */ |
| 307 | asn_DEF_Member_tags_5, /* Same as above */ |
| 308 | sizeof(asn_DEF_Member_tags_5) |
| 309 | /sizeof(asn_DEF_Member_tags_5[0]), /* 1 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 310 | { 0, 0, SEQUENCE_constraint }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 311 | asn_MBR_Member_5, |
| 312 | 1, /* Elements count */ |
| 313 | &asn_SPC_Member_specs_5 /* Additional specs */ |
| 314 | }; |
| 315 | |
| 316 | static asn_TYPE_member_t asn_MBR_anything_4[] = { |
| 317 | { ATF_POINTER, 0, 0, |
| 318 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 319 | .tag_mode = 0, |
| 320 | .type = &asn_DEF_Member_5, |
| 321 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 322 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 323 | .default_value = 0, |
| 324 | .name = "" |
| 325 | }, |
| 326 | }; |
| 327 | static const ber_tlv_tag_t asn_DEF_anything_tags_4[] = { |
| 328 | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 329 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 330 | }; |
| 331 | static asn_SET_OF_specifics_t asn_SPC_anything_specs_4 = { |
| 332 | sizeof(struct Stuff__anything), |
| 333 | offsetof(struct Stuff__anything, _asn_ctx), |
| 334 | 0, /* XER encoding is XMLDelimitedItemList */ |
| 335 | }; |
| 336 | static /* Use -fall-defs-global to expose */ |
| 337 | asn_TYPE_descriptor_t asn_DEF_anything_4 = { |
| 338 | "anything", |
| 339 | "anything", |
| 340 | &asn_OP_SET_OF, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 341 | asn_DEF_anything_tags_4, |
| 342 | sizeof(asn_DEF_anything_tags_4) |
| 343 | /sizeof(asn_DEF_anything_tags_4[0]) - 1, /* 1 */ |
| 344 | asn_DEF_anything_tags_4, /* Same as above */ |
| 345 | sizeof(asn_DEF_anything_tags_4) |
| 346 | /sizeof(asn_DEF_anything_tags_4[0]), /* 2 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 347 | { 0, 0, SET_OF_constraint }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 348 | asn_MBR_anything_4, |
| 349 | 1, /* Single element */ |
| 350 | &asn_SPC_anything_specs_4 /* Additional specs */ |
| 351 | }; |
| 352 | |
| 353 | static asn_TYPE_member_t asn_MBR_other_9[] = { |
| 354 | { ATF_NOFLAGS, 0, offsetof(struct Stuff__other, choice.a), |
| 355 | .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
| 356 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 357 | .type = &asn_DEF_NativeInteger, |
| 358 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 359 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 360 | .default_value = 0, |
| 361 | .name = "a" |
| 362 | }, |
| 363 | { ATF_NOFLAGS, 0, offsetof(struct Stuff__other, choice.b), |
| 364 | .tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
| 365 | .tag_mode = -1, /* IMPLICIT tag at current level */ |
| 366 | .type = &asn_DEF_NativeInteger, |
| 367 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 368 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 369 | .default_value = 0, |
| 370 | .name = "b" |
| 371 | }, |
| 372 | }; |
| 373 | static const asn_TYPE_tag2member_t asn_MAP_other_tag2el_9[] = { |
| 374 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a */ |
| 375 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b */ |
| 376 | }; |
| 377 | static asn_CHOICE_specifics_t asn_SPC_other_specs_9 = { |
| 378 | sizeof(struct Stuff__other), |
| 379 | offsetof(struct Stuff__other, _asn_ctx), |
| 380 | offsetof(struct Stuff__other, present), |
| 381 | sizeof(((struct Stuff__other *)0)->present), |
| 382 | .tag2el = asn_MAP_other_tag2el_9, |
| 383 | .tag2el_count = 2, /* Count of tags in the map */ |
| 384 | .canonical_order = 0, |
| 385 | .ext_start = -1 /* Extensions start */ |
| 386 | }; |
| 387 | static /* Use -fall-defs-global to expose */ |
| 388 | asn_TYPE_descriptor_t asn_DEF_other_9 = { |
| 389 | "other", |
| 390 | "other", |
| 391 | &asn_OP_CHOICE, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 392 | 0, /* No effective tags (pointer) */ |
| 393 | 0, /* No effective tags (count) */ |
| 394 | 0, /* No tags (pointer) */ |
| 395 | 0, /* No tags (count) */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 396 | { 0, 0, CHOICE_constraint }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 397 | asn_MBR_other_9, |
| 398 | 2, /* Elements count */ |
| 399 | &asn_SPC_other_specs_9 /* Additional specs */ |
| 400 | }; |
| 401 | |
| 402 | static asn_TYPE_member_t asn_MBR_Stuff_1[] = { |
| 403 | { ATF_POINTER, 3, offsetof(struct Stuff, trees), |
| 404 | .tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
| 405 | .tag_mode = 0, |
| 406 | .type = &asn_DEF_trees_2, |
| 407 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 408 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 409 | .default_value = 0, |
| 410 | .name = "trees" |
| 411 | }, |
| 412 | { ATF_POINTER, 2, offsetof(struct Stuff, anything), |
| 413 | .tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
| 414 | .tag_mode = 0, |
| 415 | .type = &asn_DEF_anything_4, |
| 416 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 417 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 418 | .default_value = 0, |
| 419 | .name = "anything" |
| 420 | }, |
| 421 | { ATF_POINTER, 1, offsetof(struct Stuff, other), |
| 422 | .tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 423 | .tag_mode = 0, |
| 424 | .type = &asn_DEF_other_9, |
| 425 | .type_selector = 0, |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 426 | { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 427 | .default_value = 0, |
| 428 | .name = "other" |
| 429 | }, |
| 430 | }; |
| 431 | static const ber_tlv_tag_t asn_DEF_Stuff_tags_1[] = { |
| 432 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 433 | }; |
| 434 | static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_1[] = { |
| 435 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 }, /* a */ |
| 436 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */ |
| 437 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */ |
| 438 | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 } /* b */ |
| 439 | }; |
| 440 | static const asn_TYPE_tag2member_t asn_MAP_Stuff_tag2el_cxer_1[] = { |
| 441 | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* trees */ |
| 442 | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* anything */ |
| 443 | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 2, 0, 0 } /* a */ |
| 444 | }; |
| 445 | static const uint8_t asn_MAP_Stuff_mmap_1[(3 + (8 * sizeof(unsigned int)) - 1) / 8] = { |
| 446 | (0 << 7) | (0 << 6) | (0 << 5) |
| 447 | }; |
| 448 | static |
| 449 | asn_SET_specifics_t asn_SPC_Stuff_specs_1 = { |
| 450 | sizeof(struct Stuff), |
| 451 | offsetof(struct Stuff, _asn_ctx), |
| 452 | offsetof(struct Stuff, _presence_map), |
| 453 | .tag2el = asn_MAP_Stuff_tag2el_1, |
| 454 | .tag2el_count = 4, /* Count of tags in the map */ |
| 455 | asn_MAP_Stuff_tag2el_cxer_1, |
| 456 | 3, /* Count of tags in the CXER map */ |
| 457 | 1, /* Whether extensible */ |
| 458 | (const unsigned int *)asn_MAP_Stuff_mmap_1 /* Mandatory elements map */ |
| 459 | }; |
| 460 | asn_TYPE_descriptor_t asn_DEF_Stuff = { |
| 461 | "Stuff", |
| 462 | "Stuff", |
| 463 | &asn_OP_SET, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 464 | asn_DEF_Stuff_tags_1, |
| 465 | sizeof(asn_DEF_Stuff_tags_1) |
| 466 | /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */ |
| 467 | asn_DEF_Stuff_tags_1, /* Same as above */ |
| 468 | sizeof(asn_DEF_Stuff_tags_1) |
| 469 | /sizeof(asn_DEF_Stuff_tags_1[0]), /* 1 */ |
Lev Walkin | 0bfea56 | 2017-09-29 23:16:48 -0700 | [diff] [blame] | 470 | { 0, 0, SET_constraint }, |
Lev Walkin | b46156d | 2017-09-05 02:53:05 -0700 | [diff] [blame] | 471 | asn_MBR_Stuff_1, |
| 472 | 3, /* Elements count */ |
| 473 | &asn_SPC_Stuff_specs_1 /* Additional specs */ |
| 474 | }; |
| 475 | |