/src/open5gs/lib/asn1c/ngap/NGAP_DAPSResponseInfo.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_DAPSResponseInfo.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_dapsresponseindicator __attribute__((weak, alias("asn_DEF_NGAP_dapsresponseindicator_2"))); |
14 | | #else |
15 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_dapsresponseindicator_2; |
16 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_dapsresponseindicator; |
17 | | __attribute__((constructor)) static void asn_DEF_NGAP_dapsresponseindicator_2_alias_init(void) { |
18 | | asn_DEF_NGAP_dapsresponseindicator = asn_DEF_NGAP_dapsresponseindicator_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 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
27 | | static asn_per_constraints_t asn_PER_type_NGAP_dapsresponseindicator_constr_2 CC_NOTUSED = { |
28 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
29 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
30 | | 0, 0 /* No PER value map */ |
31 | | }; |
32 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
33 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_dapsresponseindicator_value2enum_2[] = { |
34 | | { 0, 16, "daps-ho-accepted" }, |
35 | | { 1, 20, "daps-ho-not-accepted" } |
36 | | /* This list is extensible */ |
37 | | }; |
38 | | static int asn_validate_NGAP_dapsresponseindicator_2(const asn_TYPE_descriptor_t *td, |
39 | | const void *sptr, |
40 | | asn_app_constraint_failed_f *ctfailcb, |
41 | 0 | void* app_key) { |
42 | 0 | if(! sptr) { return -1; } |
43 | 0 | e_NGAP_DAPSResponseInfo__dapsresponseindicator value = *(e_NGAP_DAPSResponseInfo__dapsresponseindicator*)sptr; |
44 | 0 | switch(value) { |
45 | 0 | case NGAP_DAPSResponseInfo__dapsresponseindicator_daps_ho_accepted: |
46 | 0 | case NGAP_DAPSResponseInfo__dapsresponseindicator_daps_ho_not_accepted: |
47 | 0 | return 0; |
48 | 0 | } |
49 | 0 | return -1; |
50 | 0 | } |
51 | | static const unsigned int asn_MAP_NGAP_dapsresponseindicator_enum2value_2[] = { |
52 | | 0, /* daps-ho-accepted(0) */ |
53 | | 1 /* daps-ho-not-accepted(1) */ |
54 | | /* This list is extensible */ |
55 | | }; |
56 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_dapsresponseindicator_specs_2 = { |
57 | | asn_MAP_NGAP_dapsresponseindicator_value2enum_2, /* "tag" => N; sorted by tag */ |
58 | | asn_MAP_NGAP_dapsresponseindicator_enum2value_2, /* N => "tag"; sorted by N */ |
59 | | 2, /* Number of elements in the maps */ |
60 | | 3, /* Extensions before this member */ |
61 | | 1, /* Strict enumeration */ |
62 | | 0, /* Native long size */ |
63 | | 0 |
64 | | }; |
65 | | static const ber_tlv_tag_t asn_DEF_NGAP_dapsresponseindicator_tags_2[] = { |
66 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
67 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
68 | | }; |
69 | | static /* Use -fall-defs-global to expose */ |
70 | | asn_TYPE_descriptor_t asn_DEF_NGAP_dapsresponseindicator_2 = { |
71 | | "dapsresponseindicator", |
72 | | "dapsresponseindicator", |
73 | | &asn_OP_NativeEnumerated, |
74 | | asn_DEF_NGAP_dapsresponseindicator_tags_2, |
75 | | sizeof(asn_DEF_NGAP_dapsresponseindicator_tags_2) |
76 | | /sizeof(asn_DEF_NGAP_dapsresponseindicator_tags_2[0]) - 1, /* 1 */ |
77 | | asn_DEF_NGAP_dapsresponseindicator_tags_2, /* Same as above */ |
78 | | sizeof(asn_DEF_NGAP_dapsresponseindicator_tags_2) |
79 | | /sizeof(asn_DEF_NGAP_dapsresponseindicator_tags_2[0]), /* 2 */ |
80 | | { |
81 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
82 | | 0, |
83 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
84 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
85 | | &asn_PER_type_NGAP_dapsresponseindicator_constr_2, |
86 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
87 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
88 | | 0, |
89 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
90 | | asn_validate_NGAP_dapsresponseindicator_2 |
91 | | }, |
92 | | 0, 0, /* Defined elsewhere */ |
93 | | &asn_SPC_NGAP_dapsresponseindicator_specs_2 /* Additional specs */ |
94 | | }; |
95 | | |
96 | | asn_TYPE_member_t asn_MBR_NGAP_DAPSResponseInfo_1[] = { |
97 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_DAPSResponseInfo, dapsresponseindicator), |
98 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
99 | | -1, /* IMPLICIT tag at current level */ |
100 | | &asn_DEF_NGAP_dapsresponseindicator_2, |
101 | | 0, |
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 | | 0, |
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 | | 0 |
113 | | }, |
114 | | 0, 0, /* No default value */ |
115 | | "dapsresponseindicator" |
116 | | }, |
117 | | { ATF_POINTER, 1, offsetof(struct NGAP_DAPSResponseInfo, iE_Extensions), |
118 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
119 | | -1, /* IMPLICIT tag at current level */ |
120 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P84, |
121 | | 0, |
122 | | { |
123 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
124 | | 0, |
125 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
126 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
127 | | 0, |
128 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
129 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
130 | | 0, |
131 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
132 | | 0 |
133 | | }, |
134 | | 0, 0, /* No default value */ |
135 | | "iE-Extensions" |
136 | | }, |
137 | | }; |
138 | | static const int asn_MAP_NGAP_DAPSResponseInfo_oms_1[] = { 1 }; |
139 | | static const ber_tlv_tag_t asn_DEF_NGAP_DAPSResponseInfo_tags_1[] = { |
140 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
141 | | }; |
142 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_DAPSResponseInfo_tag2el_1[] = { |
143 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dapsresponseindicator */ |
144 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ |
145 | | }; |
146 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_DAPSResponseInfo_specs_1 = { |
147 | | sizeof(struct NGAP_DAPSResponseInfo), |
148 | | offsetof(struct NGAP_DAPSResponseInfo, _asn_ctx), |
149 | | asn_MAP_NGAP_DAPSResponseInfo_tag2el_1, |
150 | | 2, /* Count of tags in the map */ |
151 | | asn_MAP_NGAP_DAPSResponseInfo_oms_1, /* Optional members */ |
152 | | 1, 0, /* Root/Additions */ |
153 | | 2, /* First extension addition */ |
154 | | }; |
155 | | asn_TYPE_descriptor_t asn_DEF_NGAP_DAPSResponseInfo = { |
156 | | "DAPSResponseInfo", |
157 | | "DAPSResponseInfo", |
158 | | &asn_OP_SEQUENCE, |
159 | | asn_DEF_NGAP_DAPSResponseInfo_tags_1, |
160 | | sizeof(asn_DEF_NGAP_DAPSResponseInfo_tags_1) |
161 | | /sizeof(asn_DEF_NGAP_DAPSResponseInfo_tags_1[0]), /* 1 */ |
162 | | asn_DEF_NGAP_DAPSResponseInfo_tags_1, /* Same as above */ |
163 | | sizeof(asn_DEF_NGAP_DAPSResponseInfo_tags_1) |
164 | | /sizeof(asn_DEF_NGAP_DAPSResponseInfo_tags_1[0]), /* 1 */ |
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 | | 0, |
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 | | SEQUENCE_constraint |
176 | | }, |
177 | | asn_MBR_NGAP_DAPSResponseInfo_1, |
178 | | 2, /* Elements count */ |
179 | | &asn_SPC_NGAP_DAPSResponseInfo_specs_1 /* Additional specs */ |
180 | | }; |
181 | | |