Skip to content

Commit 00b9b48

Browse files
committed
Use _t types wherever possible
Signed-off-by: Michel Hidalgo <[email protected]>
1 parent 368b047 commit 00b9b48

File tree

14 files changed

+16
-19
lines changed

14 files changed

+16
-19
lines changed

rcl/include/rcl/arguments.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ typedef struct rcl_arguments_impl_s rcl_arguments_impl_t;
3535
typedef struct rcl_arguments_s
3636
{
3737
/// Private implementation pointer.
38-
struct rcl_arguments_impl_s * impl;
38+
rcl_arguments_impl_t * impl;
3939
} rcl_arguments_t;
4040

4141
/// The command-line flag that delineates the start of ROS arguments.

rcl/include/rcl/client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ typedef struct rcl_client_impl_s rcl_client_impl_t;
3535
typedef struct rcl_client_s
3636
{
3737
/// Pointer to the client implementation
38-
struct rcl_client_impl_s * impl;
38+
rcl_client_impl_t * impl;
3939
} rcl_client_t;
4040

4141
/// Options available for a rcl_client_t.

rcl/include/rcl/context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ typedef struct rcl_context_s
117117
rcl_arguments_t global_arguments;
118118

119119
/// Implementation specific pointer.
120-
struct rcl_context_impl_s * impl;
120+
rcl_context_impl_t * impl;
121121

122122
// The assumption that this is big enough for an atomic_uint_least64_t is
123123
// ensured with a static_assert in the context.c file.

rcl/include/rcl/event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ typedef struct rcl_event_impl_s rcl_event_impl_t;
5555
typedef struct rcl_event_s
5656
{
5757
/// Pointer to the event implementation
58-
struct rcl_event_impl_s * impl;
58+
rcl_event_impl_t * impl;
5959
} rcl_event_t;
6060

6161
/// Return a rcl_event_t struct with members set to `NULL`.

rcl/include/rcl/guard_condition.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef struct rcl_guard_condition_s
3838
rcl_context_t * context;
3939

4040
/// Pointer to the guard condition implementation
41-
struct rcl_guard_condition_impl_s * impl;
41+
rcl_guard_condition_impl_t * impl;
4242
} rcl_guard_condition_t;
4343

4444
/// Options available for a rcl guard condition.

rcl/include/rcl/init_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ typedef struct rcl_init_options_impl_s rcl_init_options_impl_t;
3535
typedef struct rcl_init_options_s
3636
{
3737
/// Implementation specific pointer.
38-
struct rcl_init_options_impl_s * impl;
38+
rcl_init_options_impl_t * impl;
3939
} rcl_init_options_t;
4040

4141
/// Return a zero initialized rcl_init_options_t struct.

rcl/include/rcl/lexer_lookahead.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ typedef struct rcl_lexer_lookahead2_impl_s rcl_lexer_lookahead2_impl_t;
3737
typedef struct rcl_lexer_lookahead2_s
3838
{
3939
/// Pointer to the lexer look ahead2 implementation
40-
struct rcl_lexer_lookahead2_impl_s * impl;
40+
rcl_lexer_lookahead2_impl_t * impl;
4141
} rcl_lexer_lookahead2_t;
4242

4343
/// Get a zero initialized rcl_lexer_lookahead2_t instance.

rcl/include/rcl/node.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ extern "C"
2727
#include "rcl/allocator.h"
2828
#include "rcl/arguments.h"
2929
#include "rcl/context.h"
30+
#include "rcl/guard_condition.h"
3031
#include "rcl/macros.h"
3132
#include "rcl/node_options.h"
3233
#include "rcl/types.h"
3334
#include "rcl/visibility_control.h"
3435

35-
struct rcl_guard_condition_s;
36-
3736
typedef struct rcl_node_impl_s rcl_node_impl_t;
3837

3938
/// Structure which encapsulates a ROS Node.
@@ -43,7 +42,7 @@ typedef struct rcl_node_s
4342
rcl_context_t * context;
4443

4544
/// Private implementation pointer.
46-
struct rcl_node_impl_s * impl;
45+
rcl_node_impl_t * impl;
4746
} rcl_node_t;
4847

4948
/// Return a rcl_node_t struct with members initialized to `NULL`.
@@ -463,7 +462,7 @@ rcl_node_get_rcl_instance_id(const rcl_node_t * node);
463462
*/
464463
RCL_PUBLIC
465464
RCL_WARN_UNUSED
466-
const struct rcl_guard_condition_s *
465+
const rcl_guard_condition_t *
467466
rcl_node_get_graph_guard_condition(const rcl_node_t * node);
468467

469468
/// Return the logger name of the node.

rcl/include/rcl/publisher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typedef struct rcl_publisher_impl_s rcl_publisher_impl_t;
3636
typedef struct rcl_publisher_s
3737
{
3838
/// Pointer to the publisher implementation
39-
struct rcl_publisher_impl_s * impl;
39+
rcl_publisher_impl_t * impl;
4040
} rcl_publisher_t;
4141

4242
/// Options available for a rcl publisher.

rcl/include/rcl/remap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef struct rcl_remap_impl_s rcl_remap_impl_t;
3434
typedef struct rcl_remap_s
3535
{
3636
/// Private implementation pointer.
37-
struct rcl_remap_impl_s * impl;
37+
rcl_remap_impl_t * impl;
3838
} rcl_remap_t;
3939

4040
/// Return a rcl_remap_t struct with members initialized to `NULL`.

0 commit comments

Comments
 (0)