Merge "HelloWorld E2SM Dockerfile update"
[ric-app/hw.git] / asn1c_defs / X2N_PrivateIE-Field.c
1 /*
2  * Generated by asn1c-0.9.29 n1 (http://lionet.info/asn1c)
3  * From ASN.1 module "X2AP-Containers"
4  *      found in "../../asn_defs/asn1/x2ap-15-04.asn"
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-OER`
6  */
7
8 #include "X2N_PrivateIE-Field.h"
9
10 static int
11 memb_X2N_id_constraint_1(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 static int
30 memb_X2N_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
31                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
32         
33         if(!sptr) {
34                 ASN__CTFAIL(app_key, td, sptr,
35                         "%s: value not given (%s:%d)",
36                         td->name, __FILE__, __LINE__);
37                 return -1;
38         }
39         
40         
41         if(1 /* No applicable constraints whatsoever */) {
42                 /* Nothing is here. See below */
43         }
44         
45         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
46 }
47
48 static int
49 memb_X2N_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
50                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
51         
52         if(!sptr) {
53                 ASN__CTFAIL(app_key, td, sptr,
54                         "%s: value not given (%s:%d)",
55                         td->name, __FILE__, __LINE__);
56                 return -1;
57         }
58         
59         
60         if(1 /* No applicable constraints whatsoever */) {
61                 /* Nothing is here. See below */
62         }
63         
64         return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
65 }
66
67 static asn_per_constraints_t asn_PER_memb_X2N_id_constr_2 CC_NOTUSED = {
68         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
69         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
70         0, 0    /* No PER value map */
71 };
72 static asn_per_constraints_t asn_PER_memb_X2N_criticality_constr_3 CC_NOTUSED = {
73         { APC_CONSTRAINED,       2,  2,  0,  2 }        /* (0..2) */,
74         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
75         0, 0    /* No PER value map */
76 };
77 static asn_per_constraints_t asn_PER_memb_X2N_value_constr_4 CC_NOTUSED = {
78         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
79         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
80         0, 0    /* No PER value map */
81 };
82 static asn_CHOICE_specifics_t asn_SPC_X2N_value_specs_4 = {
83         sizeof(struct X2N_PrivateMessage_IEs__value),
84         offsetof(struct X2N_PrivateMessage_IEs__value, _asn_ctx),
85         offsetof(struct X2N_PrivateMessage_IEs__value, present),
86         sizeof(((struct X2N_PrivateMessage_IEs__value *)0)->present),
87         0,      /* No top level tags */
88         0,      /* No tags in the map */
89         0, 0,
90         -1      /* Extensions start */
91 };
92 static /* Use -fall-defs-global to expose */
93 asn_TYPE_descriptor_t asn_DEF_X2N_value_4 = {
94         "value",
95         "value",
96         &asn_OP_OPEN_TYPE,
97         0,      /* No effective tags (pointer) */
98         0,      /* No effective tags (count) */
99         0,      /* No tags (pointer) */
100         0,      /* No tags (count) */
101         { 0, 0, OPEN_TYPE_constraint },
102         0, 0,   /* No members */
103         &asn_SPC_X2N_value_specs_4      /* Additional specs */
104 };
105
106 asn_TYPE_member_t asn_MBR_X2N_PrivateMessage_IEs_1[] = {
107         { ATF_NOFLAGS, 0, offsetof(struct X2N_PrivateMessage_IEs, id),
108                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
109                 +1,     /* EXPLICIT tag at current level */
110                 &asn_DEF_X2N_PrivateIE_ID,
111                 0,
112                 { 0, &asn_PER_memb_X2N_id_constr_2,  memb_X2N_id_constraint_1 },
113                 0, 0, /* No default value */
114                 "id"
115                 },
116         { ATF_NOFLAGS, 0, offsetof(struct X2N_PrivateMessage_IEs, criticality),
117                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
118                 -1,     /* IMPLICIT tag at current level */
119                 &asn_DEF_X2N_Criticality,
120                 0,
121                 { 0, &asn_PER_memb_X2N_criticality_constr_3,  memb_X2N_criticality_constraint_1 },
122                 0, 0, /* No default value */
123                 "criticality"
124                 },
125         { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct X2N_PrivateMessage_IEs, value),
126                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
127                 +1,     /* EXPLICIT tag at current level */
128                 &asn_DEF_X2N_value_4,
129                 0,
130                 { 0, &asn_PER_memb_X2N_value_constr_4,  memb_X2N_value_constraint_1 },
131                 0, 0, /* No default value */
132                 "value"
133                 },
134 };
135 static const ber_tlv_tag_t asn_DEF_X2N_PrivateMessage_IEs_tags_1[] = {
136         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
137 };
138 static const asn_TYPE_tag2member_t asn_MAP_X2N_PrivateMessage_IEs_tag2el_1[] = {
139     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
140     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */
141     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */
142 };
143 asn_SEQUENCE_specifics_t asn_SPC_X2N_PrivateMessage_IEs_specs_1 = {
144         sizeof(struct X2N_PrivateMessage_IEs),
145         offsetof(struct X2N_PrivateMessage_IEs, _asn_ctx),
146         asn_MAP_X2N_PrivateMessage_IEs_tag2el_1,
147         3,      /* Count of tags in the map */
148         0, 0, 0,        /* Optional elements (not needed) */
149         -1,     /* First extension addition */
150 };
151 asn_TYPE_descriptor_t asn_DEF_X2N_PrivateMessage_IEs = {
152         "PrivateMessage-IEs",
153         "PrivateMessage-IEs",
154         &asn_OP_SEQUENCE,
155         asn_DEF_X2N_PrivateMessage_IEs_tags_1,
156         sizeof(asn_DEF_X2N_PrivateMessage_IEs_tags_1)
157                 /sizeof(asn_DEF_X2N_PrivateMessage_IEs_tags_1[0]), /* 1 */
158         asn_DEF_X2N_PrivateMessage_IEs_tags_1,  /* Same as above */
159         sizeof(asn_DEF_X2N_PrivateMessage_IEs_tags_1)
160                 /sizeof(asn_DEF_X2N_PrivateMessage_IEs_tags_1[0]), /* 1 */
161         { 0, 0, SEQUENCE_constraint },
162         asn_MBR_X2N_PrivateMessage_IEs_1,
163         3,      /* Elements count */
164         &asn_SPC_X2N_PrivateMessage_IEs_specs_1 /* Additional specs */
165 };
166