remark release date
[Net-Radio-Location-SUPL-Test.git] / asn1 / DestinationNumberLengthList.c
blob8741fd32923520aefda449fa9c423ec14534d087
1 /*
2 * Generated by asn1c-0.9.23 (http://lionet.info/asn1c)
3 * From ASN.1 module "MAP-MS-DataTypes"
4 * found in "../asn1src/MAP-MS-DataTypes.asn"
5 * `asn1c -gen-PER -fskeletons-copy -fnative-types`
6 */
8 #include "DestinationNumberLengthList.h"
10 static int
11 memb_NativeInteger_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 long value;
15 if(!sptr) {
16 _ASN_CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
19 return -1;
22 value = *(const long *)sptr;
24 if((value >= 1 && value <= 15)) {
25 /* Constraint check succeeded */
26 return 0;
27 } else {
28 _ASN_CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
31 return -1;
35 static asn_per_constraints_t asn_PER_memb_Member_constr_2 = {
36 { APC_CONSTRAINED, 4, 4, 1, 15 } /* (1..15) */,
37 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
38 0, 0 /* No PER value map */
40 static asn_per_constraints_t asn_PER_type_DestinationNumberLengthList_constr_1 = {
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
42 { APC_CONSTRAINED, 2, 2, 1, 3 } /* (SIZE(1..3)) */,
43 0, 0 /* No PER value map */
45 static asn_TYPE_member_t asn_MBR_DestinationNumberLengthList_1[] = {
46 { ATF_POINTER, 0, 0,
47 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
49 &asn_DEF_NativeInteger,
50 memb_NativeInteger_constraint_1,
51 &asn_PER_memb_Member_constr_2,
56 static ber_tlv_tag_t asn_DEF_DestinationNumberLengthList_tags_1[] = {
57 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
59 static asn_SET_OF_specifics_t asn_SPC_DestinationNumberLengthList_specs_1 = {
60 sizeof(struct DestinationNumberLengthList),
61 offsetof(struct DestinationNumberLengthList, _asn_ctx),
62 0, /* XER encoding is XMLDelimitedItemList */
64 asn_TYPE_descriptor_t asn_DEF_DestinationNumberLengthList = {
65 "DestinationNumberLengthList",
66 "DestinationNumberLengthList",
67 SEQUENCE_OF_free,
68 SEQUENCE_OF_print,
69 SEQUENCE_OF_constraint,
70 SEQUENCE_OF_decode_ber,
71 SEQUENCE_OF_encode_der,
72 SEQUENCE_OF_decode_xer,
73 SEQUENCE_OF_encode_xer,
74 SEQUENCE_OF_decode_uper,
75 SEQUENCE_OF_encode_uper,
76 0, /* Use generic outmost tag fetcher */
77 asn_DEF_DestinationNumberLengthList_tags_1,
78 sizeof(asn_DEF_DestinationNumberLengthList_tags_1)
79 /sizeof(asn_DEF_DestinationNumberLengthList_tags_1[0]), /* 1 */
80 asn_DEF_DestinationNumberLengthList_tags_1, /* Same as above */
81 sizeof(asn_DEF_DestinationNumberLengthList_tags_1)
82 /sizeof(asn_DEF_DestinationNumberLengthList_tags_1[0]), /* 1 */
83 &asn_PER_type_DestinationNumberLengthList_constr_1,
84 asn_MBR_DestinationNumberLengthList_1,
85 1, /* Single element */
86 &asn_SPC_DestinationNumberLengthList_specs_1 /* Additional specs */