-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathannotations.h
More file actions
85 lines (59 loc) · 2.6 KB
/
annotations.h
File metadata and controls
85 lines (59 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _EMBEDDED_RPC__ANNOTATIONS_H_
#define _EMBEDDED_RPC__ANNOTATIONS_H_
//! Define union discriminator name for non-encapsulated unions.
#define CRC_ANNOTATION "crc"
//! Define union discriminator name for non-encapsulated unions.
#define DISCRIMINATOR_ANNOTATION "discriminator"
//! Service objects will be dynamically allocated.
#define DYNAMIC_SERVICES_ANNOTATION "dynamic_services"
//! Set error value for provide error to client
#define ERROR_RETURN_ANNOTATION "error_return"
//! Do not generate the annotated object.
#define EXTERNAL_ANNOTATION "external"
//! Collect specified interfaces into output files by the group name.
#define GROUP_ANNOTATION "group"
//! Set interface or function unique ID.
#define ID_ANNOTATION "id"
//! Add a \#include to the output.
#define INCLUDE_ANNOTATION "include"
//! Sets the parameter/field that specifies a list's length.
#define LENGTH_ANNOTATION "length"
//! Specify the buffer's maximum size.
#define MAX_LENGTH_ANNOTATION "max_length"
//! Specify the symbol name.
#define NAME_ANNOTATION "name"
//! Turn off error checking code for allocations in generated output
#define NO_ALLOC_ERRORS_ANNOTATION "no_alloc_errors"
//! Turn off generating of "const" keyword for function parameters data types.
#define NO_CONST_PARAM "no_const_param"
//! Turn off error checking code for infrastructure in generated output
#define NO_INFRA_ERRORS_ANNOTATION "no_infra_errors"
//! Data not handled through shared memory area
#define NO_SHARED_ANNOTATION "no_shared"
//! Allows a parameter or field to be null.
#define NULLABLE_ANNOTATION "nullable"
//! Sets the path to write output files into.
#define OUTPUT_DIR_ANNOTATION "output_dir"
//! Strip the specified string from type names in Python output.
#define PY_TYPES_NAME_STRIP_SUFFIX_ANNOTATION "py_types_name_strip_suffix"
//! Do not free memory for a parameter in the server shim.
#define RETAIN_ANNOTATION "retain"
//! Do not alloc memory for a parameter in the server shim, just pass the pointer in the received buffer
#define DIRECT_ANNOTATION "direct"
//! Data handled through shared memory area
#define SHARED_ANNOTATION "shared"
//! Shared memory area start address
#define SHARED_MEMORY_BEGIN_ANNOTATION "shared_memory_begin"
//! Shared memory area end address
#define SHARED_MEMORY_END_ANNOTATION "shared_memory_end"
//! Place all types definitions (e.g. typedef, structs, etc.) into one file
#define TYPES_HEADER_ANNOTATION "types_header"
#endif /* _EMBEDDED_RPC__ANNOTATIONS_H_ */