2004-06-03 03:38:44 +00:00
|
|
|
/*-
|
|
|
|
* 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_
|
|
|
|
|
2004-09-24 21:00:50 +00:00
|
|
|
#include <asn_application.h>
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-08-19 13:26:36 +00:00
|
|
|
/*
|
|
|
|
* 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;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-09-29 13:26:15 +00:00
|
|
|
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-09-22 16:06:28 +00:00
|
|
|
asn_struct_free_f BOOLEAN_free;
|
|
|
|
asn_struct_print_f BOOLEAN_print;
|
2004-06-03 03:38:44 +00:00
|
|
|
ber_type_decoder_f BOOLEAN_decode_ber;
|
|
|
|
der_type_encoder_f BOOLEAN_encode_der;
|
2004-10-22 08:11:25 +00:00
|
|
|
xer_type_decoder_f BOOLEAN_decode_xer;
|
2004-09-22 16:06:28 +00:00
|
|
|
xer_type_encoder_f BOOLEAN_encode_xer;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
|
|
|
#endif /* _BOOLEAN_H_ */
|