rosidl_runtime_c  master
Generate the rosidl interfaces in C.
sequence_bound.h
Go to the documentation of this file.
1 // Copyright 2015-2018 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 ROSIDL_RUNTIME_C__SEQUENCE_BOUND_H_
16 #define ROSIDL_RUNTIME_C__SEQUENCE_BOUND_H_
17 
19 #include "rosidl_typesupport_interface/macros.h"
20 
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25 
27 
28 typedef const rosidl_runtime_c__Sequence__bound * (* rosidl_runtime_c__bound_handle_function)(
29  const rosidl_runtime_c__Sequence__bound *, const char *);
30 
32 {
34  const char * typesupport_identifier;
36  const void * data;
38 };
39 
41 
51  const rosidl_runtime_c__Sequence__bound * handle, const char * identifier);
52 
54 
65  const rosidl_runtime_c__Sequence__bound * handle, const char * identifier);
66 
68 /*
69  * \param PkgName Name of the package that contains the message
70  * \param MsgSubfolder name of the subfolder (foe example: msg)
71  * \param MsgName message name
72  * \return a rosidl_message_bounds_t struct if founded, otherwise NULL.
73  */
74 #define ROSIDL_GET_SEQUENCE_BOUNDS(PkgName, MsgSubfolder, MsgName) \
75  ROSIDL_BOUNDS_INTERFACE__MESSAGE_SYMBOL_NAME( \
76  rosidl_typesupport_c, PkgName, MsgSubfolder, MsgName)()
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif // ROSIDL_RUNTIME_C__SEQUENCE_BOUND_H_
get_sequence_bound_handle
const rosidl_runtime_c__Sequence__bound * get_sequence_bound_handle(const rosidl_runtime_c__Sequence__bound *handle, const char *identifier)
Get the message bounds handle specific to this identifier.
rosidl_runtime_c__bound_handle_function
const typedef rosidl_runtime_c__Sequence__bound *(* rosidl_runtime_c__bound_handle_function)(const rosidl_runtime_c__Sequence__bound *, const char *)
Definition: sequence_bound.h:28
rosidl_runtime_c__Sequence__bound::typesupport_identifier
const char * typesupport_identifier
String identifier for the type_support.
Definition: sequence_bound.h:34
rosidl_runtime_c__Sequence__bound::func
rosidl_runtime_c__bound_handle_function func
Definition: sequence_bound.h:37
rosidl_runtime_c__Sequence__bound::data
const void * data
Pointer to type support handle function.
Definition: sequence_bound.h:36
visibility_control.h
get_sequence_bound_handle_function
const rosidl_runtime_c__Sequence__bound * get_sequence_bound_handle_function(const rosidl_runtime_c__Sequence__bound *handle, const char *identifier)
Get the message bounds handle function specific to this identifier.
rosidl_runtime_c__Sequence__bound
Definition: sequence_bound.h:31
ROSIDL_GENERATOR_C_PUBLIC
#define ROSIDL_GENERATOR_C_PUBLIC
Definition: visibility_control.h:48