iceoryx_doc  1.0.1
types.h
1 // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
2 // Copyright (c) 2020 - 2021 Apex.AI Inc. All rights reserved.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // SPDX-License-Identifier: Apache-2.0
17 
18 #ifndef IOX_BINDING_C_TYPES_H
19 #define IOX_BINDING_C_TYPES_H
20 
21 #include "internal/c2cpp_binding.h"
22 
23 #define IOX_C_CHUNK_DEFAULT_USER_PAYLOAD_ALIGNMENT 8
24 #define IOX_C_CHUNK_NO_USER_HEADER_SIZE 0
25 #define IOX_C_CHUNK_NO_USER_HEADER_ALIGNMENT 1
26 
30 
33 
35 {
36  // the value of the array size is the result of the following formula:
37  // sizeof(WaitSet) / 8
38  uint64_t do_not_touch_me[2965];
39 };
40 typedef struct iox_ws_storage_t_ iox_ws_storage_t;
41 
43 {
44  // the value of the array size is the result of the following formula:
45  // sizeof(UserTrigger) / 8
46 #if defined(__APPLE__)
47  uint64_t do_not_touch_me[17];
48 #else
49  uint64_t do_not_touch_me[14];
50 #endif
51 };
53 
55 {
56  // the value of the array size is the result of the following formula:
57  // sizeof(cpp2c_Subscriber) / 8
58 #if defined(__APPLE__)
59  uint64_t do_not_touch_me[17];
60 #else
61  uint64_t do_not_touch_me[14];
62 #endif
63 };
65 
67 {
68  // the value of the array size is the result of the following formula:
69  // sizeof(cpp2c_Publisher) / 8
70  uint64_t do_not_touch_me[2];
71 };
73 
75 {
76  // the value of the array size is the result of the following formula:
77  // sizeof(Listener) / 8
78 #if defined(__APPLE__)
79  uint64_t do_not_touch_me[2643];
80 #else
81  uint64_t do_not_touch_me[2567];
82 #endif
83 };
85 
87 typedef struct
88 {
89  // could be empty but then we get `struct has no members` warning
90  uint8_t do_not_touch_me[1];
92 
93 #endif
handle of the chunk header
Definition: types.h:88
Definition: types.h:75
Definition: types.h:67
Definition: types.h:55
Definition: types.h:43
Definition: types.h:35