11Longitude_constraint(
const asn_TYPE_descriptor_t *td,
const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb,
void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 value = *(
const long *)sptr;
24 if((value >= -1799999999L && value <= 1800000001L)) {
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
39#if !defined(ASN_DISABLE_OER_SUPPORT)
40static asn_oer_constraints_t asn_OER_type_Longitude_constr_1 CC_NOTUSED = {
44#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
45asn_per_constraints_t asn_PER_type_Longitude_constr_1 CC_NOTUSED = {
46 { APC_CONSTRAINED, 32, -1, -1799999999, 1800000001 } ,
47 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
51static const ber_tlv_tag_t asn_DEF_Longitude_tags_1[] = {
52 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
54asn_TYPE_descriptor_t asn_DEF_Longitude = {
57 &asn_OP_NativeInteger,
58 asn_DEF_Longitude_tags_1,
59 sizeof(asn_DEF_Longitude_tags_1)
60 /
sizeof(asn_DEF_Longitude_tags_1[0]),
61 asn_DEF_Longitude_tags_1,
62 sizeof(asn_DEF_Longitude_tags_1)
63 /
sizeof(asn_DEF_Longitude_tags_1[0]),
65#if !defined(ASN_DISABLE_OER_SUPPORT)
66 &asn_OER_type_Longitude_constr_1,
68#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
69 &asn_PER_type_Longitude_constr_1,