2 * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
5 #ifndef ASN_TYPE_NULL_H
6 #define ASN_TYPE_NULL_H
8 #include <asn_application.h>
15 * The value of the NULL type is meaningless.
16 * Use the BOOLEAN type if you need to carry true/false semantics.
20 extern asn_TYPE_descriptor_t asn_DEF_NULL;
21 extern asn_TYPE_operation_t asn_OP_NULL;
23 asn_struct_free_f NULL_free;
25 #if !defined(ASN_DISABLE_PRINT_SUPPORT)
26 asn_struct_print_f NULL_print;
27 #endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
29 asn_struct_compare_f NULL_compare;
31 #define NULL_constraint asn_generic_no_constraint
33 #if !defined(ASN_DISABLE_BER_SUPPORT)
34 ber_type_decoder_f NULL_decode_ber;
35 der_type_encoder_f NULL_encode_der;
36 #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
38 #if !defined(ASN_DISABLE_XER_SUPPORT)
39 xer_type_decoder_f NULL_decode_xer;
40 xer_type_encoder_f NULL_encode_xer;
41 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
43 #if !defined(ASN_DISABLE_JER_SUPPORT)
44 jer_type_encoder_f NULL_encode_jer;
45 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
47 #if !defined(ASN_DISABLE_OER_SUPPORT)
48 oer_type_decoder_f NULL_decode_oer;
49 oer_type_encoder_f NULL_encode_oer;
50 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
52 #if !defined(ASN_DISABLE_UPER_SUPPORT)
53 per_type_decoder_f NULL_decode_uper;
54 per_type_encoder_f NULL_encode_uper;
55 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
56 #if !defined(ASN_DISABLE_APER_SUPPORT)
57 per_type_decoder_f NULL_decode_aper;
58 per_type_encoder_f NULL_encode_aper;
59 #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
61 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
62 asn_random_fill_f NULL_random_fill;
63 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */