eRPC Generator (erpcgen)  Rev. 1.7.0
NXP Semiconductors
annotations.h
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2016, Freescale Semiconductor, Inc.
4  * Copyright 2016-2017 NXP
5  * All rights reserved.
6  *
7  *
8  * Redistribution and use in source and binary forms, with or without modification,
9  * are permitted (subject to the limitations in the disclaimer below) provided
10  * that the following conditions are met:
11  *
12  * o Redistributions of source code must retain the above copyright notice, this list
13  * of conditions and the following disclaimer.
14  *
15  * o Redistributions in binary form must reproduce the above copyright notice, this
16  * list of conditions and the following disclaimer in the documentation and/or
17  * other materials provided with the distribution.
18  *
19  * o Neither the name of the copyright holder nor the names of its
20  * contributors may be used to endorse or promote products derived from this
21  * software without specific prior written permission.
22  *
23  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
28  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
31  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34  */
35 
36 #ifndef _EMBEDDED_RPC__ANNOTATIONS_H_
37 #define _EMBEDDED_RPC__ANNOTATIONS_H_
38 
40 #define CRC_ANNOTATION "crc"
41 
43 #define DISCRIMINATOR_ANNOTATION "discriminator"
44 
46 #define DYNAMIC_SERVICES_ANNOTATION "dynamic_services"
47 
49 #define ERROR_RETURN_ANNOTATION "error_return"
50 
52 #define EXTERNAL_ANNOTATION "external"
53 
55 #define GROUP_ANNOTATION "group"
56 
58 #define ID_ANNOTATION "id"
59 
61 #define INCLUDE_ANNOTATION "include"
62 
64 #define LENGTH_ANNOTATION "length"
65 
67 #define MAX_LENGTH_ANNOTATION "max_length"
68 
70 #define NAME_ANNOTATION "name"
71 
73 #define NO_ALLOC_ERRORS_ANNOTATION "no_alloc_errors"
74 
76 #define NO_CONST_PARAM "no_const_param"
77 
79 #define NO_INFRA_ERRORS_ANNOTATION "no_infra_errors"
80 
82 #define NO_SHARED_ANNOTATION "no_shared"
83 
85 #define NULLABLE_ANNOTATION "nullable"
86 
88 #define OUTPUT_DIR_ANNOTATION "output_dir"
89 
91 #define PY_TYPES_NAME_STRIP_SUFFIX_ANNOTATION "py_types_name_strip_suffix"
92 
94 #define RETAIN_ANNOTATION "retain"
95 
97 #define SHARED_ANNOTATION "shared"
98 
100 #define SHARED_MEMORY_BEGIN_ANNOTATION "shared_memory_begin"
101 
103 #define SHARED_MEMORY_END_ANNOTATION "shared_memory_end"
104 
106 #define TYPES_HEADER_ANNOTATION "types_header"
107 
108 #endif /* _EMBEDDED_RPC__ANNOTATIONS_H_ */