ROS 2 rclcpp + rcl - jazzy  jazzy
ROS 2 C++ Client Library with ROS Client Library
dynamic_message_type_support.h
1 // Copyright 2022 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 RCL__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_
16 #define RCL__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #include <rosidl_runtime_c/type_description/type_description__struct.h>
23 #include <rosidl_runtime_c/message_type_support_struct.h>
24 
25 #include "rcl/allocator.h"
26 #include "rcl/macros.h"
27 #include "rcl/types.h"
28 #include "rcl/visibility_control.h"
29 
32 RCL_PUBLIC
33 RCL_WARN_UNUSED
35 rcl_dynamic_message_type_support_handle_init(
36  const char * serialization_lib_name,
37  const rosidl_runtime_c__type_description__TypeDescription * desc,
38  rcl_allocator_t * allocator,
39  rosidl_message_type_support_t * ts); // OUT
40 
43 RCL_PUBLIC
44 RCL_WARN_UNUSED
46 rcl_dynamic_message_type_support_handle_fini(rosidl_message_type_support_t * ts);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif // RCL__DYNAMIC_MESSAGE_TYPE_SUPPORT_H_
rcutils_allocator_t rcl_allocator_t
Encapsulation of an allocator.
Definition: allocator.h:31
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.
Definition: types.h:24