/src/open5gs/lib/asn1c/ngap/NGAP_NR-A2X-ServicesAuthorized.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-IEs" |
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_NR-A2X-ServicesAuthorized.h" |
9 | | |
10 | | #include "NGAP_ProtocolExtensionContainer.h" |
11 | | #ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS |
12 | | #if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) |
13 | | extern asn_TYPE_descriptor_t asn_DEF_NGAP_aerialUE __attribute__((weak, alias("asn_DEF_NGAP_aerialUE_2"))); |
14 | | #else |
15 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_aerialUE_2; |
16 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_aerialUE; |
17 | | __attribute__((constructor)) static void asn_DEF_NGAP_aerialUE_2_alias_init(void) { |
18 | | asn_DEF_NGAP_aerialUE = asn_DEF_NGAP_aerialUE_2; |
19 | | } |
20 | | #endif |
21 | | #endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ |
22 | | /* |
23 | | * This type is implemented using NativeEnumerated, |
24 | | * so here we adjust the DEF accordingly. |
25 | | */ |
26 | | #ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS |
27 | | #if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) |
28 | | extern asn_TYPE_descriptor_t asn_DEF_NGAP_aerialControllerUE __attribute__((weak, alias("asn_DEF_NGAP_aerialControllerUE_6"))); |
29 | | #else |
30 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_aerialControllerUE_6; |
31 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_aerialControllerUE; |
32 | | __attribute__((constructor)) static void asn_DEF_NGAP_aerialControllerUE_6_alias_init(void) { |
33 | | asn_DEF_NGAP_aerialControllerUE = asn_DEF_NGAP_aerialControllerUE_6; |
34 | | } |
35 | | #endif |
36 | | #endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ |
37 | | /* |
38 | | * This type is implemented using NativeEnumerated, |
39 | | * so here we adjust the DEF accordingly. |
40 | | */ |
41 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
42 | | static asn_per_constraints_t asn_PER_type_NGAP_aerialUE_constr_2 CC_NOTUSED = { |
43 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
44 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
45 | | 0, 0 /* No PER value map */ |
46 | | }; |
47 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
48 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
49 | | static asn_per_constraints_t asn_PER_type_NGAP_aerialControllerUE_constr_6 CC_NOTUSED = { |
50 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
51 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
52 | | 0, 0 /* No PER value map */ |
53 | | }; |
54 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
55 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_aerialUE_value2enum_2[] = { |
56 | | { 0, 10, "authorized" }, |
57 | | { 1, 14, "not-authorized" } |
58 | | /* This list is extensible */ |
59 | | }; |
60 | | static int asn_validate_NGAP_aerialUE_2(const asn_TYPE_descriptor_t *td, |
61 | | const void *sptr, |
62 | | asn_app_constraint_failed_f *ctfailcb, |
63 | 0 | void* app_key) { |
64 | 0 | if(! sptr) { return -1; } |
65 | 0 | e_NGAP_NR_A2X_ServicesAuthorized__aerialUE value = *(e_NGAP_NR_A2X_ServicesAuthorized__aerialUE*)sptr; |
66 | 0 | switch(value) { |
67 | 0 | case NGAP_NR_A2X_ServicesAuthorized__aerialUE_authorized: |
68 | 0 | case NGAP_NR_A2X_ServicesAuthorized__aerialUE_not_authorized: |
69 | 0 | return 0; |
70 | 0 | } |
71 | 0 | return -1; |
72 | 0 | } |
73 | | static const unsigned int asn_MAP_NGAP_aerialUE_enum2value_2[] = { |
74 | | 0, /* authorized(0) */ |
75 | | 1 /* not-authorized(1) */ |
76 | | /* This list is extensible */ |
77 | | }; |
78 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_aerialUE_specs_2 = { |
79 | | asn_MAP_NGAP_aerialUE_value2enum_2, /* "tag" => N; sorted by tag */ |
80 | | asn_MAP_NGAP_aerialUE_enum2value_2, /* N => "tag"; sorted by N */ |
81 | | 2, /* Number of elements in the maps */ |
82 | | 3, /* Extensions before this member */ |
83 | | 1, /* Strict enumeration */ |
84 | | 0, /* Native long size */ |
85 | | 0 |
86 | | }; |
87 | | static const ber_tlv_tag_t asn_DEF_NGAP_aerialUE_tags_2[] = { |
88 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
89 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
90 | | }; |
91 | | static /* Use -fall-defs-global to expose */ |
92 | | asn_TYPE_descriptor_t asn_DEF_NGAP_aerialUE_2 = { |
93 | | "aerialUE", |
94 | | "aerialUE", |
95 | | &asn_OP_NativeEnumerated, |
96 | | asn_DEF_NGAP_aerialUE_tags_2, |
97 | | sizeof(asn_DEF_NGAP_aerialUE_tags_2) |
98 | | /sizeof(asn_DEF_NGAP_aerialUE_tags_2[0]) - 1, /* 1 */ |
99 | | asn_DEF_NGAP_aerialUE_tags_2, /* Same as above */ |
100 | | sizeof(asn_DEF_NGAP_aerialUE_tags_2) |
101 | | /sizeof(asn_DEF_NGAP_aerialUE_tags_2[0]), /* 2 */ |
102 | | { |
103 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
104 | | 0, |
105 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
106 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
107 | | &asn_PER_type_NGAP_aerialUE_constr_2, |
108 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
109 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
110 | | 0, |
111 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
112 | | asn_validate_NGAP_aerialUE_2 |
113 | | }, |
114 | | 0, 0, /* Defined elsewhere */ |
115 | | &asn_SPC_NGAP_aerialUE_specs_2 /* Additional specs */ |
116 | | }; |
117 | | |
118 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_aerialControllerUE_value2enum_6[] = { |
119 | | { 0, 10, "authorized" }, |
120 | | { 1, 14, "not-authorized" } |
121 | | /* This list is extensible */ |
122 | | }; |
123 | | static int asn_validate_NGAP_aerialControllerUE_6(const asn_TYPE_descriptor_t *td, |
124 | | const void *sptr, |
125 | | asn_app_constraint_failed_f *ctfailcb, |
126 | 0 | void* app_key) { |
127 | 0 | if(! sptr) { return -1; } |
128 | 0 | e_NGAP_NR_A2X_ServicesAuthorized__aerialControllerUE value = *(e_NGAP_NR_A2X_ServicesAuthorized__aerialControllerUE*)sptr; |
129 | 0 | switch(value) { |
130 | 0 | case NGAP_NR_A2X_ServicesAuthorized__aerialControllerUE_authorized: |
131 | 0 | case NGAP_NR_A2X_ServicesAuthorized__aerialControllerUE_not_authorized: |
132 | 0 | return 0; |
133 | 0 | } |
134 | 0 | return -1; |
135 | 0 | } |
136 | | static const unsigned int asn_MAP_NGAP_aerialControllerUE_enum2value_6[] = { |
137 | | 0, /* authorized(0) */ |
138 | | 1 /* not-authorized(1) */ |
139 | | /* This list is extensible */ |
140 | | }; |
141 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_aerialControllerUE_specs_6 = { |
142 | | asn_MAP_NGAP_aerialControllerUE_value2enum_6, /* "tag" => N; sorted by tag */ |
143 | | asn_MAP_NGAP_aerialControllerUE_enum2value_6, /* N => "tag"; sorted by N */ |
144 | | 2, /* Number of elements in the maps */ |
145 | | 3, /* Extensions before this member */ |
146 | | 1, /* Strict enumeration */ |
147 | | 0, /* Native long size */ |
148 | | 0 |
149 | | }; |
150 | | static const ber_tlv_tag_t asn_DEF_NGAP_aerialControllerUE_tags_6[] = { |
151 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
152 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
153 | | }; |
154 | | static /* Use -fall-defs-global to expose */ |
155 | | asn_TYPE_descriptor_t asn_DEF_NGAP_aerialControllerUE_6 = { |
156 | | "aerialControllerUE", |
157 | | "aerialControllerUE", |
158 | | &asn_OP_NativeEnumerated, |
159 | | asn_DEF_NGAP_aerialControllerUE_tags_6, |
160 | | sizeof(asn_DEF_NGAP_aerialControllerUE_tags_6) |
161 | | /sizeof(asn_DEF_NGAP_aerialControllerUE_tags_6[0]) - 1, /* 1 */ |
162 | | asn_DEF_NGAP_aerialControllerUE_tags_6, /* Same as above */ |
163 | | sizeof(asn_DEF_NGAP_aerialControllerUE_tags_6) |
164 | | /sizeof(asn_DEF_NGAP_aerialControllerUE_tags_6[0]), /* 2 */ |
165 | | { |
166 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
167 | | 0, |
168 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
169 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
170 | | &asn_PER_type_NGAP_aerialControllerUE_constr_6, |
171 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
172 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
173 | | 0, |
174 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
175 | | asn_validate_NGAP_aerialControllerUE_6 |
176 | | }, |
177 | | 0, 0, /* Defined elsewhere */ |
178 | | &asn_SPC_NGAP_aerialControllerUE_specs_6 /* Additional specs */ |
179 | | }; |
180 | | |
181 | | asn_TYPE_member_t asn_MBR_NGAP_NR_A2X_ServicesAuthorized_1[] = { |
182 | | { ATF_POINTER, 3, offsetof(struct NGAP_NR_A2X_ServicesAuthorized, aerialUE), |
183 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
184 | | -1, /* IMPLICIT tag at current level */ |
185 | | &asn_DEF_NGAP_aerialUE_2, |
186 | | 0, |
187 | | { |
188 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
189 | | 0, |
190 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
191 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
192 | | 0, |
193 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
194 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
195 | | 0, |
196 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
197 | | 0 |
198 | | }, |
199 | | 0, 0, /* No default value */ |
200 | | "aerialUE" |
201 | | }, |
202 | | { ATF_POINTER, 2, offsetof(struct NGAP_NR_A2X_ServicesAuthorized, aerialControllerUE), |
203 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
204 | | -1, /* IMPLICIT tag at current level */ |
205 | | &asn_DEF_NGAP_aerialControllerUE_6, |
206 | | 0, |
207 | | { |
208 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
209 | | 0, |
210 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
211 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
212 | | 0, |
213 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
214 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
215 | | 0, |
216 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
217 | | 0 |
218 | | }, |
219 | | 0, 0, /* No default value */ |
220 | | "aerialControllerUE" |
221 | | }, |
222 | | { ATF_POINTER, 1, offsetof(struct NGAP_NR_A2X_ServicesAuthorized, iE_Extensions), |
223 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
224 | | -1, /* IMPLICIT tag at current level */ |
225 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P256, |
226 | | 0, |
227 | | { |
228 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
229 | | 0, |
230 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
231 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
232 | | 0, |
233 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
234 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
235 | | 0, |
236 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
237 | | 0 |
238 | | }, |
239 | | 0, 0, /* No default value */ |
240 | | "iE-Extensions" |
241 | | }, |
242 | | }; |
243 | | static const int asn_MAP_NGAP_NR_A2X_ServicesAuthorized_oms_1[] = { 0, 1, 2 }; |
244 | | static const ber_tlv_tag_t asn_DEF_NGAP_NR_A2X_ServicesAuthorized_tags_1[] = { |
245 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
246 | | }; |
247 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_NR_A2X_ServicesAuthorized_tag2el_1[] = { |
248 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* aerialUE */ |
249 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* aerialControllerUE */ |
250 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
251 | | }; |
252 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_NR_A2X_ServicesAuthorized_specs_1 = { |
253 | | sizeof(struct NGAP_NR_A2X_ServicesAuthorized), |
254 | | offsetof(struct NGAP_NR_A2X_ServicesAuthorized, _asn_ctx), |
255 | | asn_MAP_NGAP_NR_A2X_ServicesAuthorized_tag2el_1, |
256 | | 3, /* Count of tags in the map */ |
257 | | asn_MAP_NGAP_NR_A2X_ServicesAuthorized_oms_1, /* Optional members */ |
258 | | 3, 0, /* Root/Additions */ |
259 | | 3, /* First extension addition */ |
260 | | }; |
261 | | asn_TYPE_descriptor_t asn_DEF_NGAP_NR_A2X_ServicesAuthorized = { |
262 | | "NR-A2X-ServicesAuthorized", |
263 | | "NR-A2X-ServicesAuthorized", |
264 | | &asn_OP_SEQUENCE, |
265 | | asn_DEF_NGAP_NR_A2X_ServicesAuthorized_tags_1, |
266 | | sizeof(asn_DEF_NGAP_NR_A2X_ServicesAuthorized_tags_1) |
267 | | /sizeof(asn_DEF_NGAP_NR_A2X_ServicesAuthorized_tags_1[0]), /* 1 */ |
268 | | asn_DEF_NGAP_NR_A2X_ServicesAuthorized_tags_1, /* Same as above */ |
269 | | sizeof(asn_DEF_NGAP_NR_A2X_ServicesAuthorized_tags_1) |
270 | | /sizeof(asn_DEF_NGAP_NR_A2X_ServicesAuthorized_tags_1[0]), /* 1 */ |
271 | | { |
272 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
273 | | 0, |
274 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
275 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
276 | | 0, |
277 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
278 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
279 | | 0, |
280 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
281 | | SEQUENCE_constraint |
282 | | }, |
283 | | asn_MBR_NGAP_NR_A2X_ServicesAuthorized_1, |
284 | | 3, /* Elements count */ |
285 | | &asn_SPC_NGAP_NR_A2X_ServicesAuthorized_specs_1 /* Additional specs */ |
286 | | }; |
287 | | |