rosidl_runtime_c  master
Generate the rosidl interfaces in C.
primitives_sequence_functions.h
Go to the documentation of this file.
1 // Copyright 2015 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__PRIMITIVES_SEQUENCE_FUNCTIONS_H_
16 #define ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_FUNCTIONS_H_
17 
18 #include <stdbool.h>
19 #include <stddef.h>
20 
23 
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28 
43 #define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME) \
44  \
45  ROSIDL_GENERATOR_C_PUBLIC \
46  bool rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence__init( \
47  rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * sequence, size_t size);
48 
58 #define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(STRUCT_NAME) \
59  \
60  ROSIDL_GENERATOR_C_PUBLIC \
61  void rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence__fini( \
62  rosidl_runtime_c__ ## STRUCT_NAME ## __Sequence * sequence);
63 
70 #define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(STRUCT_NAME) \
71  ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME) \
72  ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FINI(STRUCT_NAME)
73 
102  rosidl_runtime_c__boolean__Sequence * sequence, size_t size);
106  rosidl_runtime_c__boolean__Sequence * sequence);
107 
111  rosidl_runtime_c__octet__Sequence * sequence, size_t size);
115  rosidl_runtime_c__octet__Sequence * sequence);
116 
120  rosidl_runtime_c__float__Sequence * sequence, size_t size);
124  rosidl_runtime_c__float__Sequence * sequence);
125 
129  rosidl_runtime_c__double__Sequence * sequence, size_t size);
133  rosidl_runtime_c__double__Sequence * sequence);
136 #ifdef __cplusplus
137 }
138 #endif
139 
140 #endif // ROSIDL_RUNTIME_C__PRIMITIVES_SEQUENCE_FUNCTIONS_H_
rosidl_runtime_c__float32__Sequence__fini
void rosidl_runtime_c__float32__Sequence__fini(rosidl_runtime_c__float__Sequence *sequence)
rosidl_runtime_c__float64__Sequence__fini
void rosidl_runtime_c__float64__Sequence__fini(rosidl_runtime_c__double__Sequence *sequence)
rosidl_runtime_c__byte__Sequence__fini
void rosidl_runtime_c__byte__Sequence__fini(rosidl_runtime_c__octet__Sequence *sequence)
primitives_sequence.h
rosidl_runtime_c__bool__Sequence__fini
void rosidl_runtime_c__bool__Sequence__fini(rosidl_runtime_c__boolean__Sequence *sequence)
rosidl_runtime_c__float64__Sequence__init
bool rosidl_runtime_c__float64__Sequence__init(rosidl_runtime_c__double__Sequence *sequence, size_t size)
rosidl_runtime_c__bool__Sequence__init
bool rosidl_runtime_c__bool__Sequence__init(rosidl_runtime_c__boolean__Sequence *sequence, size_t size)
visibility_control.h
ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS
#define ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_FUNCTIONS(STRUCT_NAME)
See ROSIDL_RUNTIME_C__DECLARE_PRIMITIVE_SEQUENCE_INIT(STRUCT_NAME) and ROSIDL_RUNTIME_C__DECLARE_PRIM...
Definition: primitives_sequence_functions.h:70
rosidl_runtime_c__float32__Sequence__init
bool rosidl_runtime_c__float32__Sequence__init(rosidl_runtime_c__float__Sequence *sequence, size_t size)
rosidl_runtime_c__byte__Sequence__init
bool rosidl_runtime_c__byte__Sequence__init(rosidl_runtime_c__octet__Sequence *sequence, size_t size)
ROSIDL_GENERATOR_C_PUBLIC
#define ROSIDL_GENERATOR_C_PUBLIC
Definition: visibility_control.h:48