rmw  master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
allocators.h
Go to the documentation of this file.
1 // Copyright 2014 Open Source Robotics Foundation, Inc.
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__ALLOCATORS_H_
16 #define RMW__ALLOCATORS_H_
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include "rmw/types.h"
24 #include "rmw/visibility_control.h"
25 
27 
32 void *
33 rmw_allocate(size_t size);
34 
36 
40 void
41 rmw_free(void * pointer);
42 
44 
48 rmw_node_t *
49 rmw_node_allocate(void);
50 
52 
56 void
58 
60 
66 
68 
72 void
74 
76 
82 
84 
88 void
90 
92 
98 
100 
104 void
106 
108 
112 rmw_client_t *
113 rmw_client_allocate(void);
114 
116 
120 void
121 rmw_client_free(rmw_client_t * client);
122 
124 
130 
132 
136 void
138 
140 
146 
148 
152 void
154 
155 #ifdef __cplusplus
156 }
157 #endif
158 
159 #endif // RMW__ALLOCATORS_H_
rmw_node_t
Structure which encapsulates an rmw node.
Definition: types.h:44
RMW_PUBLIC
#define RMW_PUBLIC
Definition: visibility_control.h:48
rmw_service_t
A handle to an rmw service.
Definition: types.h:209
types.h
rmw_wait_set_free
void rmw_wait_set_free(rmw_wait_set_t *wait_set)
Free memory using rcutils default allocator's deallocate()
rmw_guard_condition_free
void rmw_guard_condition_free(rmw_guard_condition_t *guard_condition)
Free memory using rcutils default allocator's deallocate()
rmw_guard_condition_t
Handle for an rmw guard condition.
Definition: types.h:235
rmw_allocate
void * rmw_allocate(size_t size)
Allocate memory of size in bytes using rcutils default allocator's allocate()
rmw_guard_condition_allocate
rmw_guard_condition_t * rmw_guard_condition_allocate(void)
Allocate memory for an rmw_guard_condition_t using rcutils default allocator's allocate()
rmw_node_allocate
rmw_node_t * rmw_node_allocate(void)
Allocate memory for an rmw_node_t using rcutils default allocator's allocate()
rmw_wait_set_t
Container for guard conditions to be waited on.
Definition: types.h:336
rmw_free
void rmw_free(void *pointer)
Free memory using rcutils default allocator's deallocate()
rmw_subscription_free
void rmw_subscription_free(rmw_subscription_t *subscription)
Free memory using rcutils default allocator's deallocate()
rmw_client_allocate
rmw_client_t * rmw_client_allocate(void)
Allocate memory for an rmw_client_t using rcutils default allocator's allocate()
rmw_publisher_free
void rmw_publisher_free(rmw_publisher_t *publisher)
Free memory using rcutils default allocator's deallocate()
rmw_client_t
A handle to an rmw service client.
Definition: types.h:222
rmw_subscription_t
Definition: types.h:182
rmw_client_free
void rmw_client_free(rmw_client_t *client)
Free memory using rcutils default allocator's deallocate()
rmw_service_allocate
rmw_service_t * rmw_service_allocate(void)
Allocate memory for an rmw_service_t using rcutils default allocator's allocate()
rmw_publisher_t
Structure which encapsulates an rmw publisher.
Definition: types.h:119
rmw_publisher_allocate
rmw_publisher_t * rmw_publisher_allocate(void)
Allocate memory for an rmw_publisher_t using rcutils default allocator's allocate()
rmw_subscription_allocate
rmw_subscription_t * rmw_subscription_allocate(void)
Allocate memory for an rmw_subscription_t using rcutils default allocator's allocate()
visibility_control.h
rmw_service_free
void rmw_service_free(rmw_service_t *service)
Free memory using rcutils default allocator's deallocate()
rmw_wait_set_allocate
rmw_wait_set_t * rmw_wait_set_allocate(void)
Allocate memory for an rmw_wait_set_t using rcutils default allocator's allocate()
rmw_node_free
void rmw_node_free(rmw_node_t *node)
Free memory allocated to this node pointer using rcutils default allocator's deallocate()