/src/open5gs/lib/asn1c/s1ap/S1AP_DAPSRequestInfo.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 "S1AP-IEs" |
4 | | * found in "../support/s1ap-r19.1.0/36413-j10.asn" |
5 | | * `asn1c -pdu=all -fprefix=S1AP_ -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 "S1AP_DAPSRequestInfo.h" |
9 | | |
10 | | #include "S1AP_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_S1AP_dAPSIndicator __attribute__((weak, alias("asn_DEF_S1AP_dAPSIndicator_2"))); |
14 | | #else |
15 | | static asn_TYPE_descriptor_t asn_DEF_S1AP_dAPSIndicator_2; |
16 | | static asn_TYPE_descriptor_t asn_DEF_S1AP_dAPSIndicator; |
17 | | __attribute__((constructor)) static void asn_DEF_S1AP_dAPSIndicator_2_alias_init(void) { |
18 | | asn_DEF_S1AP_dAPSIndicator = asn_DEF_S1AP_dAPSIndicator_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_S1AP_dAPSIndicator_constr_2 CC_NOTUSED = { |
28 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */, |
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_S1AP_dAPSIndicator_value2enum_2[] = { |
34 | | { 0, 16, "dAPS-HO-required" } |
35 | | /* This list is extensible */ |
36 | | }; |
37 | | static int asn_validate_S1AP_dAPSIndicator_2(const asn_TYPE_descriptor_t *td, |
38 | | const void *sptr, |
39 | | asn_app_constraint_failed_f *ctfailcb, |
40 | 0 | void* app_key) { |
41 | 0 | if(! sptr) { return -1; } |
42 | 0 | e_S1AP_DAPSRequestInfo__dAPSIndicator value = *(e_S1AP_DAPSRequestInfo__dAPSIndicator*)sptr; |
43 | 0 | switch(value) { |
44 | 0 | case S1AP_DAPSRequestInfo__dAPSIndicator_dAPS_HO_required: |
45 | 0 | return 0; |
46 | 0 | } |
47 | 0 | return -1; |
48 | 0 | } |
49 | | static const unsigned int asn_MAP_S1AP_dAPSIndicator_enum2value_2[] = { |
50 | | 0 /* dAPS-HO-required(0) */ |
51 | | /* This list is extensible */ |
52 | | }; |
53 | | static const asn_INTEGER_specifics_t asn_SPC_S1AP_dAPSIndicator_specs_2 = { |
54 | | asn_MAP_S1AP_dAPSIndicator_value2enum_2, /* "tag" => N; sorted by tag */ |
55 | | asn_MAP_S1AP_dAPSIndicator_enum2value_2, /* N => "tag"; sorted by N */ |
56 | | 1, /* Number of elements in the maps */ |
57 | | 2, /* Extensions before this member */ |
58 | | 1, /* Strict enumeration */ |
59 | | 0, /* Native long size */ |
60 | | 0 |
61 | | }; |
62 | | static const ber_tlv_tag_t asn_DEF_S1AP_dAPSIndicator_tags_2[] = { |
63 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
64 | | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
65 | | }; |
66 | | static /* Use -fall-defs-global to expose */ |
67 | | asn_TYPE_descriptor_t asn_DEF_S1AP_dAPSIndicator_2 = { |
68 | | "dAPSIndicator", |
69 | | "dAPSIndicator", |
70 | | &asn_OP_NativeEnumerated, |
71 | | asn_DEF_S1AP_dAPSIndicator_tags_2, |
72 | | sizeof(asn_DEF_S1AP_dAPSIndicator_tags_2) |
73 | | /sizeof(asn_DEF_S1AP_dAPSIndicator_tags_2[0]) - 1, /* 1 */ |
74 | | asn_DEF_S1AP_dAPSIndicator_tags_2, /* Same as above */ |
75 | | sizeof(asn_DEF_S1AP_dAPSIndicator_tags_2) |
76 | | /sizeof(asn_DEF_S1AP_dAPSIndicator_tags_2[0]), /* 2 */ |
77 | | { |
78 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
79 | | 0, |
80 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
81 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
82 | | &asn_PER_type_S1AP_dAPSIndicator_constr_2, |
83 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
84 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
85 | | 0, |
86 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
87 | | asn_validate_S1AP_dAPSIndicator_2 |
88 | | }, |
89 | | 0, 0, /* Defined elsewhere */ |
90 | | &asn_SPC_S1AP_dAPSIndicator_specs_2 /* Additional specs */ |
91 | | }; |
92 | | |
93 | | asn_TYPE_member_t asn_MBR_S1AP_DAPSRequestInfo_1[] = { |
94 | | { ATF_NOFLAGS, 0, offsetof(struct S1AP_DAPSRequestInfo, dAPSIndicator), |
95 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
96 | | -1, /* IMPLICIT tag at current level */ |
97 | | &asn_DEF_S1AP_dAPSIndicator_2, |
98 | | 0, |
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 | | 0, |
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 | | 0 |
110 | | }, |
111 | | 0, 0, /* No default value */ |
112 | | "dAPSIndicator" |
113 | | }, |
114 | | { ATF_POINTER, 1, offsetof(struct S1AP_DAPSRequestInfo, iE_Extensions), |
115 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
116 | | -1, /* IMPLICIT tag at current level */ |
117 | | &asn_DEF_S1AP_ProtocolExtensionContainer_8386P49, |
118 | | 0, |
119 | | { |
120 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
121 | | 0, |
122 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
123 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
124 | | 0, |
125 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
126 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
127 | | 0, |
128 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
129 | | 0 |
130 | | }, |
131 | | 0, 0, /* No default value */ |
132 | | "iE-Extensions" |
133 | | }, |
134 | | }; |
135 | | static const int asn_MAP_S1AP_DAPSRequestInfo_oms_1[] = { 1 }; |
136 | | static const ber_tlv_tag_t asn_DEF_S1AP_DAPSRequestInfo_tags_1[] = { |
137 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
138 | | }; |
139 | | static const asn_TYPE_tag2member_t asn_MAP_S1AP_DAPSRequestInfo_tag2el_1[] = { |
140 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dAPSIndicator */ |
141 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ |
142 | | }; |
143 | | asn_SEQUENCE_specifics_t asn_SPC_S1AP_DAPSRequestInfo_specs_1 = { |
144 | | sizeof(struct S1AP_DAPSRequestInfo), |
145 | | offsetof(struct S1AP_DAPSRequestInfo, _asn_ctx), |
146 | | asn_MAP_S1AP_DAPSRequestInfo_tag2el_1, |
147 | | 2, /* Count of tags in the map */ |
148 | | asn_MAP_S1AP_DAPSRequestInfo_oms_1, /* Optional members */ |
149 | | 1, 0, /* Root/Additions */ |
150 | | 2, /* First extension addition */ |
151 | | }; |
152 | | asn_TYPE_descriptor_t asn_DEF_S1AP_DAPSRequestInfo = { |
153 | | "DAPSRequestInfo", |
154 | | "DAPSRequestInfo", |
155 | | &asn_OP_SEQUENCE, |
156 | | asn_DEF_S1AP_DAPSRequestInfo_tags_1, |
157 | | sizeof(asn_DEF_S1AP_DAPSRequestInfo_tags_1) |
158 | | /sizeof(asn_DEF_S1AP_DAPSRequestInfo_tags_1[0]), /* 1 */ |
159 | | asn_DEF_S1AP_DAPSRequestInfo_tags_1, /* Same as above */ |
160 | | sizeof(asn_DEF_S1AP_DAPSRequestInfo_tags_1) |
161 | | /sizeof(asn_DEF_S1AP_DAPSRequestInfo_tags_1[0]), /* 1 */ |
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 | | 0, |
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 | | SEQUENCE_constraint |
173 | | }, |
174 | | asn_MBR_S1AP_DAPSRequestInfo_1, |
175 | | 2, /* Elements count */ |
176 | | &asn_SPC_S1AP_DAPSRequestInfo_specs_1 /* Additional specs */ |
177 | | }; |
178 | | |