Adding new comments for Oran in all files with licenses
[ric-plt/resource-status-manager.git] / RSM / 3rdparty / asn1codec / e2ap_engine / E-RABs-SubjectToCounterCheckItem.c
1 /*
2  * Copyright 2019 AT&T Intellectual Property
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  * This source code is part of the near-RT RIC (RAN Intelligent Controller)
19  * platform project (RICP).
20  */
21
22
23
24 /*
25  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
26  * From ASN.1 module "X2AP-PDU-Contents"
27  *      found in "../../asnFiles/X2AP-PDU-Contents.asn"
28  *      `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
29  */
30
31 #include "E-RABs-SubjectToCounterCheckItem.h"
32
33 #include "ProtocolExtensionContainer.h"
34 static int
35 uL_Count_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
36                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
37         
38         if(!sptr) {
39                 ASN__CTFAIL(app_key, td, sptr,
40                         "%s: value not given (%s:%d)",
41                         td->name, __FILE__, __LINE__);
42                 return -1;
43         }
44         
45         
46         /* Constraint check succeeded */
47         return 0;
48 }
49
50 /*
51  * This type is implemented using NativeInteger,
52  * so here we adjust the DEF accordingly.
53  */
54 static int
55 dL_Count_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
56                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
57         
58         if(!sptr) {
59                 ASN__CTFAIL(app_key, td, sptr,
60                         "%s: value not given (%s:%d)",
61                         td->name, __FILE__, __LINE__);
62                 return -1;
63         }
64         
65         
66         /* Constraint check succeeded */
67         return 0;
68 }
69
70 /*
71  * This type is implemented using NativeInteger,
72  * so here we adjust the DEF accordingly.
73  */
74 static int
75 memb_uL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
76                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
77         
78         if(!sptr) {
79                 ASN__CTFAIL(app_key, td, sptr,
80                         "%s: value not given (%s:%d)",
81                         td->name, __FILE__, __LINE__);
82                 return -1;
83         }
84         
85         
86         /* Constraint check succeeded */
87         return 0;
88 }
89
90 static int
91 memb_dL_Count_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
92                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
93         
94         if(!sptr) {
95                 ASN__CTFAIL(app_key, td, sptr,
96                         "%s: value not given (%s:%d)",
97                         td->name, __FILE__, __LINE__);
98                 return -1;
99         }
100         
101         
102         /* Constraint check succeeded */
103         return 0;
104 }
105
106 static asn_per_constraints_t asn_PER_type_uL_Count_constr_3 CC_NOTUSED = {
107         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
108         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
109         0, 0    /* No PER value map */
110 };
111 static asn_per_constraints_t asn_PER_type_dL_Count_constr_4 CC_NOTUSED = {
112         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
113         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
114         0, 0    /* No PER value map */
115 };
116 static asn_per_constraints_t asn_PER_memb_uL_Count_constr_3 CC_NOTUSED = {
117         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
118         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
119         0, 0    /* No PER value map */
120 };
121 static asn_per_constraints_t asn_PER_memb_dL_Count_constr_4 CC_NOTUSED = {
122         { APC_CONSTRAINED,       32, -1,  0,  4294967295 }      /* (0..4294967295) */,
123         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
124         0, 0    /* No PER value map */
125 };
126 static const asn_INTEGER_specifics_t asn_SPC_uL_Count_specs_3 = {
127         0,      0,      0,      0,      0,
128         0,      /* Native long size */
129         1       /* Unsigned representation */
130 };
131 static const ber_tlv_tag_t asn_DEF_uL_Count_tags_3[] = {
132         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
133         (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
134 };
135 static /* Use -fall-defs-global to expose */
136 asn_TYPE_descriptor_t asn_DEF_uL_Count_3 = {
137         "uL-Count",
138         "uL-Count",
139         &asn_OP_NativeInteger,
140         asn_DEF_uL_Count_tags_3,
141         sizeof(asn_DEF_uL_Count_tags_3)
142                 /sizeof(asn_DEF_uL_Count_tags_3[0]) - 1, /* 1 */
143         asn_DEF_uL_Count_tags_3,        /* Same as above */
144         sizeof(asn_DEF_uL_Count_tags_3)
145                 /sizeof(asn_DEF_uL_Count_tags_3[0]), /* 2 */
146         { 0, &asn_PER_type_uL_Count_constr_3, uL_Count_3_constraint },
147         0, 0,   /* No members */
148         &asn_SPC_uL_Count_specs_3       /* Additional specs */
149 };
150
151 static const asn_INTEGER_specifics_t asn_SPC_dL_Count_specs_4 = {
152         0,      0,      0,      0,      0,
153         0,      /* Native long size */
154         1       /* Unsigned representation */
155 };
156 static const ber_tlv_tag_t asn_DEF_dL_Count_tags_4[] = {
157         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
158         (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
159 };
160 static /* Use -fall-defs-global to expose */
161 asn_TYPE_descriptor_t asn_DEF_dL_Count_4 = {
162         "dL-Count",
163         "dL-Count",
164         &asn_OP_NativeInteger,
165         asn_DEF_dL_Count_tags_4,
166         sizeof(asn_DEF_dL_Count_tags_4)
167                 /sizeof(asn_DEF_dL_Count_tags_4[0]) - 1, /* 1 */
168         asn_DEF_dL_Count_tags_4,        /* Same as above */
169         sizeof(asn_DEF_dL_Count_tags_4)
170                 /sizeof(asn_DEF_dL_Count_tags_4[0]), /* 2 */
171         { 0, &asn_PER_type_dL_Count_constr_4, dL_Count_4_constraint },
172         0, 0,   /* No members */
173         &asn_SPC_dL_Count_specs_4       /* Additional specs */
174 };
175
176 static asn_TYPE_member_t asn_MBR_E_RABs_SubjectToCounterCheckItem_1[] = {
177         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, e_RAB_ID),
178                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
179                 -1,     /* IMPLICIT tag at current level */
180                 &asn_DEF_E_RAB_ID,
181                 0,
182                 { 0, 0, 0 },
183                 0, 0, /* No default value */
184                 "e-RAB-ID"
185                 },
186         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, uL_Count),
187                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
188                 -1,     /* IMPLICIT tag at current level */
189                 &asn_DEF_uL_Count_3,
190                 0,
191                 { 0, &asn_PER_memb_uL_Count_constr_3,  memb_uL_Count_constraint_1 },
192                 0, 0, /* No default value */
193                 "uL-Count"
194                 },
195         { ATF_NOFLAGS, 0, offsetof(struct E_RABs_SubjectToCounterCheckItem, dL_Count),
196                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
197                 -1,     /* IMPLICIT tag at current level */
198                 &asn_DEF_dL_Count_4,
199                 0,
200                 { 0, &asn_PER_memb_dL_Count_constr_4,  memb_dL_Count_constraint_1 },
201                 0, 0, /* No default value */
202                 "dL-Count"
203                 },
204         { ATF_POINTER, 1, offsetof(struct E_RABs_SubjectToCounterCheckItem, iE_Extensions),
205                 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
206                 -1,     /* IMPLICIT tag at current level */
207                 &asn_DEF_ProtocolExtensionContainer_170P41,
208                 0,
209                 { 0, 0, 0 },
210                 0, 0, /* No default value */
211                 "iE-Extensions"
212                 },
213 };
214 static const int asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1[] = { 3 };
215 static const ber_tlv_tag_t asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[] = {
216         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
217 };
218 static const asn_TYPE_tag2member_t asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1[] = {
219     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* e-RAB-ID */
220     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uL-Count */
221     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* dL-Count */
222     { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */
223 };
224 static asn_SEQUENCE_specifics_t asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1 = {
225         sizeof(struct E_RABs_SubjectToCounterCheckItem),
226         offsetof(struct E_RABs_SubjectToCounterCheckItem, _asn_ctx),
227         asn_MAP_E_RABs_SubjectToCounterCheckItem_tag2el_1,
228         4,      /* Count of tags in the map */
229         asn_MAP_E_RABs_SubjectToCounterCheckItem_oms_1, /* Optional members */
230         1, 0,   /* Root/Additions */
231         4,      /* First extension addition */
232 };
233 asn_TYPE_descriptor_t asn_DEF_E_RABs_SubjectToCounterCheckItem = {
234         "E-RABs-SubjectToCounterCheckItem",
235         "E-RABs-SubjectToCounterCheckItem",
236         &asn_OP_SEQUENCE,
237         asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1,
238         sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)
239                 /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */
240         asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1,        /* Same as above */
241         sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1)
242                 /sizeof(asn_DEF_E_RABs_SubjectToCounterCheckItem_tags_1[0]), /* 1 */
243         { 0, 0, SEQUENCE_constraint },
244         asn_MBR_E_RABs_SubjectToCounterCheckItem_1,
245         4,      /* Elements count */
246         &asn_SPC_E_RABs_SubjectToCounterCheckItem_specs_1       /* Additional specs */
247 };
248