SIM-115: update simulator to use latest E2SM KPM version 3
[sim/e2-interface.git] / e2sim / asn1c / E2SM-KPM-RANfunction-Description.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "E2SM-KPM-IEs"
4  *      found in "e2sm-kpm-v03.00.asn"
5  *      `asn1c -pdu=auto -fincludes-quoted -fcompound-names -findirect-choice -fno-include-deps -no-gen-example -no-gen-OER -D /tmp/workspace/oransim-gerrit/e2sim/asn1c/`
6  */
7
8 #include "E2SM-KPM-RANfunction-Description.h"
9
10 #include "RIC-EventTriggerStyle-Item.h"
11 #include "RIC-ReportStyle-Item.h"
12 static int
13 memb_ric_EventTriggerStyle_List_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
14                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15         size_t size;
16         
17         if(!sptr) {
18                 ASN__CTFAIL(app_key, td, sptr,
19                         "%s: value not given (%s:%d)",
20                         td->name, __FILE__, __LINE__);
21                 return -1;
22         }
23         
24         /* Determine the number of elements */
25         size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
26         
27         if((size >= 1UL && size <= 63UL)) {
28                 /* Perform validation of the inner elements */
29                 return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
30         } else {
31                 ASN__CTFAIL(app_key, td, sptr,
32                         "%s: constraint failed (%s:%d)",
33                         td->name, __FILE__, __LINE__);
34                 return -1;
35         }
36 }
37
38 static int
39 memb_ric_ReportStyle_List_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
40                         asn_app_constraint_failed_f *ctfailcb, void *app_key) {
41         size_t size;
42         
43         if(!sptr) {
44                 ASN__CTFAIL(app_key, td, sptr,
45                         "%s: value not given (%s:%d)",
46                         td->name, __FILE__, __LINE__);
47                 return -1;
48         }
49         
50         /* Determine the number of elements */
51         size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
52         
53         if((size >= 1UL && size <= 63UL)) {
54                 /* Perform validation of the inner elements */
55                 return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
56         } else {
57                 ASN__CTFAIL(app_key, td, sptr,
58                         "%s: constraint failed (%s:%d)",
59                         td->name, __FILE__, __LINE__);
60                 return -1;
61         }
62 }
63
64 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
65 static asn_per_constraints_t asn_PER_type_ric_EventTriggerStyle_List_constr_3 CC_NOTUSED = {
66         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
67         { APC_CONSTRAINED,       6,  6,  1,  63 }       /* (SIZE(1..63)) */,
68         0, 0    /* No PER value map */
69 };
70 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
71 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
72 static asn_per_constraints_t asn_PER_type_ric_ReportStyle_List_constr_5 CC_NOTUSED = {
73         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
74         { APC_CONSTRAINED,       6,  6,  1,  63 }       /* (SIZE(1..63)) */,
75         0, 0    /* No PER value map */
76 };
77 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
78 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
79 static asn_per_constraints_t asn_PER_memb_ric_EventTriggerStyle_List_constr_3 CC_NOTUSED = {
80         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
81         { APC_CONSTRAINED,       6,  6,  1,  63 }       /* (SIZE(1..63)) */,
82         0, 0    /* No PER value map */
83 };
84 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
85 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
86 static asn_per_constraints_t asn_PER_memb_ric_ReportStyle_List_constr_5 CC_NOTUSED = {
87         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
88         { APC_CONSTRAINED,       6,  6,  1,  63 }       /* (SIZE(1..63)) */,
89         0, 0    /* No PER value map */
90 };
91 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
92 static asn_TYPE_member_t asn_MBR_ric_EventTriggerStyle_List_3[] = {
93         { ATF_POINTER, 0, 0,
94                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
95                 0,
96                 &asn_DEF_RIC_EventTriggerStyle_Item,
97                 0,
98                 {
99 #if !defined(ASN_DISABLE_OER_SUPPORT)
100                         0,
101 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
102 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
103                         0,
104 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
105                         0
106                 },
107                 0, 0, /* No default value */
108                 ""
109                 },
110 };
111 static const ber_tlv_tag_t asn_DEF_ric_EventTriggerStyle_List_tags_3[] = {
112         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
113         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
114 };
115 static asn_SET_OF_specifics_t asn_SPC_ric_EventTriggerStyle_List_specs_3 = {
116         sizeof(struct E2SM_KPM_RANfunction_Description__ric_EventTriggerStyle_List),
117         offsetof(struct E2SM_KPM_RANfunction_Description__ric_EventTriggerStyle_List, _asn_ctx),
118         0,      /* XER encoding is XMLDelimitedItemList */
119 };
120 static /* Use -fall-defs-global to expose */
121 asn_TYPE_descriptor_t asn_DEF_ric_EventTriggerStyle_List_3 = {
122         "ric-EventTriggerStyle-List",
123         "ric-EventTriggerStyle-List",
124         &asn_OP_SEQUENCE_OF,
125         asn_DEF_ric_EventTriggerStyle_List_tags_3,
126         sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_3)
127                 /sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_3[0]) - 1, /* 1 */
128         asn_DEF_ric_EventTriggerStyle_List_tags_3,      /* Same as above */
129         sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_3)
130                 /sizeof(asn_DEF_ric_EventTriggerStyle_List_tags_3[0]), /* 2 */
131         {
132 #if !defined(ASN_DISABLE_OER_SUPPORT)
133                 0,
134 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
135 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
136                 &asn_PER_type_ric_EventTriggerStyle_List_constr_3,
137 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
138                 SEQUENCE_OF_constraint
139         },
140         asn_MBR_ric_EventTriggerStyle_List_3,
141         1,      /* Single element */
142         &asn_SPC_ric_EventTriggerStyle_List_specs_3     /* Additional specs */
143 };
144
145 static asn_TYPE_member_t asn_MBR_ric_ReportStyle_List_5[] = {
146         { ATF_POINTER, 0, 0,
147                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
148                 0,
149                 &asn_DEF_RIC_ReportStyle_Item,
150                 0,
151                 {
152 #if !defined(ASN_DISABLE_OER_SUPPORT)
153                         0,
154 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
155 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
156                         0,
157 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
158                         0
159                 },
160                 0, 0, /* No default value */
161                 ""
162                 },
163 };
164 static const ber_tlv_tag_t asn_DEF_ric_ReportStyle_List_tags_5[] = {
165         (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
166         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
167 };
168 static asn_SET_OF_specifics_t asn_SPC_ric_ReportStyle_List_specs_5 = {
169         sizeof(struct E2SM_KPM_RANfunction_Description__ric_ReportStyle_List),
170         offsetof(struct E2SM_KPM_RANfunction_Description__ric_ReportStyle_List, _asn_ctx),
171         0,      /* XER encoding is XMLDelimitedItemList */
172 };
173 static /* Use -fall-defs-global to expose */
174 asn_TYPE_descriptor_t asn_DEF_ric_ReportStyle_List_5 = {
175         "ric-ReportStyle-List",
176         "ric-ReportStyle-List",
177         &asn_OP_SEQUENCE_OF,
178         asn_DEF_ric_ReportStyle_List_tags_5,
179         sizeof(asn_DEF_ric_ReportStyle_List_tags_5)
180                 /sizeof(asn_DEF_ric_ReportStyle_List_tags_5[0]) - 1, /* 1 */
181         asn_DEF_ric_ReportStyle_List_tags_5,    /* Same as above */
182         sizeof(asn_DEF_ric_ReportStyle_List_tags_5)
183                 /sizeof(asn_DEF_ric_ReportStyle_List_tags_5[0]), /* 2 */
184         {
185 #if !defined(ASN_DISABLE_OER_SUPPORT)
186                 0,
187 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
188 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
189                 &asn_PER_type_ric_ReportStyle_List_constr_5,
190 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
191                 SEQUENCE_OF_constraint
192         },
193         asn_MBR_ric_ReportStyle_List_5,
194         1,      /* Single element */
195         &asn_SPC_ric_ReportStyle_List_specs_5   /* Additional specs */
196 };
197
198 static asn_TYPE_member_t asn_MBR_E2SM_KPM_RANfunction_Description_1[] = {
199         { ATF_NOFLAGS, 0, offsetof(struct E2SM_KPM_RANfunction_Description, ranFunction_Name),
200                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
201                 -1,     /* IMPLICIT tag at current level */
202                 &asn_DEF_RANfunction_Name,
203                 0,
204                 {
205 #if !defined(ASN_DISABLE_OER_SUPPORT)
206                         0,
207 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
208 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
209                         0,
210 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
211                         0
212                 },
213                 0, 0, /* No default value */
214                 "ranFunction-Name"
215                 },
216         { ATF_POINTER, 2, offsetof(struct E2SM_KPM_RANfunction_Description, ric_EventTriggerStyle_List),
217                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
218                 0,
219                 &asn_DEF_ric_EventTriggerStyle_List_3,
220                 0,
221                 {
222 #if !defined(ASN_DISABLE_OER_SUPPORT)
223                         0,
224 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
225 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
226                         &asn_PER_memb_ric_EventTriggerStyle_List_constr_3,
227 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
228                         memb_ric_EventTriggerStyle_List_constraint_1
229                 },
230                 0, 0, /* No default value */
231                 "ric-EventTriggerStyle-List"
232                 },
233         { ATF_POINTER, 1, offsetof(struct E2SM_KPM_RANfunction_Description, ric_ReportStyle_List),
234                 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
235                 0,
236                 &asn_DEF_ric_ReportStyle_List_5,
237                 0,
238                 {
239 #if !defined(ASN_DISABLE_OER_SUPPORT)
240                         0,
241 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
242 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
243                         &asn_PER_memb_ric_ReportStyle_List_constr_5,
244 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
245                         memb_ric_ReportStyle_List_constraint_1
246                 },
247                 0, 0, /* No default value */
248                 "ric-ReportStyle-List"
249                 },
250 };
251 static const int asn_MAP_E2SM_KPM_RANfunction_Description_oms_1[] = { 1, 2 };
252 static const ber_tlv_tag_t asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[] = {
253         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
254 };
255 static const asn_TYPE_tag2member_t asn_MAP_E2SM_KPM_RANfunction_Description_tag2el_1[] = {
256     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ranFunction-Name */
257     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ric-EventTriggerStyle-List */
258     { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ric-ReportStyle-List */
259 };
260 static asn_SEQUENCE_specifics_t asn_SPC_E2SM_KPM_RANfunction_Description_specs_1 = {
261         sizeof(struct E2SM_KPM_RANfunction_Description),
262         offsetof(struct E2SM_KPM_RANfunction_Description, _asn_ctx),
263         asn_MAP_E2SM_KPM_RANfunction_Description_tag2el_1,
264         3,      /* Count of tags in the map */
265         asn_MAP_E2SM_KPM_RANfunction_Description_oms_1, /* Optional members */
266         2, 0,   /* Root/Additions */
267         3,      /* First extension addition */
268 };
269 asn_TYPE_descriptor_t asn_DEF_E2SM_KPM_RANfunction_Description = {
270         "E2SM-KPM-RANfunction-Description",
271         "E2SM-KPM-RANfunction-Description",
272         &asn_OP_SEQUENCE,
273         asn_DEF_E2SM_KPM_RANfunction_Description_tags_1,
274         sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1)
275                 /sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[0]), /* 1 */
276         asn_DEF_E2SM_KPM_RANfunction_Description_tags_1,        /* Same as above */
277         sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1)
278                 /sizeof(asn_DEF_E2SM_KPM_RANfunction_Description_tags_1[0]), /* 1 */
279         {
280 #if !defined(ASN_DISABLE_OER_SUPPORT)
281                 0,
282 #endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
283 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
284                 0,
285 #endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
286                 SEQUENCE_constraint
287         },
288         asn_MBR_E2SM_KPM_RANfunction_Description_1,
289         3,      /* Elements count */
290         &asn_SPC_E2SM_KPM_RANfunction_Description_specs_1       /* Additional specs */
291 };
292