-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0001-Add-stuff.patch | ||
0001-Add-EventsExecutor.patch |