/src/open5gs/lib/asn1c/ngap/NGAP_NotificationCell-Item.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_NotificationCell-Item.h" |
9 | | |
10 | | #include "NGAP_NGRAN-CGI.h" |
11 | | #include "NGAP_ProtocolExtensionContainer.h" |
12 | | #ifndef ASN1C_NO_UNSUFFIXED_PDU_ALIAS |
13 | | #if defined(__ELF__) && (defined(__GNUC__) || defined(__clang__)) |
14 | | extern asn_TYPE_descriptor_t asn_DEF_NGAP_notifyFlag __attribute__((weak, alias("asn_DEF_NGAP_notifyFlag_3"))); |
15 | | #else |
16 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_notifyFlag_3; |
17 | | static asn_TYPE_descriptor_t asn_DEF_NGAP_notifyFlag; |
18 | | __attribute__((constructor)) static void asn_DEF_NGAP_notifyFlag_3_alias_init(void) { |
19 | | asn_DEF_NGAP_notifyFlag = asn_DEF_NGAP_notifyFlag_3; |
20 | | } |
21 | | #endif |
22 | | #endif /* ASN1C_NO_UNSUFFIXED_PDU_ALIAS */ |
23 | | /* |
24 | | * This type is implemented using NativeEnumerated, |
25 | | * so here we adjust the DEF accordingly. |
26 | | */ |
27 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
28 | | static asn_per_constraints_t asn_PER_type_NGAP_notifyFlag_constr_3 CC_NOTUSED = { |
29 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */, |
30 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
31 | | 0, 0 /* No PER value map */ |
32 | | }; |
33 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
34 | | static const asn_INTEGER_enum_map_t asn_MAP_NGAP_notifyFlag_value2enum_3[] = { |
35 | | { 0, 9, "activated" }, |
36 | | { 1, 11, "deactivated" } |
37 | | /* This list is extensible */ |
38 | | }; |
39 | | static int asn_validate_NGAP_notifyFlag_3(const asn_TYPE_descriptor_t *td, |
40 | | const void *sptr, |
41 | | asn_app_constraint_failed_f *ctfailcb, |
42 | 0 | void* app_key) { |
43 | 0 | if(! sptr) { return -1; } |
44 | 0 | e_NGAP_NotificationCell_Item__notifyFlag value = *(e_NGAP_NotificationCell_Item__notifyFlag*)sptr; |
45 | 0 | switch(value) { |
46 | 0 | case NGAP_NotificationCell_Item__notifyFlag_activated: |
47 | 0 | case NGAP_NotificationCell_Item__notifyFlag_deactivated: |
48 | 0 | return 0; |
49 | 0 | } |
50 | 0 | return -1; |
51 | 0 | } |
52 | | static const unsigned int asn_MAP_NGAP_notifyFlag_enum2value_3[] = { |
53 | | 0, /* activated(0) */ |
54 | | 1 /* deactivated(1) */ |
55 | | /* This list is extensible */ |
56 | | }; |
57 | | static const asn_INTEGER_specifics_t asn_SPC_NGAP_notifyFlag_specs_3 = { |
58 | | asn_MAP_NGAP_notifyFlag_value2enum_3, /* "tag" => N; sorted by tag */ |
59 | | asn_MAP_NGAP_notifyFlag_enum2value_3, /* N => "tag"; sorted by N */ |
60 | | 2, /* Number of elements in the maps */ |
61 | | 3, /* Extensions before this member */ |
62 | | 1, /* Strict enumeration */ |
63 | | 0, /* Native long size */ |
64 | | 0 |
65 | | }; |
66 | | static const ber_tlv_tag_t asn_DEF_NGAP_notifyFlag_tags_3[] = { |
67 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
68 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
69 | | }; |
70 | | static /* Use -fall-defs-global to expose */ |
71 | | asn_TYPE_descriptor_t asn_DEF_NGAP_notifyFlag_3 = { |
72 | | "notifyFlag", |
73 | | "notifyFlag", |
74 | | &asn_OP_NativeEnumerated, |
75 | | asn_DEF_NGAP_notifyFlag_tags_3, |
76 | | sizeof(asn_DEF_NGAP_notifyFlag_tags_3) |
77 | | /sizeof(asn_DEF_NGAP_notifyFlag_tags_3[0]) - 1, /* 1 */ |
78 | | asn_DEF_NGAP_notifyFlag_tags_3, /* Same as above */ |
79 | | sizeof(asn_DEF_NGAP_notifyFlag_tags_3) |
80 | | /sizeof(asn_DEF_NGAP_notifyFlag_tags_3[0]), /* 2 */ |
81 | | { |
82 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
83 | | 0, |
84 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
85 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
86 | | &asn_PER_type_NGAP_notifyFlag_constr_3, |
87 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
88 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
89 | | 0, |
90 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
91 | | asn_validate_NGAP_notifyFlag_3 |
92 | | }, |
93 | | 0, 0, /* Defined elsewhere */ |
94 | | &asn_SPC_NGAP_notifyFlag_specs_3 /* Additional specs */ |
95 | | }; |
96 | | |
97 | | asn_TYPE_member_t asn_MBR_NGAP_NotificationCell_Item_1[] = { |
98 | | { ATF_POINTER, 0, offsetof(struct NGAP_NotificationCell_Item, nGRAN_CGI), |
99 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
100 | | +1, /* EXPLICIT tag at current level */ |
101 | | &asn_DEF_NGAP_NGRAN_CGI, |
102 | | 0, |
103 | | { |
104 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
105 | | 0, |
106 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
107 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
108 | | 0, |
109 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
110 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
111 | | 0, |
112 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
113 | | 0 |
114 | | }, |
115 | | 0, 0, /* No default value */ |
116 | | "nGRAN-CGI" |
117 | | }, |
118 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_NotificationCell_Item, notifyFlag), |
119 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
120 | | -1, /* IMPLICIT tag at current level */ |
121 | | &asn_DEF_NGAP_notifyFlag_3, |
122 | | 0, |
123 | | { |
124 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
125 | | 0, |
126 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
127 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
128 | | 0, |
129 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
130 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
131 | | 0, |
132 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
133 | | 0 |
134 | | }, |
135 | | 0, 0, /* No default value */ |
136 | | "notifyFlag" |
137 | | }, |
138 | | { ATF_POINTER, 1, offsetof(struct NGAP_NotificationCell_Item, iE_Extensions), |
139 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
140 | | -1, /* IMPLICIT tag at current level */ |
141 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P169, |
142 | | 0, |
143 | | { |
144 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
145 | | 0, |
146 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
147 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
148 | | 0, |
149 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
150 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
151 | | 0, |
152 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
153 | | 0 |
154 | | }, |
155 | | 0, 0, /* No default value */ |
156 | | "iE-Extensions" |
157 | | }, |
158 | | }; |
159 | | static const int asn_MAP_NGAP_NotificationCell_Item_oms_1[] = { 2 }; |
160 | | static const ber_tlv_tag_t asn_DEF_NGAP_NotificationCell_Item_tags_1[] = { |
161 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
162 | | }; |
163 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_NotificationCell_Item_tag2el_1[] = { |
164 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* nGRAN-CGI */ |
165 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* notifyFlag */ |
166 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ |
167 | | }; |
168 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_NotificationCell_Item_specs_1 = { |
169 | | sizeof(struct NGAP_NotificationCell_Item), |
170 | | offsetof(struct NGAP_NotificationCell_Item, _asn_ctx), |
171 | | asn_MAP_NGAP_NotificationCell_Item_tag2el_1, |
172 | | 3, /* Count of tags in the map */ |
173 | | asn_MAP_NGAP_NotificationCell_Item_oms_1, /* Optional members */ |
174 | | 1, 0, /* Root/Additions */ |
175 | | 3, /* First extension addition */ |
176 | | }; |
177 | | asn_TYPE_descriptor_t asn_DEF_NGAP_NotificationCell_Item = { |
178 | | "NotificationCell-Item", |
179 | | "NotificationCell-Item", |
180 | | &asn_OP_SEQUENCE, |
181 | | asn_DEF_NGAP_NotificationCell_Item_tags_1, |
182 | | sizeof(asn_DEF_NGAP_NotificationCell_Item_tags_1) |
183 | | /sizeof(asn_DEF_NGAP_NotificationCell_Item_tags_1[0]), /* 1 */ |
184 | | asn_DEF_NGAP_NotificationCell_Item_tags_1, /* Same as above */ |
185 | | sizeof(asn_DEF_NGAP_NotificationCell_Item_tags_1) |
186 | | /sizeof(asn_DEF_NGAP_NotificationCell_Item_tags_1[0]), /* 1 */ |
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 | | SEQUENCE_constraint |
198 | | }, |
199 | | asn_MBR_NGAP_NotificationCell_Item_1, |
200 | | 3, /* Elements count */ |
201 | | &asn_SPC_NGAP_NotificationCell_Item_specs_1 /* Additional specs */ |
202 | | }; |
203 | | |