Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Oct 12, 2022
1 parent f2020e4 commit 8390962
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion rosidl_generator_c/resource/idl__functions.c.em
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ TEMPLATE(
package_name=package_name, interface_path=interface_path,
message=service.event_message, include_directives=include_directives)
}@

@[end for]@
@
@#######################################################################
Expand Down
1 change: 0 additions & 1 deletion rosidl_generator_c/resource/idl__functions.h.em
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ TEMPLATE(
package_name=package_name, interface_path=interface_path,
message=service.event_message)
}@

@[end for]@
@
@#######################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
#ifndef ROSIDL_RUNTIME_C__SERVICE_TYPE_SUPPORT_STRUCT_H_
#define ROSIDL_RUNTIME_C__SERVICE_TYPE_SUPPORT_STRUCT_H_

#include <stdint.h>

#include "rcutils/allocator.h"
#include "rosidl_runtime_c/message_type_support_struct.h"
#include "rosidl_runtime_c/visibility_control.h"

#include "rosidl_typesupport_interface/macros.h"
#include "stdint.h"

#ifdef __cplusplus
extern "C"
Expand All @@ -32,7 +33,8 @@ typedef struct rosidl_service_type_support_t rosidl_service_type_support_t;
typedef const rosidl_service_type_support_t * (* rosidl_service_typesupport_handle_function)(
const rosidl_service_type_support_t *, const char *);

typedef struct rosidl_service_introspection_info_s {
typedef struct rosidl_service_introspection_info_s
{
uint8_t event_type;
int32_t stamp_sec;
uint32_t stamp_nanosec;
Expand All @@ -54,11 +56,11 @@ typedef struct rosidl_service_introspection_info_s {
* \return The built ServiceEvent message. Will return NULL if the message could not be built.
**/
typedef void * (* rosidl_event_message_create_handle)(
const rosidl_service_introspection_info_t * info,
rcutils_allocator_t * allocator,
const void * request_message,
const void * response_message,
bool enable_message_payload);
const rosidl_service_introspection_info_t * info,
rcutils_allocator_t * allocator,
const void * request_message,
const void * response_message,
bool enable_message_payload);

/// Destroys a ServiceEvent message
/**
Expand All @@ -69,8 +71,8 @@ typedef void * (* rosidl_event_message_create_handle)(
* \param[in] allocator The allocator to use for deallocating the message.
*/
typedef bool (* rosidl_event_message_destroy_handle)(
void * event_message,
rcutils_allocator_t * allocator);
void * event_message,
rcutils_allocator_t * allocator);

/// Contains rosidl service type support data
struct rosidl_service_type_support_t
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ get_service_type_support_handle<@('::'.join([package_name] + list(interface_path
if (
service_members->request_members_ == nullptr ||
service_members->response_members_ == nullptr ||
service_members->event_members_ == nullptr
)
service_members->event_members_ == nullptr)
{
// initialize the request_members_ with the static function from the external library
service_members->request_members_ = static_cast<
Expand Down

0 comments on commit 8390962

Please sign in to comment.