Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [Enum1] >>> ***/ |
| 3 | |
| 4 | #include <ENUMERATED.h> |
| 5 | |
| 6 | /*** <<< DEPS [Enum1] >>> ***/ |
| 7 | |
| 8 | typedef enum Enum1 { |
| 9 | Enum1_red = 0, |
| 10 | Enum1_green = 1, |
| 11 | Enum1_blue = 4, |
| 12 | Enum1_alpha = 5 |
| 13 | /* |
| 14 | * Enumeration is extensible |
| 15 | */ |
| 16 | } e_Enum1; |
| 17 | |
| 18 | /*** <<< TYPE-DECLS [Enum1] >>> ***/ |
| 19 | |
| 20 | typedef ENUMERATED_t Enum1_t; |
| 21 | |
| 22 | /*** <<< FUNC-DECLS [Enum1] >>> ***/ |
| 23 | |
| 24 | extern asn_TYPE_descriptor_t asn_DEF_Enum1; |
| 25 | asn_struct_free_f Enum1_free; |
| 26 | asn_struct_print_f Enum1_print; |
| 27 | asn_constr_check_f Enum1_constraint; |
| 28 | ber_type_decoder_f Enum1_decode_ber; |
| 29 | der_type_encoder_f Enum1_encode_der; |
| 30 | xer_type_decoder_f Enum1_decode_xer; |
| 31 | xer_type_encoder_f Enum1_encode_xer; |
| 32 | |
| 33 | /*** <<< CODE [Enum1] >>> ***/ |
| 34 | |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 35 | /* |
| 36 | * This type is implemented using ENUMERATED, |
| 37 | * so here we adjust the DEF accordingly. |
| 38 | */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 39 | |
| 40 | /*** <<< STAT-DEFS [Enum1] >>> ***/ |
| 41 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 42 | static const asn_INTEGER_enum_map_t asn_MAP_Enum1_value2enum_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 43 | { 0, 3, "red" }, |
| 44 | { 1, 5, "green" }, |
| 45 | { 4, 4, "blue" }, |
| 46 | { 5, 5, "alpha" } |
| 47 | /* This list is extensible */ |
| 48 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 49 | static const unsigned int asn_MAP_Enum1_enum2value_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 50 | 3, /* alpha(5) */ |
| 51 | 2, /* blue(4) */ |
| 52 | 1, /* green(1) */ |
| 53 | 0 /* red(0) */ |
| 54 | /* This list is extensible */ |
| 55 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 56 | static const asn_INTEGER_specifics_t asn_SPC_Enum1_specs_1 = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 57 | asn_MAP_Enum1_value2enum_1, /* "tag" => N; sorted by tag */ |
| 58 | asn_MAP_Enum1_enum2value_1, /* N => "tag"; sorted by N */ |
| 59 | 4, /* Number of elements in the maps */ |
| 60 | 5, /* Extensions before this member */ |
| 61 | 1, /* Strict enumeration */ |
| 62 | 0, /* Native long size */ |
| 63 | 0 |
| 64 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 65 | static const ber_tlv_tag_t asn_DEF_Enum1_tags_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 66 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 67 | }; |
| 68 | asn_TYPE_descriptor_t asn_DEF_Enum1 = { |
| 69 | "Enum1", |
| 70 | "Enum1", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 71 | ENUMERATED_free, |
| 72 | ENUMERATED_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 73 | ENUMERATED_compare, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 74 | ENUMERATED_constraint, |
| 75 | ENUMERATED_decode_ber, |
| 76 | ENUMERATED_encode_der, |
| 77 | ENUMERATED_decode_xer, |
| 78 | ENUMERATED_encode_xer, |
Lev Walkin | a46ab9c | 2017-07-06 07:57:15 -0700 | [diff] [blame] | 79 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 80 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 81 | 0, /* Use generic outmost tag fetcher */ |
| 82 | asn_DEF_Enum1_tags_1, |
| 83 | sizeof(asn_DEF_Enum1_tags_1) |
| 84 | /sizeof(asn_DEF_Enum1_tags_1[0]), /* 1 */ |
| 85 | asn_DEF_Enum1_tags_1, /* Same as above */ |
| 86 | sizeof(asn_DEF_Enum1_tags_1) |
| 87 | /sizeof(asn_DEF_Enum1_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 88 | 0, /* No OER visible constraints */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 89 | 0, /* No PER visible constraints */ |
| 90 | 0, 0, /* Defined elsewhere */ |
| 91 | &asn_SPC_Enum1_specs_1 /* Additional specs */ |
| 92 | }; |
| 93 | |
| 94 | |
| 95 | /*** <<< INCLUDES [Enum2] >>> ***/ |
| 96 | |
| 97 | #include <ENUMERATED.h> |
| 98 | |
| 99 | /*** <<< DEPS [Enum2] >>> ***/ |
| 100 | |
| 101 | typedef enum Enum2 { |
| 102 | Enum2_red = 0, |
| 103 | Enum2_green = 1, |
| 104 | Enum2_blue = 45, |
| 105 | Enum2_orange = 23, |
| 106 | Enum2_alpha = 46, |
| 107 | /* |
| 108 | * Enumeration is extensible |
| 109 | */ |
| 110 | Enum2_beta = 12, |
| 111 | Enum2_gamma = 103 |
| 112 | } e_Enum2; |
| 113 | |
| 114 | /*** <<< TYPE-DECLS [Enum2] >>> ***/ |
| 115 | |
| 116 | typedef ENUMERATED_t Enum2_t; |
| 117 | |
| 118 | /*** <<< FUNC-DECLS [Enum2] >>> ***/ |
| 119 | |
| 120 | extern asn_TYPE_descriptor_t asn_DEF_Enum2; |
| 121 | asn_struct_free_f Enum2_free; |
| 122 | asn_struct_print_f Enum2_print; |
| 123 | asn_constr_check_f Enum2_constraint; |
| 124 | ber_type_decoder_f Enum2_decode_ber; |
| 125 | der_type_encoder_f Enum2_encode_der; |
| 126 | xer_type_decoder_f Enum2_decode_xer; |
| 127 | xer_type_encoder_f Enum2_encode_xer; |
| 128 | |
| 129 | /*** <<< CODE [Enum2] >>> ***/ |
| 130 | |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 131 | /* |
| 132 | * This type is implemented using ENUMERATED, |
| 133 | * so here we adjust the DEF accordingly. |
| 134 | */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 135 | |
| 136 | /*** <<< STAT-DEFS [Enum2] >>> ***/ |
| 137 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 138 | static const asn_INTEGER_enum_map_t asn_MAP_Enum2_value2enum_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 139 | { 0, 3, "red" }, |
| 140 | { 1, 5, "green" }, |
| 141 | { 12, 4, "beta" }, |
| 142 | { 23, 6, "orange" }, |
| 143 | { 45, 4, "blue" }, |
| 144 | { 46, 5, "alpha" }, |
| 145 | { 103, 5, "gamma" } |
| 146 | /* This list is extensible */ |
| 147 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 148 | static const unsigned int asn_MAP_Enum2_enum2value_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 149 | 5, /* alpha(46) */ |
| 150 | 2, /* beta(12) */ |
| 151 | 4, /* blue(45) */ |
| 152 | 6, /* gamma(103) */ |
| 153 | 1, /* green(1) */ |
| 154 | 3, /* orange(23) */ |
| 155 | 0 /* red(0) */ |
| 156 | /* This list is extensible */ |
| 157 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 158 | static const asn_INTEGER_specifics_t asn_SPC_Enum2_specs_1 = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 159 | asn_MAP_Enum2_value2enum_1, /* "tag" => N; sorted by tag */ |
| 160 | asn_MAP_Enum2_enum2value_1, /* N => "tag"; sorted by N */ |
| 161 | 7, /* Number of elements in the maps */ |
| 162 | 6, /* Extensions before this member */ |
| 163 | 1, /* Strict enumeration */ |
| 164 | 0, /* Native long size */ |
| 165 | 0 |
| 166 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 167 | static const ber_tlv_tag_t asn_DEF_Enum2_tags_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 168 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 169 | }; |
| 170 | asn_TYPE_descriptor_t asn_DEF_Enum2 = { |
| 171 | "Enum2", |
| 172 | "Enum2", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 173 | ENUMERATED_free, |
| 174 | ENUMERATED_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 175 | ENUMERATED_compare, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 176 | ENUMERATED_constraint, |
| 177 | ENUMERATED_decode_ber, |
| 178 | ENUMERATED_encode_der, |
| 179 | ENUMERATED_decode_xer, |
| 180 | ENUMERATED_encode_xer, |
Lev Walkin | a46ab9c | 2017-07-06 07:57:15 -0700 | [diff] [blame] | 181 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 182 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 183 | 0, /* Use generic outmost tag fetcher */ |
| 184 | asn_DEF_Enum2_tags_1, |
| 185 | sizeof(asn_DEF_Enum2_tags_1) |
| 186 | /sizeof(asn_DEF_Enum2_tags_1[0]), /* 1 */ |
| 187 | asn_DEF_Enum2_tags_1, /* Same as above */ |
| 188 | sizeof(asn_DEF_Enum2_tags_1) |
| 189 | /sizeof(asn_DEF_Enum2_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 190 | 0, /* No OER visible constraints */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 191 | 0, /* No PER visible constraints */ |
| 192 | 0, 0, /* Defined elsewhere */ |
| 193 | &asn_SPC_Enum2_specs_1 /* Additional specs */ |
| 194 | }; |
| 195 | |
| 196 | |
| 197 | /*** <<< INCLUDES [Enum3] >>> ***/ |
| 198 | |
| 199 | #include <ENUMERATED.h> |
| 200 | |
| 201 | /*** <<< DEPS [Enum3] >>> ***/ |
| 202 | |
| 203 | typedef enum Enum3 { |
| 204 | Enum3_a = 0, |
| 205 | Enum3_b = 3, |
| 206 | /* |
| 207 | * Enumeration is extensible |
| 208 | */ |
| 209 | Enum3_c = 1 |
| 210 | } e_Enum3; |
| 211 | |
| 212 | /*** <<< TYPE-DECLS [Enum3] >>> ***/ |
| 213 | |
| 214 | typedef ENUMERATED_t Enum3_t; |
| 215 | |
| 216 | /*** <<< FUNC-DECLS [Enum3] >>> ***/ |
| 217 | |
| 218 | extern asn_TYPE_descriptor_t asn_DEF_Enum3; |
| 219 | asn_struct_free_f Enum3_free; |
| 220 | asn_struct_print_f Enum3_print; |
| 221 | asn_constr_check_f Enum3_constraint; |
| 222 | ber_type_decoder_f Enum3_decode_ber; |
| 223 | der_type_encoder_f Enum3_encode_der; |
| 224 | xer_type_decoder_f Enum3_decode_xer; |
| 225 | xer_type_encoder_f Enum3_encode_xer; |
| 226 | |
| 227 | /*** <<< CODE [Enum3] >>> ***/ |
| 228 | |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 229 | /* |
| 230 | * This type is implemented using ENUMERATED, |
| 231 | * so here we adjust the DEF accordingly. |
| 232 | */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 233 | |
| 234 | /*** <<< STAT-DEFS [Enum3] >>> ***/ |
| 235 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 236 | static const asn_INTEGER_enum_map_t asn_MAP_Enum3_value2enum_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 237 | { 0, 1, "a" }, |
| 238 | { 1, 1, "c" }, |
| 239 | { 3, 1, "b" } |
| 240 | /* This list is extensible */ |
| 241 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 242 | static const unsigned int asn_MAP_Enum3_enum2value_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 243 | 0, /* a(0) */ |
| 244 | 2, /* b(3) */ |
| 245 | 1 /* c(1) */ |
| 246 | /* This list is extensible */ |
| 247 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 248 | static const asn_INTEGER_specifics_t asn_SPC_Enum3_specs_1 = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 249 | asn_MAP_Enum3_value2enum_1, /* "tag" => N; sorted by tag */ |
| 250 | asn_MAP_Enum3_enum2value_1, /* N => "tag"; sorted by N */ |
| 251 | 3, /* Number of elements in the maps */ |
| 252 | 3, /* Extensions before this member */ |
| 253 | 1, /* Strict enumeration */ |
| 254 | 0, /* Native long size */ |
| 255 | 0 |
| 256 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 257 | static const ber_tlv_tag_t asn_DEF_Enum3_tags_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 258 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 259 | }; |
| 260 | asn_TYPE_descriptor_t asn_DEF_Enum3 = { |
| 261 | "Enum3", |
| 262 | "Enum3", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 263 | ENUMERATED_free, |
| 264 | ENUMERATED_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 265 | ENUMERATED_compare, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 266 | ENUMERATED_constraint, |
| 267 | ENUMERATED_decode_ber, |
| 268 | ENUMERATED_encode_der, |
| 269 | ENUMERATED_decode_xer, |
| 270 | ENUMERATED_encode_xer, |
Lev Walkin | a46ab9c | 2017-07-06 07:57:15 -0700 | [diff] [blame] | 271 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 272 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 273 | 0, /* Use generic outmost tag fetcher */ |
| 274 | asn_DEF_Enum3_tags_1, |
| 275 | sizeof(asn_DEF_Enum3_tags_1) |
| 276 | /sizeof(asn_DEF_Enum3_tags_1[0]), /* 1 */ |
| 277 | asn_DEF_Enum3_tags_1, /* Same as above */ |
| 278 | sizeof(asn_DEF_Enum3_tags_1) |
| 279 | /sizeof(asn_DEF_Enum3_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 280 | 0, /* No OER visible constraints */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 281 | 0, /* No PER visible constraints */ |
| 282 | 0, 0, /* Defined elsewhere */ |
| 283 | &asn_SPC_Enum3_specs_1 /* Additional specs */ |
| 284 | }; |
| 285 | |
| 286 | |
| 287 | /*** <<< INCLUDES [Enum4] >>> ***/ |
| 288 | |
| 289 | #include <ENUMERATED.h> |
| 290 | |
| 291 | /*** <<< DEPS [Enum4] >>> ***/ |
| 292 | |
| 293 | typedef enum Enum4 { |
| 294 | Enum4_a = 0, |
| 295 | Enum4_b = 1, |
| 296 | /* |
| 297 | * Enumeration is extensible |
| 298 | */ |
| 299 | Enum4_c = 3, |
| 300 | Enum4_d = 4 |
| 301 | } e_Enum4; |
| 302 | |
| 303 | /*** <<< TYPE-DECLS [Enum4] >>> ***/ |
| 304 | |
| 305 | typedef ENUMERATED_t Enum4_t; |
| 306 | |
| 307 | /*** <<< FUNC-DECLS [Enum4] >>> ***/ |
| 308 | |
| 309 | extern asn_TYPE_descriptor_t asn_DEF_Enum4; |
| 310 | asn_struct_free_f Enum4_free; |
| 311 | asn_struct_print_f Enum4_print; |
| 312 | asn_constr_check_f Enum4_constraint; |
| 313 | ber_type_decoder_f Enum4_decode_ber; |
| 314 | der_type_encoder_f Enum4_encode_der; |
| 315 | xer_type_decoder_f Enum4_decode_xer; |
| 316 | xer_type_encoder_f Enum4_encode_xer; |
| 317 | |
| 318 | /*** <<< CODE [Enum4] >>> ***/ |
| 319 | |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 320 | /* |
| 321 | * This type is implemented using ENUMERATED, |
| 322 | * so here we adjust the DEF accordingly. |
| 323 | */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 324 | |
| 325 | /*** <<< STAT-DEFS [Enum4] >>> ***/ |
| 326 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 327 | static const asn_INTEGER_enum_map_t asn_MAP_Enum4_value2enum_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 328 | { 0, 1, "a" }, |
| 329 | { 1, 1, "b" }, |
| 330 | { 3, 1, "c" }, |
| 331 | { 4, 1, "d" } |
| 332 | /* This list is extensible */ |
| 333 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 334 | static const unsigned int asn_MAP_Enum4_enum2value_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 335 | 0, /* a(0) */ |
| 336 | 1, /* b(1) */ |
| 337 | 2, /* c(3) */ |
| 338 | 3 /* d(4) */ |
| 339 | /* This list is extensible */ |
| 340 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 341 | static const asn_INTEGER_specifics_t asn_SPC_Enum4_specs_1 = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 342 | asn_MAP_Enum4_value2enum_1, /* "tag" => N; sorted by tag */ |
| 343 | asn_MAP_Enum4_enum2value_1, /* N => "tag"; sorted by N */ |
| 344 | 4, /* Number of elements in the maps */ |
| 345 | 3, /* Extensions before this member */ |
| 346 | 1, /* Strict enumeration */ |
| 347 | 0, /* Native long size */ |
| 348 | 0 |
| 349 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 350 | static const ber_tlv_tag_t asn_DEF_Enum4_tags_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 351 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 352 | }; |
| 353 | asn_TYPE_descriptor_t asn_DEF_Enum4 = { |
| 354 | "Enum4", |
| 355 | "Enum4", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 356 | ENUMERATED_free, |
| 357 | ENUMERATED_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 358 | ENUMERATED_compare, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 359 | ENUMERATED_constraint, |
| 360 | ENUMERATED_decode_ber, |
| 361 | ENUMERATED_encode_der, |
| 362 | ENUMERATED_decode_xer, |
| 363 | ENUMERATED_encode_xer, |
Lev Walkin | a46ab9c | 2017-07-06 07:57:15 -0700 | [diff] [blame] | 364 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 365 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 366 | 0, /* Use generic outmost tag fetcher */ |
| 367 | asn_DEF_Enum4_tags_1, |
| 368 | sizeof(asn_DEF_Enum4_tags_1) |
| 369 | /sizeof(asn_DEF_Enum4_tags_1[0]), /* 1 */ |
| 370 | asn_DEF_Enum4_tags_1, /* Same as above */ |
| 371 | sizeof(asn_DEF_Enum4_tags_1) |
| 372 | /sizeof(asn_DEF_Enum4_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 373 | 0, /* No OER visible constraints */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 374 | 0, /* No PER visible constraints */ |
| 375 | 0, 0, /* Defined elsewhere */ |
| 376 | &asn_SPC_Enum4_specs_1 /* Additional specs */ |
| 377 | }; |
| 378 | |
| 379 | |
| 380 | /*** <<< INCLUDES [Enum5] >>> ***/ |
| 381 | |
| 382 | #include <ENUMERATED.h> |
| 383 | |
| 384 | /*** <<< DEPS [Enum5] >>> ***/ |
| 385 | |
| 386 | typedef enum Enum5 { |
| 387 | Enum5_a = 0, |
| 388 | Enum5_z = 25, |
| 389 | /* |
| 390 | * Enumeration is extensible |
| 391 | */ |
| 392 | Enum5_d = 26 |
| 393 | } e_Enum5; |
| 394 | |
| 395 | /*** <<< TYPE-DECLS [Enum5] >>> ***/ |
| 396 | |
| 397 | typedef ENUMERATED_t Enum5_t; |
| 398 | |
| 399 | /*** <<< FUNC-DECLS [Enum5] >>> ***/ |
| 400 | |
| 401 | extern asn_TYPE_descriptor_t asn_DEF_Enum5; |
| 402 | asn_struct_free_f Enum5_free; |
| 403 | asn_struct_print_f Enum5_print; |
| 404 | asn_constr_check_f Enum5_constraint; |
| 405 | ber_type_decoder_f Enum5_decode_ber; |
| 406 | der_type_encoder_f Enum5_encode_der; |
| 407 | xer_type_decoder_f Enum5_decode_xer; |
| 408 | xer_type_encoder_f Enum5_encode_xer; |
| 409 | |
| 410 | /*** <<< CODE [Enum5] >>> ***/ |
| 411 | |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 412 | /* |
| 413 | * This type is implemented using ENUMERATED, |
| 414 | * so here we adjust the DEF accordingly. |
| 415 | */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 416 | |
| 417 | /*** <<< STAT-DEFS [Enum5] >>> ***/ |
| 418 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 419 | static const asn_INTEGER_enum_map_t asn_MAP_Enum5_value2enum_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 420 | { 0, 1, "a" }, |
| 421 | { 25, 1, "z" }, |
| 422 | { 26, 1, "d" } |
| 423 | /* This list is extensible */ |
| 424 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 425 | static const unsigned int asn_MAP_Enum5_enum2value_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 426 | 0, /* a(0) */ |
| 427 | 2, /* d(26) */ |
| 428 | 1 /* z(25) */ |
| 429 | /* This list is extensible */ |
| 430 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 431 | static const asn_INTEGER_specifics_t asn_SPC_Enum5_specs_1 = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 432 | asn_MAP_Enum5_value2enum_1, /* "tag" => N; sorted by tag */ |
| 433 | asn_MAP_Enum5_enum2value_1, /* N => "tag"; sorted by N */ |
| 434 | 3, /* Number of elements in the maps */ |
| 435 | 3, /* Extensions before this member */ |
| 436 | 1, /* Strict enumeration */ |
| 437 | 0, /* Native long size */ |
| 438 | 0 |
| 439 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 440 | static const ber_tlv_tag_t asn_DEF_Enum5_tags_1[] = { |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 441 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 442 | }; |
| 443 | asn_TYPE_descriptor_t asn_DEF_Enum5 = { |
| 444 | "Enum5", |
| 445 | "Enum5", |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 446 | ENUMERATED_free, |
| 447 | ENUMERATED_print, |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 448 | ENUMERATED_compare, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 449 | ENUMERATED_constraint, |
| 450 | ENUMERATED_decode_ber, |
| 451 | ENUMERATED_encode_der, |
| 452 | ENUMERATED_decode_xer, |
| 453 | ENUMERATED_encode_xer, |
Lev Walkin | a46ab9c | 2017-07-06 07:57:15 -0700 | [diff] [blame] | 454 | 0, 0, /* No OER support, use "-gen-OER" to enable */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 455 | 0, 0, /* No PER support, use "-gen-PER" to enable */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 456 | 0, /* Use generic outmost tag fetcher */ |
| 457 | asn_DEF_Enum5_tags_1, |
| 458 | sizeof(asn_DEF_Enum5_tags_1) |
| 459 | /sizeof(asn_DEF_Enum5_tags_1[0]), /* 1 */ |
| 460 | asn_DEF_Enum5_tags_1, /* Same as above */ |
| 461 | sizeof(asn_DEF_Enum5_tags_1) |
| 462 | /sizeof(asn_DEF_Enum5_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 463 | 0, /* No OER visible constraints */ |
Lev Walkin | ffe79f4 | 2010-10-25 00:10:34 -0700 | [diff] [blame] | 464 | 0, /* No PER visible constraints */ |
| 465 | 0, 0, /* Defined elsewhere */ |
| 466 | &asn_SPC_Enum5_specs_1 /* Additional specs */ |
| 467 | }; |
| 468 | |