Moving in e2sim originally from it/test/simulators
[sim/e2-interface.git] / e2sim / ASN1c / NULL.h
1 /*****************************************************************************
2 #                                                                            *
3 # Copyright 2019 AT&T Intellectual Property                                  *
4 #                                                                            *
5 # Licensed under the Apache License, Version 2.0 (the "License");            *
6 # you may not use this file except in compliance with the License.           *
7 # You may obtain a copy of the License at                                    *
8 #                                                                            *
9 #      http://www.apache.org/licenses/LICENSE-2.0                            *
10 #                                                                            *
11 # Unless required by applicable law or agreed to in writing, software        *
12 # distributed under the License is distributed on an "AS IS" BASIS,          *
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   *
14 # See the License for the specific language governing permissions and        *
15 # limitations under the License.                                             *
16 #                                                                            *
17 ******************************************************************************/
18
19 /*-
20  * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
21  * Redistribution and modifications are permitted subject to BSD license.
22  */
23 #ifndef ASN_TYPE_NULL_H
24 #define ASN_TYPE_NULL_H
25
26 #include <asn_application.h>
27 #include <BOOLEAN.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /*
34  * The value of the NULL type is meaningless: see BOOLEAN if you want to
35  * carry true/false semantics.
36  */
37 typedef int NULL_t;
38
39 extern asn_TYPE_descriptor_t asn_DEF_NULL;
40 extern asn_TYPE_operation_t asn_OP_NULL;
41
42 asn_struct_print_f NULL_print;
43 asn_struct_compare_f NULL_compare;
44 der_type_encoder_f NULL_encode_der;
45 xer_type_decoder_f NULL_decode_xer;
46 xer_type_encoder_f NULL_encode_xer;
47 oer_type_decoder_f NULL_decode_oer;
48 oer_type_encoder_f NULL_encode_oer;
49 per_type_decoder_f NULL_decode_uper;
50 per_type_encoder_f NULL_encode_uper;
51 per_type_decoder_f NULL_decode_aper;
52 per_type_encoder_f NULL_encode_aper;
53 asn_random_fill_f  NULL_random_fill;
54
55 #define NULL_free       BOOLEAN_free
56 #define NULL_decode_ber BOOLEAN_decode_ber
57 #define NULL_constraint asn_generic_no_constraint
58
59 #ifdef __cplusplus
60 }
61 #endif
62
63 #endif  /* NULL_H */