2 * Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
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
10 * This type may be used when integer range is limited by subtype constraints.
12 #ifndef _NativeEnumerated_H_
13 #define _NativeEnumerated_H_
15 #include <NativeInteger.h>
21 extern asn_TYPE_descriptor_t asn_DEF_NativeEnumerated;
22 extern asn_TYPE_operation_t asn_OP_NativeEnumerated;
24 #define NativeEnumerated_free NativeInteger_free
26 #if !defined(ASN_DISABLE_PRINT_SUPPORT)
27 #define NativeEnumerated_print NativeInteger_print
28 #endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
30 #define NativeEnumerated_compare NativeInteger_compare
32 #define NativeEnumerated_constraint asn_generic_no_constraint
34 #if !defined(ASN_DISABLE_BER_SUPPORT)
35 #define NativeEnumerated_decode_ber NativeInteger_decode_ber
36 #define NativeEnumerated_encode_der NativeInteger_encode_der
37 #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
39 #if !defined(ASN_DISABLE_XER_SUPPORT)
40 #define NativeEnumerated_decode_xer NativeInteger_decode_xer
41 xer_type_encoder_f NativeEnumerated_encode_xer;
42 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
44 #if !defined(ASN_DISABLE_JER_SUPPORT)
45 jer_type_encoder_f NativeEnumerated_encode_jer;
46 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
48 #if !defined(ASN_DISABLE_OER_SUPPORT)
49 oer_type_decoder_f NativeEnumerated_decode_oer;
50 oer_type_encoder_f NativeEnumerated_encode_oer;
51 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
53 #if !defined(ASN_DISABLE_UPER_SUPPORT)
54 per_type_decoder_f NativeEnumerated_decode_uper;
55 per_type_encoder_f NativeEnumerated_encode_uper;
56 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
57 #if !defined(ASN_DISABLE_APER_SUPPORT)
58 per_type_decoder_f NativeEnumerated_decode_aper;
59 per_type_encoder_f NativeEnumerated_encode_aper;
60 #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
62 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
63 #define NativeEnumerated_random_fill NativeInteger_random_fill
64 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
66 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
67 int NativeEnumerated__compar_value2enum(
70 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
76 #endif /* _NativeEnumerated_H_ */