blob: 802d12c0078ec62aa0fbf1bbbc2f39a274332387 [file] [log] [blame]
Peter Szilagyifbc56f92019-07-23 19:29:46 +00001/*-
2 * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef ASN_TYPE_NULL_H
6#define ASN_TYPE_NULL_H
7
8#include <asn_application.h>
9#include <BOOLEAN.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/*
16 * The value of the NULL type is meaningless: see BOOLEAN if you want to
17 * carry true/false semantics.
18 */
19typedef int NULL_t;
20
21extern asn_TYPE_descriptor_t asn_DEF_NULL;
22extern asn_TYPE_operation_t asn_OP_NULL;
23
24asn_struct_print_f NULL_print;
25asn_struct_compare_f NULL_compare;
26der_type_encoder_f NULL_encode_der;
27xer_type_decoder_f NULL_decode_xer;
28xer_type_encoder_f NULL_encode_xer;
29oer_type_decoder_f NULL_decode_oer;
30oer_type_encoder_f NULL_encode_oer;
31per_type_decoder_f NULL_decode_uper;
32per_type_encoder_f NULL_encode_uper;
33per_type_decoder_f NULL_decode_aper;
34per_type_encoder_f NULL_encode_aper;
35asn_random_fill_f NULL_random_fill;
36
37#define NULL_free BOOLEAN_free
38#define NULL_decode_ber BOOLEAN_decode_ber
39#define NULL_constraint asn_generic_no_constraint
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* NULL_H */