684cc0eafca0c6f7aaeca37b9ef15177e58590b2
[ric-app/rc.git] / e2sm / lib / RANParameter-ID.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "E2SM-RC-IEs"
4  *      found in "e2sm-rc-nov2021.asn"
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example -D .`
6  */
7
8 #include "RANParameter-ID.h"
9
10 int
11 RANParameter_ID_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13         
14         if(!sptr) {
15                 ASN__CTFAIL(app_key, td, sptr,
16                         "%s: value not given (%s:%d)",
17                         td->name, __FILE__, __LINE__);
18                 return -1;
19         }
20         
21         
22         if(1 /* No applicable constraints whatsoever */) {
23                 /* Nothing is here. See below */
24         }
25         
26         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
27 }
28
29 /*
30  * This type is implemented using NativeInteger,
31  * so here we adjust the DEF accordingly.
32  */
33 static asn_oer_constraints_t asn_OER_type_RANParameter_ID_constr_1 CC_NOTUSED = {
34         { 0, 0 },
35         -1};
36 asn_per_constraints_t asn_PER_type_RANParameter_ID_constr_1 CC_NOTUSED = {
37         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
38         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
39         0, 0    /* No PER value map */
40 };
41 static const ber_tlv_tag_t asn_DEF_RANParameter_ID_tags_1[] = {
42         (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
43 };
44 asn_TYPE_descriptor_t asn_DEF_RANParameter_ID = {
45         "RANParameter-ID",
46         "RANParameter-ID",
47         &asn_OP_NativeInteger,
48         asn_DEF_RANParameter_ID_tags_1,
49         sizeof(asn_DEF_RANParameter_ID_tags_1)
50                 /sizeof(asn_DEF_RANParameter_ID_tags_1[0]), /* 1 */
51         asn_DEF_RANParameter_ID_tags_1, /* Same as above */
52         sizeof(asn_DEF_RANParameter_ID_tags_1)
53                 /sizeof(asn_DEF_RANParameter_ID_tags_1[0]), /* 1 */
54         { &asn_OER_type_RANParameter_ID_constr_1, &asn_PER_type_RANParameter_ID_constr_1, RANParameter_ID_constraint },
55         0, 0,   /* No members */
56         0       /* No specifics */
57 };
58