/src/open5gs/lib/asn1c/ngap/NGAP_AUN3DeviceAccessInfo.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_AUN3DeviceAccessInfo.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_aUN3DeviceAccess __attribute__((weak, alias("asn_DEF_NGAP_aUN3DeviceAccess_2"))); |
14 | | #else |
15 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_aUN3DeviceAccess_2; |
16 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_aUN3DeviceAccess; |
17 | | __attribute__((constructor)) static void asn_DEF_NGAP_aUN3DeviceAccess_2_alias_init(void) { |
18 | | asn_DEF_NGAP_aUN3DeviceAccess = asn_DEF_NGAP_aUN3DeviceAccess_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_existingNGConnectionwithSameLocation __attribute__((weak, alias("asn_DEF_NGAP_existingNGConnectionwithSameLocation_5"))); |
29 | | #else |
30 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_existingNGConnectionwithSameLocation_5; |
31 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_existingNGConnectionwithSameLocation; |
32 | | __attribute__((constructor)) static void asn_DEF_NGAP_existingNGConnectionwithSameLocation_5_alias_init(void) { |
33 | | asn_DEF_NGAP_existingNGConnectionwithSameLocation = asn_DEF_NGAP_existingNGConnectionwithSameLocation_5; |
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_aUN3DeviceAccess_constr_2 CC_NOTUSED = { |
43 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, |
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_existingNGConnectionwithSameLocation_constr_5 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_aUN3DeviceAccess_value2enum_2[] = { |
56 | | { 0, 4, "true" } |
57 | | /* This list is extensible */ |
58 | | }; |
59 | | static int asn_validate_NGAP_aUN3DeviceAccess_2(const asn_TYPE_descriptor_t *td, |
60 | | const void *sptr, |
61 | | asn_app_constraint_failed_f *ctfailcb, |
62 | 0 | void* app_key) { |
63 | 0 | if(! sptr) { return -1; } |
64 | 0 | e_NGAP_AUN3DeviceAccessInfo__aUN3DeviceAccess value = *(e_NGAP_AUN3DeviceAccessInfo__aUN3DeviceAccess*)sptr; |
65 | 0 | switch(value) { |
66 | 0 | case NGAP_AUN3DeviceAccessInfo__aUN3DeviceAccess_true: |
67 | 0 | return 0; |
68 | 0 | } |
69 | 0 | return -1; |
70 | 0 | } |
71 | | static const unsigned int asn_MAP_NGAP_aUN3DeviceAccess_enum2value_2[] = { |
72 | | 0 /* true(0) */ |
73 | | /* This list is extensible */ |
74 | | }; |
75 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_aUN3DeviceAccess_specs_2 = { |
76 | | asn_MAP_NGAP_aUN3DeviceAccess_value2enum_2, /* "tag" => N; sorted by tag */ |
77 | | asn_MAP_NGAP_aUN3DeviceAccess_enum2value_2, /* N => "tag"; sorted by N */ |
78 | | 1, /* Number of elements in the maps */ |
79 | | 2, /* Extensions before this member */ |
80 | | 1, /* Strict enumeration */ |
81 | | 0, /* Native long size */ |
82 | | 0 |
83 | | }; |
84 | | static const ber_tlv_tag_t asn_DEF_NGAP_aUN3DeviceAccess_tags_2[] = { |
85 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
86 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
87 | | }; |
88 | | static /* Use -fall-defs-global to expose */ |
89 | | asn_TYPE_descriptor_t asn_DEF_NGAP_aUN3DeviceAccess_2 = { |
90 | | "aUN3DeviceAccess", |
91 | | "aUN3DeviceAccess", |
92 | | &asn_OP_NativeEnumerated, |
93 | | asn_DEF_NGAP_aUN3DeviceAccess_tags_2, |
94 | | sizeof(asn_DEF_NGAP_aUN3DeviceAccess_tags_2) |
95 | | /sizeof(asn_DEF_NGAP_aUN3DeviceAccess_tags_2[0]) - 1, /* 1 */ |
96 | | asn_DEF_NGAP_aUN3DeviceAccess_tags_2, /* Same as above */ |
97 | | sizeof(asn_DEF_NGAP_aUN3DeviceAccess_tags_2) |
98 | | /sizeof(asn_DEF_NGAP_aUN3DeviceAccess_tags_2[0]), /* 2 */ |
99 | | { |
100 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
101 | | 0, |
102 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
103 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
104 | | &asn_PER_type_NGAP_aUN3DeviceAccess_constr_2, |
105 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
106 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
107 | | 0, |
108 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
109 | | asn_validate_NGAP_aUN3DeviceAccess_2 |
110 | | }, |
111 | | 0, 0, /* Defined elsewhere */ |
112 | | &asn_SPC_NGAP_aUN3DeviceAccess_specs_2 /* Additional specs */ |
113 | | }; |
114 | | |
115 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_existingNGConnectionwithSameLocation_value2enum_5[] = { |
116 | | { 0, 4, "true" }, |
117 | | { 1, 5, "false" } |
118 | | /* This list is extensible */ |
119 | | }; |
120 | | static int asn_validate_NGAP_existingNGConnectionwithSameLocation_5(const asn_TYPE_descriptor_t *td, |
121 | | const void *sptr, |
122 | | asn_app_constraint_failed_f *ctfailcb, |
123 | 0 | void* app_key) { |
124 | 0 | if(! sptr) { return -1; } |
125 | 0 | e_NGAP_AUN3DeviceAccessInfo__existingNGConnectionwithSameLocation value = *(e_NGAP_AUN3DeviceAccessInfo__existingNGConnectionwithSameLocation*)sptr; |
126 | 0 | switch(value) { |
127 | 0 | case NGAP_AUN3DeviceAccessInfo__existingNGConnectionwithSameLocation_true: |
128 | 0 | case NGAP_AUN3DeviceAccessInfo__existingNGConnectionwithSameLocation_false: |
129 | 0 | return 0; |
130 | 0 | } |
131 | 0 | return -1; |
132 | 0 | } |
133 | | static const unsigned int asn_MAP_NGAP_existingNGConnectionwithSameLocation_enum2value_5[] = { |
134 | | 1, /* false(1) */ |
135 | | 0 /* true(0) */ |
136 | | /* This list is extensible */ |
137 | | }; |
138 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_existingNGConnectionwithSameLocation_specs_5 = { |
139 | | asn_MAP_NGAP_existingNGConnectionwithSameLocation_value2enum_5, /* "tag" => N; sorted by tag */ |
140 | | asn_MAP_NGAP_existingNGConnectionwithSameLocation_enum2value_5, /* N => "tag"; sorted by N */ |
141 | | 2, /* Number of elements in the maps */ |
142 | | 3, /* Extensions before this member */ |
143 | | 1, /* Strict enumeration */ |
144 | | 0, /* Native long size */ |
145 | | 0 |
146 | | }; |
147 | | static const ber_tlv_tag_t asn_DEF_NGAP_existingNGConnectionwithSameLocation_tags_5[] = { |
148 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
149 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
150 | | }; |
151 | | static /* Use -fall-defs-global to expose */ |
152 | | asn_TYPE_descriptor_t asn_DEF_NGAP_existingNGConnectionwithSameLocation_5 = { |
153 | | "existingNGConnectionwithSameLocation", |
154 | | "existingNGConnectionwithSameLocation", |
155 | | &asn_OP_NativeEnumerated, |
156 | | asn_DEF_NGAP_existingNGConnectionwithSameLocation_tags_5, |
157 | | sizeof(asn_DEF_NGAP_existingNGConnectionwithSameLocation_tags_5) |
158 | | /sizeof(asn_DEF_NGAP_existingNGConnectionwithSameLocation_tags_5[0]) - 1, /* 1 */ |
159 | | asn_DEF_NGAP_existingNGConnectionwithSameLocation_tags_5, /* Same as above */ |
160 | | sizeof(asn_DEF_NGAP_existingNGConnectionwithSameLocation_tags_5) |
161 | | /sizeof(asn_DEF_NGAP_existingNGConnectionwithSameLocation_tags_5[0]), /* 2 */ |
162 | | { |
163 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
164 | | 0, |
165 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
166 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
167 | | &asn_PER_type_NGAP_existingNGConnectionwithSameLocation_constr_5, |
168 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
169 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
170 | | 0, |
171 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
172 | | asn_validate_NGAP_existingNGConnectionwithSameLocation_5 |
173 | | }, |
174 | | 0, 0, /* Defined elsewhere */ |
175 | | &asn_SPC_NGAP_existingNGConnectionwithSameLocation_specs_5 /* Additional specs */ |
176 | | }; |
177 | | |
178 | | asn_TYPE_member_t asn_MBR_NGAP_AUN3DeviceAccessInfo_1[] = { |
179 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_AUN3DeviceAccessInfo, aUN3DeviceAccess), |
180 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
181 | | -1, /* IMPLICIT tag at current level */ |
182 | | &asn_DEF_NGAP_aUN3DeviceAccess_2, |
183 | | 0, |
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 | | 0, |
190 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
191 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
192 | | 0, |
193 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
194 | | 0 |
195 | | }, |
196 | | 0, 0, /* No default value */ |
197 | | "aUN3DeviceAccess" |
198 | | }, |
199 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_AUN3DeviceAccessInfo, existingNGConnectionwithSameLocation), |
200 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
201 | | -1, /* IMPLICIT tag at current level */ |
202 | | &asn_DEF_NGAP_existingNGConnectionwithSameLocation_5, |
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 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
212 | | 0, |
213 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
214 | | 0 |
215 | | }, |
216 | | 0, 0, /* No default value */ |
217 | | "existingNGConnectionwithSameLocation" |
218 | | }, |
219 | | { ATF_POINTER, 1, offsetof(struct NGAP_AUN3DeviceAccessInfo, iE_Extensions), |
220 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
221 | | -1, /* IMPLICIT tag at current level */ |
222 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P34, |
223 | | 0, |
224 | | { |
225 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
226 | | 0, |
227 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
228 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
229 | | 0, |
230 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
231 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
232 | | 0, |
233 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
234 | | 0 |
235 | | }, |
236 | | 0, 0, /* No default value */ |
237 | | "iE-Extensions" |
238 | | }, |
239 | | }; |
240 | | static const int asn_MAP_NGAP_AUN3DeviceAccessInfo_oms_1[] = { 2 }; |
241 | | static const ber_tlv_tag_t asn_DEF_NGAP_AUN3DeviceAccessInfo_tags_1[] = { |
242 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
243 | | }; |
244 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_AUN3DeviceAccessInfo_tag2el_1[] = { |
245 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* aUN3DeviceAccess */ |
246 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* existingNGConnectionwithSameLocation */ |
247 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
248 | | }; |
249 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_AUN3DeviceAccessInfo_specs_1 = { |
250 | | sizeof(struct NGAP_AUN3DeviceAccessInfo), |
251 | | offsetof(struct NGAP_AUN3DeviceAccessInfo, _asn_ctx), |
252 | | asn_MAP_NGAP_AUN3DeviceAccessInfo_tag2el_1, |
253 | | 3, /* Count of tags in the map */ |
254 | | asn_MAP_NGAP_AUN3DeviceAccessInfo_oms_1, /* Optional members */ |
255 | | 1, 0, /* Root/Additions */ |
256 | | 3, /* First extension addition */ |
257 | | }; |
258 | | asn_TYPE_descriptor_t asn_DEF_NGAP_AUN3DeviceAccessInfo = { |
259 | | "AUN3DeviceAccessInfo", |
260 | | "AUN3DeviceAccessInfo", |
261 | | &asn_OP_SEQUENCE, |
262 | | asn_DEF_NGAP_AUN3DeviceAccessInfo_tags_1, |
263 | | sizeof(asn_DEF_NGAP_AUN3DeviceAccessInfo_tags_1) |
264 | | /sizeof(asn_DEF_NGAP_AUN3DeviceAccessInfo_tags_1[0]), /* 1 */ |
265 | | asn_DEF_NGAP_AUN3DeviceAccessInfo_tags_1, /* Same as above */ |
266 | | sizeof(asn_DEF_NGAP_AUN3DeviceAccessInfo_tags_1) |
267 | | /sizeof(asn_DEF_NGAP_AUN3DeviceAccessInfo_tags_1[0]), /* 1 */ |
268 | | { |
269 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
270 | | 0, |
271 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
272 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
273 | | 0, |
274 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
275 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
276 | | 0, |
277 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
278 | | SEQUENCE_constraint |
279 | | }, |
280 | | asn_MBR_NGAP_AUN3DeviceAccessInfo_1, |
281 | | 3, /* Elements count */ |
282 | | &asn_SPC_NGAP_AUN3DeviceAccessInfo_specs_1 /* Additional specs */ |
283 | | }; |
284 | | |