NativeEnumerated.h
Go to the documentation of this file.
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 
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
24 
25 #define NativeEnumerated_free NativeInteger_free
26 
27 #if !defined(ASN_DISABLE_PRINT_SUPPORT)
28 #define NativeEnumerated_print NativeInteger_print
29 #endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
30 
31 #define NativeEnumerated_compare NativeInteger_compare
32 #define NativeEnumerated_copy NativeInteger_copy
33 
34 #define NativeEnumerated_constraint asn_generic_no_constraint
35 
36 #if !defined(ASN_DISABLE_BER_SUPPORT)
37 #define NativeEnumerated_decode_ber NativeInteger_decode_ber
38 #define NativeEnumerated_encode_der NativeInteger_encode_der
39 #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
40 
41 #if !defined(ASN_DISABLE_XER_SUPPORT)
42 #define NativeEnumerated_decode_xer NativeInteger_decode_xer
43 xer_type_encoder_f NativeEnumerated_encode_xer;
44 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
45 
46 #if !defined(ASN_DISABLE_JER_SUPPORT)
49 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
50 
51 #if !defined(ASN_DISABLE_OER_SUPPORT)
52 oer_type_decoder_f NativeEnumerated_decode_oer;
53 oer_type_encoder_f NativeEnumerated_encode_oer;
54 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
55 
56 #if !defined(ASN_DISABLE_UPER_SUPPORT)
59 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
60 #if !defined(ASN_DISABLE_APER_SUPPORT)
63 #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
64 
65 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
66 #define NativeEnumerated_random_fill NativeInteger_random_fill
67 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
68 
69 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
71  const void *ap,
72  const void *bp);
73 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* _NativeEnumerated_H_ */
per_type_decoder_f
asn_dec_rval_t() per_type_decoder_f(const asn_codec_ctx_t *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, const asn_per_constraints_t *constraints, void **struct_ptr, asn_per_data_t *per_data)
Definition: per_decoder.h:20
asn_TYPE_operation_s
Definition: constr_TYPE.h:184
NativeEnumerated_encode_xer
xer_type_encoder_f NativeEnumerated_encode_xer
Definition: NativeEnumerated.h:43
NativeEnumerated__compar_value2enum
int NativeEnumerated__compar_value2enum(const void *ap, const void *bp)
Definition: NativeEnumerated.c:105
NativeEnumerated_decode_uper
per_type_decoder_f NativeEnumerated_decode_uper
Definition: NativeEnumerated.h:57
NativeEnumerated_decode_aper
per_type_decoder_f NativeEnumerated_decode_aper
Definition: NativeEnumerated.h:61
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
NativeEnumerated_encode_oer
oer_type_encoder_f NativeEnumerated_encode_oer
Definition: NativeEnumerated.h:53
ENUMERATED.h
jer_type_encoder_f
asn_enc_rval_t() jer_type_encoder_f(const struct asn_TYPE_descriptor_s *type_descriptor, const asn_jer_constraints_t *constraints, const void *struct_ptr, int ilevel, enum jer_encoder_flags_e jer_flags, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key)
Definition: jer_encoder.h:73
asn_OP_NativeEnumerated
asn_TYPE_operation_t asn_OP_NativeEnumerated
Definition: NativeEnumerated.c:21
asn_DEF_NativeEnumerated
asn_TYPE_descriptor_t asn_DEF_NativeEnumerated
Definition: NativeEnumerated.c:79
jer_type_decoder_f
asn_dec_rval_t() jer_type_decoder_f(const asn_codec_ctx_t *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, const asn_jer_constraints_t *constraints, void **struct_ptr, const void *buf_ptr, size_t size)
Definition: jer_decoder.h:32
per_type_encoder_f
asn_enc_rval_t() per_type_encoder_f(const struct asn_TYPE_descriptor_s *type_descriptor, const asn_per_constraints_t *constraints, const void *struct_ptr, asn_per_outp_t *per_output)
Definition: per_encoder.h:20
NativeEnumerated_encode_uper
per_type_encoder_f NativeEnumerated_encode_uper
Definition: NativeEnumerated.h:58
NativeEnumerated_decode_oer
oer_type_decoder_f NativeEnumerated_decode_oer
Definition: NativeEnumerated.h:52
NativeEnumerated_encode_jer
jer_type_encoder_f NativeEnumerated_encode_jer
Definition: NativeEnumerated.h:48
NativeEnumerated_encode_aper
per_type_encoder_f NativeEnumerated_encode_aper
Definition: NativeEnumerated.h:62
NativeInteger.h
NativeEnumerated_decode_jer
jer_type_decoder_f NativeEnumerated_decode_jer
Definition: NativeEnumerated.h:47


etsi_its_cpm_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:22:38