Adding initial code jy.oak@samsung.com
[ric-app/kpimon.git] / asn1c_defs / all-defs / MobilityParametersInformation.c
1 /*\r
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\r
3  * From ASN.1 module "X2AP-IEs"\r
4  *      found in "../../asn_defs/asn1/x2ap-modified-15-05.asn"\r
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`\r
6  */\r
7 \r
8 #include "MobilityParametersInformation.h"\r
9 \r
10 static int\r
11 memb_handoverTriggerChange_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,\r
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {\r
13         long value;\r
14         \r
15         if(!sptr) {\r
16                 ASN__CTFAIL(app_key, td, sptr,\r
17                         "%s: value not given (%s:%d)",\r
18                         td->name, __FILE__, __LINE__);\r
19                 return -1;\r
20         }\r
21         \r
22         value = *(const long *)sptr;\r
23         \r
24         if((value >= -20 && value <= 20)) {\r
25                 /* Constraint check succeeded */\r
26                 return 0;\r
27         } else {\r
28                 ASN__CTFAIL(app_key, td, sptr,\r
29                         "%s: constraint failed (%s:%d)",\r
30                         td->name, __FILE__, __LINE__);\r
31                 return -1;\r
32         }\r
33 }\r
34 \r
35 static asn_per_constraints_t asn_PER_memb_handoverTriggerChange_constr_2 CC_NOTUSED = {\r
36         { APC_CONSTRAINED,       6,  6, -20,  20 }      /* (-20..20) */,\r
37         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },\r
38         0, 0    /* No PER value map */\r
39 };\r
40 static asn_TYPE_member_t asn_MBR_MobilityParametersInformation_1[] = {\r
41         { ATF_NOFLAGS, 0, offsetof(struct MobilityParametersInformation, handoverTriggerChange),\r
42                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),\r
43                 -1,     /* IMPLICIT tag at current level */\r
44                 &asn_DEF_NativeInteger,\r
45                 0,\r
46                 { 0, &asn_PER_memb_handoverTriggerChange_constr_2,  memb_handoverTriggerChange_constraint_1 },\r
47                 0, 0, /* No default value */\r
48                 "handoverTriggerChange"\r
49                 },\r
50 };\r
51 static const ber_tlv_tag_t asn_DEF_MobilityParametersInformation_tags_1[] = {\r
52         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))\r
53 };\r
54 static const asn_TYPE_tag2member_t asn_MAP_MobilityParametersInformation_tag2el_1[] = {\r
55     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* handoverTriggerChange */\r
56 };\r
57 static asn_SEQUENCE_specifics_t asn_SPC_MobilityParametersInformation_specs_1 = {\r
58         sizeof(struct MobilityParametersInformation),\r
59         offsetof(struct MobilityParametersInformation, _asn_ctx),\r
60         asn_MAP_MobilityParametersInformation_tag2el_1,\r
61         1,      /* Count of tags in the map */\r
62         0, 0, 0,        /* Optional elements (not needed) */\r
63         1,      /* First extension addition */\r
64 };\r
65 asn_TYPE_descriptor_t asn_DEF_MobilityParametersInformation = {\r
66         "MobilityParametersInformation",\r
67         "MobilityParametersInformation",\r
68         &asn_OP_SEQUENCE,\r
69         asn_DEF_MobilityParametersInformation_tags_1,\r
70         sizeof(asn_DEF_MobilityParametersInformation_tags_1)\r
71                 /sizeof(asn_DEF_MobilityParametersInformation_tags_1[0]), /* 1 */\r
72         asn_DEF_MobilityParametersInformation_tags_1,   /* Same as above */\r
73         sizeof(asn_DEF_MobilityParametersInformation_tags_1)\r
74                 /sizeof(asn_DEF_MobilityParametersInformation_tags_1[0]), /* 1 */\r
75         { 0, 0, SEQUENCE_constraint },\r
76         asn_MBR_MobilityParametersInformation_1,\r
77         1,      /* Elements count */\r
78         &asn_SPC_MobilityParametersInformation_specs_1  /* Additional specs */\r
79 };\r
80 \r