blob: a9bdb9fd2047a264910c4b541fa8d416763dfe55 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001/*-
2 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
Lev Walkin958d7a82004-08-19 13:26:36 +00005#ifndef ASN_TYPE_NULL_H
6#define ASN_TYPE_NULL_H
Lev Walkinf15320b2004-06-03 03:38:44 +00007
Lev Walkin11c3e172004-09-24 21:00:50 +00008#include <asn_application.h>
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08009#include <BOOLEAN.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000010
Lev Walkin21b41ac2005-07-24 09:03:44 +000011#ifdef __cplusplus
12extern "C" {
13#endif
14
Lev Walkin958d7a82004-08-19 13:26:36 +000015/*
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;
Lev Walkinf15320b2004-06-03 03:38:44 +000020
Lev Walkin5e033762004-09-29 13:26:15 +000021extern asn_TYPE_descriptor_t asn_DEF_NULL;
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080022extern asn_TYPE_operation_t asn_OP_NULL;
Lev Walkinf15320b2004-06-03 03:38:44 +000023
Lev Walkinf15320b2004-06-03 03:38:44 +000024asn_struct_print_f NULL_print;
Lev Walkincd2f48e2017-08-10 02:14:59 -070025asn_struct_compare_f NULL_compare;
Lev Walkina9cc46e2004-09-22 16:06:28 +000026der_type_encoder_f NULL_encode_der;
Lev Walkinb8ec15d2004-10-22 08:20:32 +000027xer_type_decoder_f NULL_decode_xer;
Lev Walkina9cc46e2004-09-22 16:06:28 +000028xer_type_encoder_f NULL_encode_xer;
Lev Walkinaa7c5a62017-08-30 17:41:32 -070029oer_type_decoder_f NULL_decode_oer;
30oer_type_encoder_f NULL_encode_oer;
Lev Walkin59b176e2005-11-26 11:25:14 +000031per_type_decoder_f NULL_decode_uper;
Lev Walkin523de9e2006-08-18 01:34:18 +000032per_type_encoder_f NULL_encode_uper;
Lev Walkinf15320b2004-06-03 03:38:44 +000033
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080034#define NULL_free BOOLEAN_free
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080035#define NULL_decode_ber BOOLEAN_decode_ber
36#define NULL_constraint asn_generic_no_constraint
37
Lev Walkin21b41ac2005-07-24 09:03:44 +000038#ifdef __cplusplus
39}
40#endif
41
Lev Walkin958d7a82004-08-19 13:26:36 +000042#endif /* NULL_H */