Peter Szilagyi | fbc56f9 | 2019-07-23 19:29:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved. |
| 3 | * Redistribution and modifications are permitted subject to BSD license. |
| 4 | */ |
| 5 | /* |
| 6 | * This type differs from the standard ENUMERATED in that it is modelled using |
| 7 | * the fixed machine type (long, int, short), so it can hold only values of |
| 8 | * limited length. There is no type (i.e., NativeEnumerated_t, any integer type |
| 9 | * will do). |
| 10 | * This type may be used when integer range is limited by subtype constraints. |
| 11 | */ |
| 12 | #ifndef _NativeEnumerated_H_ |
| 13 | #define _NativeEnumerated_H_ |
| 14 | |
| 15 | #include <NativeInteger.h> |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | extern asn_TYPE_descriptor_t asn_DEF_NativeEnumerated; |
| 22 | extern asn_TYPE_operation_t asn_OP_NativeEnumerated; |
| 23 | |
| 24 | xer_type_encoder_f NativeEnumerated_encode_xer; |
| 25 | oer_type_decoder_f NativeEnumerated_decode_oer; |
| 26 | oer_type_encoder_f NativeEnumerated_encode_oer; |
| 27 | per_type_decoder_f NativeEnumerated_decode_uper; |
| 28 | per_type_encoder_f NativeEnumerated_encode_uper; |
| 29 | per_type_decoder_f NativeEnumerated_decode_aper; |
| 30 | per_type_encoder_f NativeEnumerated_encode_aper; |
| 31 | |
| 32 | #define NativeEnumerated_free NativeInteger_free |
| 33 | #define NativeEnumerated_print NativeInteger_print |
| 34 | #define NativeEnumerated_compare NativeInteger_compare |
| 35 | #define NativeEnumerated_random_fill NativeInteger_random_fill |
| 36 | #define NativeEnumerated_constraint asn_generic_no_constraint |
| 37 | #define NativeEnumerated_decode_ber NativeInteger_decode_ber |
| 38 | #define NativeEnumerated_encode_der NativeInteger_encode_der |
| 39 | #define NativeEnumerated_decode_xer NativeInteger_decode_xer |
| 40 | |
| 41 | #ifdef __cplusplus |
| 42 | } |
| 43 | #endif |
| 44 | |
| 45 | #endif /* _NativeEnumerated_H_ */ |