blob: 6b2537c80600586e99db14dba8869d778a806bc5 [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;
Lev Walkinf15320b2004-06-03 03:38:44 +000022
Lev Walkinf15320b2004-06-03 03:38:44 +000023asn_struct_print_f NULL_print;
Lev Walkincd2f48e2017-08-10 02:14:59 -070024asn_struct_compare_f NULL_compare;
Lev Walkina9cc46e2004-09-22 16:06:28 +000025der_type_encoder_f NULL_encode_der;
Lev Walkinb8ec15d2004-10-22 08:20:32 +000026xer_type_decoder_f NULL_decode_xer;
Lev Walkina9cc46e2004-09-22 16:06:28 +000027xer_type_encoder_f NULL_encode_xer;
Lev Walkin59b176e2005-11-26 11:25:14 +000028per_type_decoder_f NULL_decode_uper;
Lev Walkin523de9e2006-08-18 01:34:18 +000029per_type_encoder_f NULL_encode_uper;
Lev Walkinf15320b2004-06-03 03:38:44 +000030
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080031#define NULL_free BOOLEAN_free
32#define NULL_decode_ber BOOLEAN_decode_ber
33#define NULL_constraint asn_generic_no_constraint
34
Lev Walkin21b41ac2005-07-24 09:03:44 +000035#ifdef __cplusplus
36}
37#endif
38
Lev Walkin958d7a82004-08-19 13:26:36 +000039#endif /* NULL_H */