blob: 620acf7f1f26e8f2709ddcba6b33f2bd6df5d530 [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 _BOOLEAN_H_
6#define _BOOLEAN_H_
7
8#include <asn_application.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14/*
15 * The underlying integer may contain various values, but everything
16 * non-zero is capped to 0xff by the DER encoder. The BER decoder may
17 * yield non-zero values different from 1, beware.
18 */
19typedef int BOOLEAN_t;
20
21extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
22extern asn_TYPE_operation_t asn_OP_BOOLEAN;
23
24asn_struct_free_f BOOLEAN_free;
25asn_struct_print_f BOOLEAN_print;
26asn_struct_compare_f BOOLEAN_compare;
27ber_type_decoder_f BOOLEAN_decode_ber;
28der_type_encoder_f BOOLEAN_encode_der;
29oer_type_decoder_f BOOLEAN_decode_oer;
30oer_type_encoder_f BOOLEAN_encode_oer;
31per_type_decoder_f BOOLEAN_decode_uper;
32per_type_encoder_f BOOLEAN_encode_uper;
33per_type_decoder_f BOOLEAN_decode_aper;
34per_type_encoder_f BOOLEAN_encode_aper;
35xer_type_decoder_f BOOLEAN_decode_xer;
36xer_type_encoder_f BOOLEAN_encode_xer;
37asn_random_fill_f BOOLEAN_random_fill;
38
39#define BOOLEAN_constraint asn_generic_no_constraint
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* _BOOLEAN_H_ */