mirror of https://gerrit.osmocom.org/asn1c
326 lines
9.8 KiB
Plaintext
326 lines
9.8 KiB
Plaintext
|
|
/*** <<< INCLUDES [T] >>> ***/
|
|
|
|
#include <NULL.h>
|
|
#include <constr_CHOICE.h>
|
|
#include <constr_SEQUENCE.h>
|
|
|
|
/*** <<< DEPS [T] >>> ***/
|
|
|
|
typedef enum b_PR {
|
|
b_PR_NOTHING, /* No components present */
|
|
b_PR_c,
|
|
b_PR_d,
|
|
b_PR_e,
|
|
b_PR_h
|
|
} b_PR;
|
|
typedef enum e_PR {
|
|
e_PR_NOTHING, /* No components present */
|
|
e_PR_f,
|
|
e_PR_g
|
|
} e_PR;
|
|
typedef enum h_PR {
|
|
h_PR_NOTHING, /* No components present */
|
|
h_PR_i,
|
|
h_PR_j
|
|
} h_PR;
|
|
|
|
/*** <<< TYPE-DECLS [T] >>> ***/
|
|
|
|
typedef struct T {
|
|
NULL_t a;
|
|
struct b {
|
|
b_PR present;
|
|
union T__b_u {
|
|
NULL_t c;
|
|
NULL_t d;
|
|
struct e {
|
|
e_PR present;
|
|
union T__b__e_u {
|
|
NULL_t f;
|
|
NULL_t g;
|
|
} choice;
|
|
|
|
/* Context for parsing across buffer boundaries */
|
|
asn_struct_ctx_t _asn_ctx;
|
|
} e;
|
|
struct h {
|
|
h_PR present;
|
|
union T__b__h_u {
|
|
NULL_t i;
|
|
NULL_t j;
|
|
} choice;
|
|
|
|
/* Context for parsing across buffer boundaries */
|
|
asn_struct_ctx_t _asn_ctx;
|
|
} h;
|
|
} choice;
|
|
|
|
/* Context for parsing across buffer boundaries */
|
|
asn_struct_ctx_t _asn_ctx;
|
|
} b;
|
|
|
|
/* Context for parsing across buffer boundaries */
|
|
asn_struct_ctx_t _asn_ctx;
|
|
} T_t;
|
|
|
|
/*** <<< FUNC-DECLS [T] >>> ***/
|
|
|
|
extern asn_TYPE_descriptor_t asn_DEF_T;
|
|
|
|
/*** <<< STAT-DEFS [T] >>> ***/
|
|
|
|
static asn_TYPE_member_t asn_MBR_e_6[] = {
|
|
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.f),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (7 << 2)),
|
|
.tag_mode = -1, /* IMPLICIT tag at current level */
|
|
.type = &asn_DEF_NULL,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "f"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.g),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (8 << 2)),
|
|
.tag_mode = -1, /* IMPLICIT tag at current level */
|
|
.type = &asn_DEF_NULL,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "g"
|
|
},
|
|
};
|
|
static const asn_TYPE_tag2member_t asn_MAP_e_tag2el_6[] = {
|
|
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g */
|
|
};
|
|
static asn_CHOICE_specifics_t asn_SPC_e_specs_6 = {
|
|
sizeof(struct e),
|
|
offsetof(struct e, _asn_ctx),
|
|
offsetof(struct e, present),
|
|
sizeof(((struct e *)0)->present),
|
|
.tag2el = asn_MAP_e_tag2el_6,
|
|
.tag2el_count = 2, /* Count of tags in the map */
|
|
.canonical_order = 0,
|
|
.ext_start = -1 /* Extensions start */
|
|
};
|
|
static /* Use -fall-defs-global to expose */
|
|
asn_TYPE_descriptor_t asn_DEF_e_6 = {
|
|
"e",
|
|
"e",
|
|
&asn_OP_CHOICE,
|
|
CHOICE_constraint,
|
|
0, /* No effective tags (pointer) */
|
|
0, /* No effective tags (count) */
|
|
0, /* No tags (pointer) */
|
|
0, /* No tags (count) */
|
|
0, /* No OER visible constraints */
|
|
0, /* No PER visible constraints */
|
|
asn_MBR_e_6,
|
|
2, /* Elements count */
|
|
&asn_SPC_e_specs_6 /* Additional specs */
|
|
};
|
|
|
|
static asn_TYPE_member_t asn_MBR_h_9[] = {
|
|
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.i),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)),
|
|
.tag_mode = -1, /* IMPLICIT tag at current level */
|
|
.type = &asn_DEF_NULL,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "i"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.j),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
|
|
.tag_mode = -1, /* IMPLICIT tag at current level */
|
|
.type = &asn_DEF_NULL,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "j"
|
|
},
|
|
};
|
|
static const asn_TYPE_tag2member_t asn_MAP_h_tag2el_9[] = {
|
|
{ (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j */
|
|
};
|
|
static asn_CHOICE_specifics_t asn_SPC_h_specs_9 = {
|
|
sizeof(struct h),
|
|
offsetof(struct h, _asn_ctx),
|
|
offsetof(struct h, present),
|
|
sizeof(((struct h *)0)->present),
|
|
.tag2el = asn_MAP_h_tag2el_9,
|
|
.tag2el_count = 2, /* Count of tags in the map */
|
|
.canonical_order = 0,
|
|
.ext_start = -1 /* Extensions start */
|
|
};
|
|
static /* Use -fall-defs-global to expose */
|
|
asn_TYPE_descriptor_t asn_DEF_h_9 = {
|
|
"h",
|
|
"h",
|
|
&asn_OP_CHOICE,
|
|
CHOICE_constraint,
|
|
0, /* No effective tags (pointer) */
|
|
0, /* No effective tags (count) */
|
|
0, /* No tags (pointer) */
|
|
0, /* No tags (count) */
|
|
0, /* No OER visible constraints */
|
|
0, /* No PER visible constraints */
|
|
asn_MBR_h_9,
|
|
2, /* Elements count */
|
|
&asn_SPC_h_specs_9 /* Additional specs */
|
|
};
|
|
|
|
static asn_TYPE_member_t asn_MBR_b_3[] = {
|
|
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.c),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)),
|
|
.tag_mode = -1, /* IMPLICIT tag at current level */
|
|
.type = &asn_DEF_NULL,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "c"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.d),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (6 << 2)),
|
|
.tag_mode = -1, /* IMPLICIT tag at current level */
|
|
.type = &asn_DEF_NULL,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "d"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.e),
|
|
.tag = -1 /* Ambiguous tag (CHOICE?) */,
|
|
.tag_mode = 0,
|
|
.type = &asn_DEF_e_6,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "e"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.h),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)),
|
|
.tag_mode = +1, /* EXPLICIT tag at current level */
|
|
.type = &asn_DEF_h_9,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "h"
|
|
},
|
|
};
|
|
static const asn_TYPE_tag2member_t asn_MAP_b_tag2el_3[] = {
|
|
{ (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h */
|
|
};
|
|
static asn_CHOICE_specifics_t asn_SPC_b_specs_3 = {
|
|
sizeof(struct b),
|
|
offsetof(struct b, _asn_ctx),
|
|
offsetof(struct b, present),
|
|
sizeof(((struct b *)0)->present),
|
|
.tag2el = asn_MAP_b_tag2el_3,
|
|
.tag2el_count = 5, /* Count of tags in the map */
|
|
.canonical_order = 0,
|
|
.ext_start = -1 /* Extensions start */
|
|
};
|
|
static /* Use -fall-defs-global to expose */
|
|
asn_TYPE_descriptor_t asn_DEF_b_3 = {
|
|
"b",
|
|
"b",
|
|
&asn_OP_CHOICE,
|
|
CHOICE_constraint,
|
|
0, /* No effective tags (pointer) */
|
|
0, /* No effective tags (count) */
|
|
0, /* No tags (pointer) */
|
|
0, /* No tags (count) */
|
|
0, /* No OER visible constraints */
|
|
0, /* No PER visible constraints */
|
|
asn_MBR_b_3,
|
|
4, /* Elements count */
|
|
&asn_SPC_b_specs_3 /* Additional specs */
|
|
};
|
|
|
|
static asn_TYPE_member_t asn_MBR_T_1[] = {
|
|
{ ATF_NOFLAGS, 0, offsetof(struct T, a),
|
|
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
|
|
.tag_mode = -1, /* IMPLICIT tag at current level */
|
|
.type = &asn_DEF_NULL,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "a"
|
|
},
|
|
{ ATF_NOFLAGS, 0, offsetof(struct T, b),
|
|
.tag = -1 /* Ambiguous tag (CHOICE?) */,
|
|
.tag_mode = 0,
|
|
.type = &asn_DEF_b_3,
|
|
.type_selector = 0,
|
|
.memb_constraints = 0, /* Defer constraints checking to the member type */
|
|
.oer_constraints = 0, /* OER is not compiled, use -gen-OER */
|
|
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
|
|
.default_value = 0,
|
|
.name = "b"
|
|
},
|
|
};
|
|
static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
|
|
(ASN_TAG_CLASS_PRIVATE | (1 << 2)),
|
|
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
|
|
};
|
|
static const asn_TYPE_tag2member_t asn_MAP_T_tag2el_1[] = {
|
|
{ (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 0, 0, 0 }, /* a */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 1, 0, 0 }, /* c */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 1, 0, 0 }, /* f */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 }, /* g */
|
|
{ (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 1, 0, 0 } /* h */
|
|
};
|
|
static asn_SEQUENCE_specifics_t asn_SPC_T_specs_1 = {
|
|
sizeof(struct T),
|
|
offsetof(struct T, _asn_ctx),
|
|
.tag2el = asn_MAP_T_tag2el_1,
|
|
.tag2el_count = 6, /* Count of tags in the map */
|
|
0, 0, 0, /* Optional elements (not needed) */
|
|
-1, /* Start extensions */
|
|
-1 /* Stop extensions */
|
|
};
|
|
asn_TYPE_descriptor_t asn_DEF_T = {
|
|
"T",
|
|
"T",
|
|
&asn_OP_SEQUENCE,
|
|
SEQUENCE_constraint,
|
|
asn_DEF_T_tags_1,
|
|
sizeof(asn_DEF_T_tags_1)
|
|
/sizeof(asn_DEF_T_tags_1[0]) - 1, /* 1 */
|
|
asn_DEF_T_tags_1, /* Same as above */
|
|
sizeof(asn_DEF_T_tags_1)
|
|
/sizeof(asn_DEF_T_tags_1[0]), /* 2 */
|
|
0, /* No OER visible constraints */
|
|
0, /* No PER visible constraints */
|
|
asn_MBR_T_1,
|
|
2, /* Elements count */
|
|
&asn_SPC_T_specs_1 /* Additional specs */
|
|
};
|
|
|