rmw  master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
network_flow_endpoint_array.h
Go to the documentation of this file.
1 // Copyright 2020 Ericsson AB
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef RMW__NETWORK_FLOW_ENDPOINT_ARRAY_H_
16 #define RMW__NETWORK_FLOW_ENDPOINT_ARRAY_H_
17 
18 #if __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include "rcutils/allocator.h"
24 
26 #include "rmw/types.h"
27 #include "rmw/visibility_control.h"
28 
31 {
33  size_t size;
39 
44 
46 
57  const rmw_network_flow_endpoint_array_t * network_flow_endpoint_array);
58 
60 
73  rmw_network_flow_endpoint_array_t * network_flow_endpoint_array,
74  size_t size,
75  rcutils_allocator_t * allocator);
76 
78 
88  rmw_network_flow_endpoint_array_t * network_flow_endpoint_array);
89 
90 #if __cplusplus
91 }
92 #endif
93 
94 #endif // RMW__NETWORK_FLOW_ENDPOINT_ARRAY_H_
RMW_PUBLIC
#define RMW_PUBLIC
Definition: visibility_control.h:48
types.h
rmw_network_flow_endpoint_array_t
struct RMW_PUBLIC_TYPE rmw_network_flow_endpoint_array_t rmw_network_flow_endpoint_array_t
Structure to hold an arrary of network_flow_endpoint_t.
RMW_PUBLIC_TYPE
RMW_PUBLIC_TYPE
Type mapping of rcutils log severity types to rmw specific types.
Definition: types.h:540
rmw_get_zero_initialized_network_flow_endpoint_array
rmw_network_flow_endpoint_array_t rmw_get_zero_initialized_network_flow_endpoint_array(void)
Return a rmw_network_flow_endpoint_array_t instance with zero-initialized members.
rmw_network_flow_endpoint_array_check_zero
rmw_ret_t rmw_network_flow_endpoint_array_check_zero(const rmw_network_flow_endpoint_array_t *network_flow_endpoint_array)
Check if network_flow_endpoint_array instance is zero-initialized.
RMW_WARN_UNUSED
#define RMW_WARN_UNUSED
Indicate that a variable is not used, and prevent compiler from issuing warnings.
Definition: macros.h:24
rmw_network_flow_endpoint_array_t::size
size_t size
Size of the array.
Definition: network_flow_endpoint_array.h:33
rmw_network_flow_endpoint_array_t::network_flow_endpoint
rmw_network_flow_endpoint_t * network_flow_endpoint
Array of rmw_network_flow_endpoint_t.
Definition: network_flow_endpoint_array.h:35
allocator.h
network_flow_endpoint.h
rmw_network_flow_endpoint_t
Structure that describes network flow endpoint of a publisher or subscription.
Definition: network_flow_endpoint.h:49
rmw_ret_t
int32_t rmw_ret_t
Return code for rmw functions.
Definition: ret_types.h:26
visibility_control.h
rcutils_allocator_t
rmw_network_flow_endpoint_array_fini
rmw_ret_t rmw_network_flow_endpoint_array_fini(rmw_network_flow_endpoint_array_t *network_flow_endpoint_array)
Deallocate a rmw_network_flow_endpoint_array_t instance.
rmw_network_flow_endpoint_array_init
rmw_ret_t rmw_network_flow_endpoint_array_init(rmw_network_flow_endpoint_array_t *network_flow_endpoint_array, size_t size, rcutils_allocator_t *allocator)
Allocate a rmw_network_flow_endpoint_array_t instance.
rmw_network_flow_endpoint_array_t::allocator
rcutils_allocator_t * allocator
Allocator.
Definition: network_flow_endpoint_array.h:37
rmw_network_flow_endpoint_array_t
Structure to hold an arrary of network_flow_endpoint_t.
Definition: network_flow_endpoint_array.h:30