/src/open5gs/lib/asn1c/ngap/NGAP_PrivateIE-Field.c
Line | Count | Source |
1 | | /* |
2 | | * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c) |
3 | | * From ASN.1 module "NGAP-Containers" |
4 | | * found in "../support/ngap-r19.2.0/38413-j20.asn" |
5 | | * `asn1c -pdu=all -fprefix=NGAP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER` |
6 | | */ |
7 | | |
8 | | #include "NGAP_PrivateIE-Field.h" |
9 | | |
10 | | static int |
11 | | memb_NGAP_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
12 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
13 | | |
14 | 0 | if(!sptr) { |
15 | 0 | ASN__CTFAIL(app_key, td, sptr, |
16 | 0 | "%s: value not given (%s:%d)", |
17 | 0 | td->name, __FILE__, __LINE__); |
18 | 0 | return -1; |
19 | 0 | } |
20 | | |
21 | | |
22 | 0 | if(1 /* No applicable constraints whatsoever */) { |
23 | | /* Nothing is here. See below */ |
24 | 0 | } |
25 | | |
26 | 0 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
27 | 0 | } |
28 | | |
29 | | static int |
30 | | memb_NGAP_criticality_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
31 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
32 | | |
33 | 0 | if(!sptr) { |
34 | 0 | ASN__CTFAIL(app_key, td, sptr, |
35 | 0 | "%s: value not given (%s:%d)", |
36 | 0 | td->name, __FILE__, __LINE__); |
37 | 0 | return -1; |
38 | 0 | } |
39 | | |
40 | | |
41 | 0 | if(1 /* No applicable constraints whatsoever */) { |
42 | | /* Nothing is here. See below */ |
43 | 0 | } |
44 | | |
45 | 0 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
46 | 0 | } |
47 | | |
48 | | static int |
49 | | memb_NGAP_value_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
50 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
51 | | |
52 | 0 | if(!sptr) { |
53 | 0 | ASN__CTFAIL(app_key, td, sptr, |
54 | 0 | "%s: value not given (%s:%d)", |
55 | 0 | td->name, __FILE__, __LINE__); |
56 | 0 | return -1; |
57 | 0 | } |
58 | | |
59 | | |
60 | 0 | if(1 /* No applicable constraints whatsoever */) { |
61 | | /* Nothing is here. See below */ |
62 | 0 | } |
63 | | |
64 | 0 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
65 | 0 | } |
66 | | |
67 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
68 | | static asn_per_constraints_t asn_PER_memb_NGAP_id_constr_2 CC_NOTUSED = { |
69 | | { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, |
70 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
71 | | 0, 0 /* No PER value map */ |
72 | | }; |
73 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
74 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
75 | | static asn_per_constraints_t asn_PER_memb_NGAP_criticality_constr_3 CC_NOTUSED = { |
76 | | { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */, |
77 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
78 | | 0, 0 /* No PER value map */ |
79 | | }; |
80 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
81 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
82 | | static asn_per_constraints_t asn_PER_memb_NGAP_value_constr_4 CC_NOTUSED = { |
83 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
84 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
85 | | 0, 0 /* No PER value map */ |
86 | | }; |
87 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
88 | | static asn_CHOICE_specifics_t asn_SPC_NGAP_value_specs_4 = { |
89 | | sizeof(struct NGAP_PrivateMessageIEs__value), |
90 | | offsetof(struct NGAP_PrivateMessageIEs__value, _asn_ctx), |
91 | | offsetof(struct NGAP_PrivateMessageIEs__value, present), |
92 | | sizeof(((struct NGAP_PrivateMessageIEs__value *)0)->present), |
93 | | 0, /* No top level tags */ |
94 | | 0, /* No tags in the map */ |
95 | | 0, 0, |
96 | | -1 /* Extensions start */ |
97 | | }; |
98 | | static /* Use -fall-defs-global to expose */ |
99 | | asn_TYPE_descriptor_t asn_DEF_NGAP_value_4 = { |
100 | | "OPEN TYPE", |
101 | | "OPEN_TYPE", |
102 | | &asn_OP_OPEN_TYPE, |
103 | | 0, /* No effective tags (pointer) */ |
104 | | 0, /* No effective tags (count) */ |
105 | | 0, /* No tags (pointer) */ |
106 | | 0, /* No tags (count) */ |
107 | | { |
108 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
109 | | 0, |
110 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
111 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
112 | | 0, |
113 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
114 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
115 | | 0, |
116 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
117 | | OPEN_TYPE_constraint |
118 | | }, |
119 | | 0, 0, /* No members */ |
120 | | &asn_SPC_NGAP_value_specs_4 /* Additional specs */ |
121 | | }; |
122 | | |
123 | | asn_TYPE_member_t asn_MBR_NGAP_PrivateMessageIEs_1[] = { |
124 | | { ATF_POINTER, 0, offsetof(struct NGAP_PrivateMessageIEs, id), |
125 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
126 | | +1, /* EXPLICIT tag at current level */ |
127 | | &asn_DEF_NGAP_PrivateIE_ID, |
128 | | 0, |
129 | | { |
130 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
131 | | 0, |
132 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
133 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
134 | | &asn_PER_memb_NGAP_id_constr_2, |
135 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
136 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
137 | | 0, |
138 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
139 | | memb_NGAP_id_constraint_1 |
140 | | }, |
141 | | 0, 0, /* No default value */ |
142 | | "id" |
143 | | }, |
144 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_PrivateMessageIEs, criticality), |
145 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
146 | | -1, /* IMPLICIT tag at current level */ |
147 | | &asn_DEF_NGAP_Criticality, |
148 | | 0, |
149 | | { |
150 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
151 | | 0, |
152 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
153 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
154 | | &asn_PER_memb_NGAP_criticality_constr_3, |
155 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
156 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
157 | | 0, |
158 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
159 | | memb_NGAP_criticality_constraint_1 |
160 | | }, |
161 | | 0, 0, /* No default value */ |
162 | | "criticality" |
163 | | }, |
164 | | { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct NGAP_PrivateMessageIEs, value), |
165 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
166 | | +1, /* EXPLICIT tag at current level */ |
167 | | &asn_DEF_NGAP_value_4, |
168 | | 0, |
169 | | { |
170 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
171 | | 0, |
172 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
173 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
174 | | &asn_PER_memb_NGAP_value_constr_4, |
175 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
176 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
177 | | 0, |
178 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
179 | | memb_NGAP_value_constraint_1 |
180 | | }, |
181 | | 0, 0, /* No default value */ |
182 | | "value" |
183 | | }, |
184 | | }; |
185 | | static const ber_tlv_tag_t asn_DEF_NGAP_PrivateMessageIEs_tags_1[] = { |
186 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
187 | | }; |
188 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_PrivateMessageIEs_tag2el_1[] = { |
189 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */ |
190 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */ |
191 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */ |
192 | | }; |
193 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_PrivateMessageIEs_specs_1 = { |
194 | | sizeof(struct NGAP_PrivateMessageIEs), |
195 | | offsetof(struct NGAP_PrivateMessageIEs, _asn_ctx), |
196 | | asn_MAP_NGAP_PrivateMessageIEs_tag2el_1, |
197 | | 3, /* Count of tags in the map */ |
198 | | 0, 0, 0, /* Optional elements (not needed) */ |
199 | | -1, /* First extension addition */ |
200 | | }; |
201 | | asn_TYPE_descriptor_t asn_DEF_NGAP_PrivateMessageIEs = { |
202 | | "PrivateMessageIEs", |
203 | | "PrivateMessageIEs", |
204 | | &asn_OP_SEQUENCE, |
205 | | asn_DEF_NGAP_PrivateMessageIEs_tags_1, |
206 | | sizeof(asn_DEF_NGAP_PrivateMessageIEs_tags_1) |
207 | | /sizeof(asn_DEF_NGAP_PrivateMessageIEs_tags_1[0]), /* 1 */ |
208 | | asn_DEF_NGAP_PrivateMessageIEs_tags_1, /* Same as above */ |
209 | | sizeof(asn_DEF_NGAP_PrivateMessageIEs_tags_1) |
210 | | /sizeof(asn_DEF_NGAP_PrivateMessageIEs_tags_1[0]), /* 1 */ |
211 | | { |
212 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
213 | | 0, |
214 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
215 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
216 | | 0, |
217 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
218 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
219 | | 0, |
220 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
221 | | SEQUENCE_constraint |
222 | | }, |
223 | | asn_MBR_NGAP_PrivateMessageIEs_1, |
224 | | 3, /* Elements count */ |
225 | | &asn_SPC_NGAP_PrivateMessageIEs_specs_1 /* Additional specs */ |
226 | | }; |
227 | | |