/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "TCAPMessages" */ #include static int memb_TCAP_nationaler_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 >= -32768L && value <= 32767L)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } asn_TYPE_member_t asn_MBR_TCAP_ErrorCode_1[] = { { ATF_NOFLAGS, 0, offsetof(struct TCAP_ErrorCode, choice.nationaler), (ASN_TAG_CLASS_PRIVATE | (19 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ memb_TCAP_nationaler_constraint_1 }, 0, 0, /* No default value */ "nationaler" }, { ATF_NOFLAGS, 0, offsetof(struct TCAP_ErrorCode, choice.privateer), (ASN_TAG_CLASS_PRIVATE | (20 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, 0, { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ 0 }, 0, 0, /* No default value */ "privateer" }, }; static const asn_TYPE_tag2member_t asn_MAP_TCAP_ErrorCode_tag2el_1[] = { { (ASN_TAG_CLASS_PRIVATE | (19 << 2)), 0, 0, 0 }, /* nationaler */ { (ASN_TAG_CLASS_PRIVATE | (20 << 2)), 1, 0, 0 } /* privateer */ }; asn_CHOICE_specifics_t asn_SPC_TCAP_ErrorCode_specs_1 = { sizeof(struct TCAP_ErrorCode), offsetof(struct TCAP_ErrorCode, _asn_ctx), offsetof(struct TCAP_ErrorCode, present), sizeof(((struct TCAP_ErrorCode *)0)->present), asn_MAP_TCAP_ErrorCode_tag2el_1, 2, /* Count of tags in the map */ 0, 0, -1 /* Extensions start */ }; asn_TYPE_descriptor_t asn_DEF_TCAP_ErrorCode = { "ErrorCode", "ErrorCode", &asn_OP_CHOICE, 0, /* No effective tags (pointer) */ 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ { #if !defined(ASN_DISABLE_OER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ #if !defined(ASN_DISABLE_JER_SUPPORT) 0, #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ CHOICE_constraint }, asn_MBR_TCAP_ErrorCode_1, 2, /* Elements count */ &asn_SPC_TCAP_ErrorCode_specs_1 /* Additional specs */ };