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