aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/BOOLEAN.h
blob: 6ad69a451b4f5c40bfe54dab8256d3c0a5b4dde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*-
 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
 * Redistribution and modifications are permitted subject to BSD license.
 */
#ifndef	_BOOLEAN_H_
#define	_BOOLEAN_H_

#include <constr_TYPE.h>

/*
 * The underlying integer may contain various values, but everything
 * non-zero is capped to 0xff by the DER encoder. The BER decoder may
 * yield non-zero values different from 1, beware.
 */
typedef int BOOLEAN_t;

extern asn1_TYPE_descriptor_t asn1_DEF_BOOLEAN;

ber_type_decoder_f BOOLEAN_decode_ber;
der_type_encoder_f BOOLEAN_encode_der;
asn_struct_print_f BOOLEAN_print;
asn_struct_free_f BOOLEAN_free;

#endif	/* _BOOLEAN_H_ */