ISSUE ID:- RICAPP-216
[ric-app/bouncer.git] / Bouncer / e2sm_rc / lib / E2SM-RC-IndicationMessage-Format4.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.asn"
5  *      `asn1c -fcompound-names -fno-include-deps -findirect-choice -pdu=auto -gen-PER -gen-OER -no-gen-example`
6  */
7
8 #include "E2SM-RC-IndicationMessage-Format4.h"
9
10 #include "E2SM-RC-IndicationMessage-Format4-ItemUE.h"
11 #include "E2SM-RC-IndicationMessage-Format4-ItemCell.h"
12 static int
13 memb_ueInfo_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 <= 65535)) {
28                 /* Perform validation of the inner elements */
29                 return td->encoding_constraints.general_constraints(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_cellInfo_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 <= 65535)) {
54                 /* Perform validation of the inner elements */
55                 return td->encoding_constraints.general_constraints(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 static asn_oer_constraints_t asn_OER_type_ueInfo_List_constr_2 CC_NOTUSED = {
65         { 0, 0 },
66         -1      /* (SIZE(0..65535)) */};
67 static asn_per_constraints_t asn_PER_type_ueInfo_List_constr_2 CC_NOTUSED = {
68         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
69         { APC_CONSTRAINED,       16,  16,  0,  65535 }  /* (SIZE(0..65535)) */,
70         0, 0    /* No PER value map */
71 };
72 static asn_oer_constraints_t asn_OER_type_cellInfo_List_constr_4 CC_NOTUSED = {
73         { 0, 0 },
74         -1      /* (SIZE(0..65535)) */};
75 static asn_per_constraints_t asn_PER_type_cellInfo_List_constr_4 CC_NOTUSED = {
76         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
77         { APC_CONSTRAINED,       16,  16,  0,  65535 }  /* (SIZE(0..65535)) */,
78         0, 0    /* No PER value map */
79 };
80 static asn_oer_constraints_t asn_OER_memb_ueInfo_List_constr_2 CC_NOTUSED = {
81         { 0, 0 },
82         -1      /* (SIZE(0..65535)) */};
83 static asn_per_constraints_t asn_PER_memb_ueInfo_List_constr_2 CC_NOTUSED = {
84         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
85         { APC_CONSTRAINED,       16,  16,  0,  65535 }  /* (SIZE(0..65535)) */,
86         0, 0    /* No PER value map */
87 };
88 static asn_oer_constraints_t asn_OER_memb_cellInfo_List_constr_4 CC_NOTUSED = {
89         { 0, 0 },
90         -1      /* (SIZE(0..65535)) */};
91 static asn_per_constraints_t asn_PER_memb_cellInfo_List_constr_4 CC_NOTUSED = {
92         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
93         { APC_CONSTRAINED,       16,  16,  0,  65535 }  /* (SIZE(0..65535)) */,
94         0, 0    /* No PER value map */
95 };
96 static asn_TYPE_member_t asn_MBR_ueInfo_List_2[] = {
97         { ATF_POINTER, 0, 0,
98                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
99                 0,
100                 &asn_DEF_E2SM_RC_IndicationMessage_Format4_ItemUE,
101                 0,
102                 { 0, 0, 0 },
103                 0, 0, /* No default value */
104                 ""
105                 },
106 };
107 static const ber_tlv_tag_t asn_DEF_ueInfo_List_tags_2[] = {
108         (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
109         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
110 };
111 static asn_SET_OF_specifics_t asn_SPC_ueInfo_List_specs_2 = {
112         sizeof(struct E2SM_RC_IndicationMessage_Format4__ueInfo_List),
113         offsetof(struct E2SM_RC_IndicationMessage_Format4__ueInfo_List, _asn_ctx),
114         0,      /* XER encoding is XMLDelimitedItemList */
115 };
116 static /* Use -fall-defs-global to expose */
117 asn_TYPE_descriptor_t asn_DEF_ueInfo_List_2 = {
118         "ueInfo-List",
119         "ueInfo-List",
120         &asn_OP_SEQUENCE_OF,
121         asn_DEF_ueInfo_List_tags_2,
122         sizeof(asn_DEF_ueInfo_List_tags_2)
123                 /sizeof(asn_DEF_ueInfo_List_tags_2[0]) - 1, /* 1 */
124         asn_DEF_ueInfo_List_tags_2,     /* Same as above */
125         sizeof(asn_DEF_ueInfo_List_tags_2)
126                 /sizeof(asn_DEF_ueInfo_List_tags_2[0]), /* 2 */
127         { &asn_OER_type_ueInfo_List_constr_2, &asn_PER_type_ueInfo_List_constr_2, SEQUENCE_OF_constraint },
128         asn_MBR_ueInfo_List_2,
129         1,      /* Single element */
130         &asn_SPC_ueInfo_List_specs_2    /* Additional specs */
131 };
132
133 static asn_TYPE_member_t asn_MBR_cellInfo_List_4[] = {
134         { ATF_POINTER, 0, 0,
135                 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
136                 0,
137                 &asn_DEF_E2SM_RC_IndicationMessage_Format4_ItemCell,
138                 0,
139                 { 0, 0, 0 },
140                 0, 0, /* No default value */
141                 ""
142                 },
143 };
144 static const ber_tlv_tag_t asn_DEF_cellInfo_List_tags_4[] = {
145         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
146         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
147 };
148 static asn_SET_OF_specifics_t asn_SPC_cellInfo_List_specs_4 = {
149         sizeof(struct E2SM_RC_IndicationMessage_Format4__cellInfo_List),
150         offsetof(struct E2SM_RC_IndicationMessage_Format4__cellInfo_List, _asn_ctx),
151         0,      /* XER encoding is XMLDelimitedItemList */
152 };
153 static /* Use -fall-defs-global to expose */
154 asn_TYPE_descriptor_t asn_DEF_cellInfo_List_4 = {
155         "cellInfo-List",
156         "cellInfo-List",
157         &asn_OP_SEQUENCE_OF,
158         asn_DEF_cellInfo_List_tags_4,
159         sizeof(asn_DEF_cellInfo_List_tags_4)
160                 /sizeof(asn_DEF_cellInfo_List_tags_4[0]) - 1, /* 1 */
161         asn_DEF_cellInfo_List_tags_4,   /* Same as above */
162         sizeof(asn_DEF_cellInfo_List_tags_4)
163                 /sizeof(asn_DEF_cellInfo_List_tags_4[0]), /* 2 */
164         { &asn_OER_type_cellInfo_List_constr_4, &asn_PER_type_cellInfo_List_constr_4, SEQUENCE_OF_constraint },
165         asn_MBR_cellInfo_List_4,
166         1,      /* Single element */
167         &asn_SPC_cellInfo_List_specs_4  /* Additional specs */
168 };
169
170 asn_TYPE_member_t asn_MBR_E2SM_RC_IndicationMessage_Format4_1[] = {
171         { ATF_NOFLAGS, 0, offsetof(struct E2SM_RC_IndicationMessage_Format4, ueInfo_List),
172                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
173                 0,
174                 &asn_DEF_ueInfo_List_2,
175                 0,
176                 { &asn_OER_memb_ueInfo_List_constr_2, &asn_PER_memb_ueInfo_List_constr_2,  memb_ueInfo_List_constraint_1 },
177                 0, 0, /* No default value */
178                 "ueInfo-List"
179                 },
180         { ATF_NOFLAGS, 0, offsetof(struct E2SM_RC_IndicationMessage_Format4, cellInfo_List),
181                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
182                 0,
183                 &asn_DEF_cellInfo_List_4,
184                 0,
185                 { &asn_OER_memb_cellInfo_List_constr_4, &asn_PER_memb_cellInfo_List_constr_4,  memb_cellInfo_List_constraint_1 },
186                 0, 0, /* No default value */
187                 "cellInfo-List"
188                 },
189 };
190 static const ber_tlv_tag_t asn_DEF_E2SM_RC_IndicationMessage_Format4_tags_1[] = {
191         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
192 };
193 static const asn_TYPE_tag2member_t asn_MAP_E2SM_RC_IndicationMessage_Format4_tag2el_1[] = {
194     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ueInfo-List */
195     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cellInfo-List */
196 };
197 asn_SEQUENCE_specifics_t asn_SPC_E2SM_RC_IndicationMessage_Format4_specs_1 = {
198         sizeof(struct E2SM_RC_IndicationMessage_Format4),
199         offsetof(struct E2SM_RC_IndicationMessage_Format4, _asn_ctx),
200         asn_MAP_E2SM_RC_IndicationMessage_Format4_tag2el_1,
201         2,      /* Count of tags in the map */
202         0, 0, 0,        /* Optional elements (not needed) */
203         2,      /* First extension addition */
204 };
205 asn_TYPE_descriptor_t asn_DEF_E2SM_RC_IndicationMessage_Format4 = {
206         "E2SM-RC-IndicationMessage-Format4",
207         "E2SM-RC-IndicationMessage-Format4",
208         &asn_OP_SEQUENCE,
209         asn_DEF_E2SM_RC_IndicationMessage_Format4_tags_1,
210         sizeof(asn_DEF_E2SM_RC_IndicationMessage_Format4_tags_1)
211                 /sizeof(asn_DEF_E2SM_RC_IndicationMessage_Format4_tags_1[0]), /* 1 */
212         asn_DEF_E2SM_RC_IndicationMessage_Format4_tags_1,       /* Same as above */
213         sizeof(asn_DEF_E2SM_RC_IndicationMessage_Format4_tags_1)
214                 /sizeof(asn_DEF_E2SM_RC_IndicationMessage_Format4_tags_1[0]), /* 1 */
215         { 0, 0, SEQUENCE_constraint },
216         asn_MBR_E2SM_RC_IndicationMessage_Format4_1,
217         2,      /* Elements count */
218         &asn_SPC_E2SM_RC_IndicationMessage_Format4_specs_1      /* Additional specs */
219 };
220