1 /*****************************************************************************
3 # Copyright 2019 AT&T Intellectual Property *
5 # Licensed under the Apache License, Version 2.0 (the "License"); *
6 # you may not use this file except in compliance with the License. *
7 # You may obtain a copy of the License at *
9 # http://www.apache.org/licenses/LICENSE-2.0 *
11 # Unless required by applicable law or agreed to in writing, software *
12 # distributed under the License is distributed on an "AS IS" BASIS, *
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14 # See the License for the specific language governing permissions and *
15 # limitations under the License. *
17 ******************************************************************************/
20 * Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
21 * Redistribution and modifications are permitted subject to BSD license.
24 * This type differs from the standard ENUMERATED in that it is modelled using
25 * the fixed machine type (long, int, short), so it can hold only values of
26 * limited length. There is no type (i.e., NativeEnumerated_t, any integer type
28 * This type may be used when integer range is limited by subtype constraints.
30 #ifndef _NativeEnumerated_H_
31 #define _NativeEnumerated_H_
33 #include <NativeInteger.h>
39 extern asn_TYPE_descriptor_t asn_DEF_NativeEnumerated;
40 extern asn_TYPE_operation_t asn_OP_NativeEnumerated;
42 xer_type_encoder_f NativeEnumerated_encode_xer;
43 oer_type_decoder_f NativeEnumerated_decode_oer;
44 oer_type_encoder_f NativeEnumerated_encode_oer;
45 per_type_decoder_f NativeEnumerated_decode_uper;
46 per_type_encoder_f NativeEnumerated_encode_uper;
47 per_type_decoder_f NativeEnumerated_decode_aper;
48 per_type_encoder_f NativeEnumerated_encode_aper;
50 #define NativeEnumerated_free NativeInteger_free
51 #define NativeEnumerated_print NativeInteger_print
52 #define NativeEnumerated_compare NativeInteger_compare
53 #define NativeEnumerated_random_fill NativeInteger_random_fill
54 #define NativeEnumerated_constraint asn_generic_no_constraint
55 #define NativeEnumerated_decode_ber NativeInteger_decode_ber
56 #define NativeEnumerated_encode_der NativeInteger_encode_der
57 #define NativeEnumerated_decode_xer NativeInteger_decode_xer
63 #endif /* _NativeEnumerated_H_ */