/*** <<< INCLUDES [Message] >>> ***/ #include "SpecializedContent.h" #include /*** <<< TYPE-DECLS [Message] >>> ***/ typedef struct Message { SpecializedContent_21P0_t content13; SpecializedContent_21P1_t content42; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } Message_t; /*** <<< FUNC-DECLS [Message] >>> ***/ extern asn_TYPE_descriptor_t asn_DEF_Message; /*** <<< STAT-DEFS [Message] >>> ***/ static asn_TYPE_member_t asn_MBR_Message_1[] = { { ATF_NOFLAGS, 0, offsetof(struct Message, content13), .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), .tag_mode = 0, .type = &asn_DEF_SpecializedContent_21P0, .type_selector = 0, { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, 0, 0, /* No default value */ .name = "content13" }, { ATF_NOFLAGS, 0, offsetof(struct Message, content42), .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), .tag_mode = 0, .type = &asn_DEF_SpecializedContent_21P1, .type_selector = 0, { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 }, 0, 0, /* No default value */ .name = "content42" }, }; static const ber_tlv_tag_t asn_DEF_Message_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_Message_tag2el_1[] = { { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* content13 */ { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* content42 */ }; static asn_SEQUENCE_specifics_t asn_SPC_Message_specs_1 = { sizeof(struct Message), offsetof(struct Message, _asn_ctx), .tag2el = asn_MAP_Message_tag2el_1, .tag2el_count = 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_Message = { "Message", "Message", &asn_OP_SEQUENCE, asn_DEF_Message_tags_1, sizeof(asn_DEF_Message_tags_1) /sizeof(asn_DEF_Message_tags_1[0]), /* 1 */ asn_DEF_Message_tags_1, /* Same as above */ sizeof(asn_DEF_Message_tags_1) /sizeof(asn_DEF_Message_tags_1[0]), /* 1 */ { 0, 0, SEQUENCE_constraint }, asn_MBR_Message_1, 2, /* Elements count */ &asn_SPC_Message_specs_1 /* Additional specs */ }; /*** <<< INCLUDES [SpecializedContent] >>> ***/ #include #include /*** <<< TYPE-DECLS [SpecializedContent] >>> ***/ typedef struct SpecializedContent_21P0 { long id; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } SpecializedContent_21P0_t; typedef struct SpecializedContent_21P1 { long id; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } SpecializedContent_21P1_t; /*** <<< FUNC-DECLS [SpecializedContent] >>> ***/ extern asn_TYPE_descriptor_t asn_DEF_SpecializedContent_21P0; extern asn_SEQUENCE_specifics_t asn_SPC_SpecializedContent_21P0_specs_1; extern asn_TYPE_member_t asn_MBR_SpecializedContent_21P0_1[1]; extern asn_TYPE_descriptor_t asn_DEF_SpecializedContent_21P1; extern asn_SEQUENCE_specifics_t asn_SPC_SpecializedContent_21P1_specs_3; extern asn_TYPE_member_t asn_MBR_SpecializedContent_21P1_3[1]; /*** <<< CODE [SpecializedContent] >>> ***/ static int memb_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value == 13)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_id_constraint_3(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } value = *(const long *)sptr; if((value == 42)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } /*** <<< STAT-DEFS [SpecializedContent] >>> ***/ asn_TYPE_member_t asn_MBR_SpecializedContent_21P0_1[] = { { ATF_NOFLAGS, 0, offsetof(struct SpecializedContent_21P0, id), .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), .tag_mode = 0, .type = &asn_DEF_NativeInteger, .type_selector = 0, { .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_id_constraint_1 }, 0, 0, /* No default value */ .name = "id" }, }; static const ber_tlv_tag_t asn_DEF_SpecializedContent_21P0_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_SpecializedContent_21P0_tag2el_1[] = { { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* id */ }; asn_SEQUENCE_specifics_t asn_SPC_SpecializedContent_21P0_specs_1 = { sizeof(struct SpecializedContent_21P0), offsetof(struct SpecializedContent_21P0, _asn_ctx), .tag2el = asn_MAP_SpecializedContent_21P0_tag2el_1, .tag2el_count = 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_SpecializedContent_21P0 = { "SpecializedContent", "SpecializedContent", &asn_OP_SEQUENCE, asn_DEF_SpecializedContent_21P0_tags_1, sizeof(asn_DEF_SpecializedContent_21P0_tags_1) /sizeof(asn_DEF_SpecializedContent_21P0_tags_1[0]), /* 1 */ asn_DEF_SpecializedContent_21P0_tags_1, /* Same as above */ sizeof(asn_DEF_SpecializedContent_21P0_tags_1) /sizeof(asn_DEF_SpecializedContent_21P0_tags_1[0]), /* 1 */ { 0, 0, SEQUENCE_constraint }, asn_MBR_SpecializedContent_21P0_1, 1, /* Elements count */ &asn_SPC_SpecializedContent_21P0_specs_1 /* Additional specs */ }; asn_TYPE_member_t asn_MBR_SpecializedContent_21P1_3[] = { { ATF_NOFLAGS, 0, offsetof(struct SpecializedContent_21P1, id), .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), .tag_mode = 0, .type = &asn_DEF_NativeInteger, .type_selector = 0, { .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_id_constraint_3 }, 0, 0, /* No default value */ .name = "id" }, }; static const ber_tlv_tag_t asn_DEF_SpecializedContent_21P1_tags_3[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_SpecializedContent_21P1_tag2el_3[] = { { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 } /* id */ }; asn_SEQUENCE_specifics_t asn_SPC_SpecializedContent_21P1_specs_3 = { sizeof(struct SpecializedContent_21P1), offsetof(struct SpecializedContent_21P1, _asn_ctx), .tag2el = asn_MAP_SpecializedContent_21P1_tag2el_3, .tag2el_count = 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_SpecializedContent_21P1 = { "SpecializedContent", "SpecializedContent", &asn_OP_SEQUENCE, asn_DEF_SpecializedContent_21P1_tags_3, sizeof(asn_DEF_SpecializedContent_21P1_tags_3) /sizeof(asn_DEF_SpecializedContent_21P1_tags_3[0]), /* 1 */ asn_DEF_SpecializedContent_21P1_tags_3, /* Same as above */ sizeof(asn_DEF_SpecializedContent_21P1_tags_3) /sizeof(asn_DEF_SpecializedContent_21P1_tags_3[0]), /* 1 */ { 0, 0, SEQUENCE_constraint }, asn_MBR_SpecializedContent_21P1_3, 1, /* Elements count */ &asn_SPC_SpecializedContent_21P1_specs_3 /* Additional specs */ };