Skip to content

Commit cd7b683

Browse files
authored
Include what you use (ros2#1334)
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
1 parent 4e6dda4 commit cd7b683

136 files changed

Lines changed: 611 additions & 112 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎rcl/include/rcl/client.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ extern "C"
2222
{
2323
#endif
2424

25+
#include <stdbool.h>
26+
#include <stdint.h>
27+
2528
#include "rosidl_runtime_c/service_type_support_struct.h"
2629

2730
#include "rcl/allocator.h"
@@ -31,6 +34,7 @@ extern "C"
3134
#include "rcl/publisher.h"
3235
#include "rcl/service_introspection.h"
3336
#include "rcl/time.h"
37+
#include "rcl/types.h"
3438
#include "rcl/visibility_control.h"
3539

3640
#include "rmw/types.h"

‎rcl/include/rcl/context.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ extern "C"
2222
{
2323
#endif
2424

25+
#include <stdbool.h>
26+
#include <stddef.h>
27+
#include <stdint.h>
28+
2529
#include "rmw/init.h"
2630

27-
#include "rcl/allocator.h"
2831
#include "rcl/arguments.h"
2932
#include "rcl/init_options.h"
3033
#include "rcl/macros.h"

‎rcl/include/rcl/event.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ extern "C"
2222
{
2323
#endif
2424

25+
#include <stdbool.h>
26+
2527
#include <rmw/event.h>
2628

2729
#include "rcl/client.h"
@@ -30,6 +32,7 @@ extern "C"
3032
#include "rcl/publisher.h"
3133
#include "rcl/service.h"
3234
#include "rcl/subscription.h"
35+
#include "rcl/types.h"
3336
#include "rcl/visibility_control.h"
3437

3538
/// Enumeration of all of the publisher events that may fire.

‎rcl/include/rcl/graph.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,26 @@ extern "C"
2222
{
2323
#endif
2424

25+
#include <stdbool.h>
2526
#include <stddef.h>
2627

2728
#include <rmw/names_and_types.h>
2829
#include <rmw/get_topic_names_and_types.h>
2930
#include <rmw/service_endpoint_info_array.h>
31+
#include <rmw/topic_endpoint_info.h>
3032
#include <rmw/topic_endpoint_info_array.h>
3133

34+
#include "rcutils/allocator.h"
3235
#include "rcutils/time.h"
3336
#include "rcutils/types.h"
3437

3538
#include "rosidl_runtime_c/service_type_support_struct.h"
3639

40+
#include "rcl/allocator.h"
3741
#include "rcl/macros.h"
3842
#include "rcl/client.h"
3943
#include "rcl/node.h"
44+
#include "rcl/types.h"
4045
#include "rcl/visibility_control.h"
4146

4247
/// A structure that contains topic names and types.

‎rcl/include/rcl/guard_condition.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ extern "C"
2828
#include "rcl/types.h"
2929
#include "rcl/visibility_control.h"
3030

31+
#include "rmw/types.h"
32+
3133
/// Internal rcl guard condition implementation struct.
3234
typedef struct rcl_guard_condition_impl_s rcl_guard_condition_impl_t;
3335

‎rcl/include/rcl/init.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ extern "C"
2222
{
2323
#endif
2424

25-
#include "rcl/allocator.h"
2625
#include "rcl/context.h"
2726
#include "rcl/init_options.h"
2827
#include "rcl/macros.h"

‎rcl/include/rcl/init_options.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ extern "C"
2222
{
2323
#endif
2424

25+
#include <stddef.h>
26+
2527
#include "rmw/init.h"
2628

2729
#include "rcl/allocator.h"

‎rcl/include/rcl/lexer.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#include <stddef.h>
2121

22-
#include "rcl/allocator.h"
2322
#include "rcl/macros.h"
2423
#include "rcl/types.h"
2524
#include "rcl/visibility_control.h"

‎rcl/include/rcl/log_level.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#ifndef RCL__LOG_LEVEL_H_
1818
#define RCL__LOG_LEVEL_H_
1919

20+
#include <stddef.h>
21+
2022
#include "rcl/allocator.h"
2123
#include "rcl/macros.h"
2224
#include "rcl/types.h"

‎rcl/include/rcl/logging.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@
1717
#ifndef RCL__LOGGING_H_
1818
#define RCL__LOGGING_H_
1919

20+
#include <stdarg.h>
21+
#include <stdbool.h>
22+
2023
#include "rcl/allocator.h"
2124
#include "rcl/arguments.h"
2225
#include "rcl/macros.h"
2326
#include "rcl/types.h"
2427
#include "rcl/visibility_control.h"
2528

2629
#include "rcutils/logging.h"
30+
#include "rcutils/time.h"
2731

2832
#ifdef __cplusplus
2933
extern "C"

0 commit comments

Comments
 (0)