Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Jun 9, 2022
1 parent f3d87a7 commit bd936d5
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 95 deletions.
63 changes: 63 additions & 0 deletions debian/patches/0001-Add-EventsExecutor.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
From: Timon Engelke <timon.engelke@online.de>
Date: Thu, 9 Jun 2022 12:22:52 +0200
Subject: Add EventsExecutor

---
src/rmw_client.cpp | 2 ++
src/rmw_event.cpp | 2 ++
src/rmw_service.cpp | 2 ++
src/rmw_subscription.cpp | 2 ++
4 files changed, 8 insertions(+)

diff --git a/src/rmw_client.cpp b/src/rmw_client.cpp
index 72c7ea4..d376bdc 100644
--- a/src/rmw_client.cpp
+++ b/src/rmw_client.cpp
@@ -537,6 +537,8 @@ rmw_client_set_on_new_response_callback(
rmw_event_callback_t callback,
const void * user_data)
{
+ RMW_CHECK_ARGUMENT_FOR_NULL(rmw_client, RMW_RET_INVALID_ARGUMENT);
+
return rmw_fastrtps_shared_cpp::__rmw_client_set_on_new_response_callback(
rmw_client,
callback,
diff --git a/src/rmw_event.cpp b/src/rmw_event.cpp
index 9bdc819..56d8779 100644
--- a/src/rmw_event.cpp
+++ b/src/rmw_event.cpp
@@ -54,6 +54,8 @@ rmw_event_set_callback(
rmw_event_callback_t callback,
const void * user_data)
{
+ RMW_CHECK_ARGUMENT_FOR_NULL(rmw_event, RMW_RET_INVALID_ARGUMENT);
+
return rmw_fastrtps_shared_cpp::__rmw_event_set_callback(
rmw_event,
callback,
diff --git a/src/rmw_service.cpp b/src/rmw_service.cpp
index e99fccc..a14d609 100644
--- a/src/rmw_service.cpp
+++ b/src/rmw_service.cpp
@@ -536,6 +536,8 @@ rmw_service_set_on_new_request_callback(
rmw_event_callback_t callback,
const void * user_data)
{
+ RMW_CHECK_ARGUMENT_FOR_NULL(rmw_service, RMW_RET_INVALID_ARGUMENT);
+
return rmw_fastrtps_shared_cpp::__rmw_service_set_on_new_request_callback(
rmw_service,
callback,
diff --git a/src/rmw_subscription.cpp b/src/rmw_subscription.cpp
index 2793f55..41172d2 100644
--- a/src/rmw_subscription.cpp
+++ b/src/rmw_subscription.cpp
@@ -227,6 +227,8 @@ rmw_subscription_set_on_new_message_callback(
rmw_event_callback_t callback,
const void * user_data)
{
+ RMW_CHECK_ARGUMENT_FOR_NULL(rmw_subscription, RMW_RET_INVALID_ARGUMENT);
+
return rmw_fastrtps_shared_cpp::__rmw_subscription_set_on_new_message_callback(
rmw_subscription,
callback,
94 changes: 0 additions & 94 deletions debian/patches/0001-Add-stuff.patch

This file was deleted.

2 changes: 1 addition & 1 deletion debian/patches/series
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0001-Add-stuff.patch
0001-Add-EventsExecutor.patch

0 comments on commit bd936d5

Please sign in to comment.