Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
use return_loaned_message_from (#290)
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Knese <[email protected]>
  • Loading branch information
Karsten1987 authored and mjcarroll committed Oct 22, 2019
1 parent 13b99c0 commit f999716
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions rmw_opensplice_cpp/src/rmw_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,15 @@ rmw_borrow_loaned_message(
}

rmw_ret_t
rmw_return_loaned_message(
rmw_return_loaned_message_from_publisher(
const rmw_publisher_t * publisher,
void * loaned_message)
{
(void) publisher;
(void) loaned_message;

RMW_SET_ERROR_MSG("rmw_return_loaned_message not implemented for rmw_opensplice_cpp");
RMW_SET_ERROR_MSG(
"rmw_return_loaned_message_from_publisher not implemented for rmw_opensplice_cpp");
return RMW_RET_UNSUPPORTED;
}

Expand Down
5 changes: 3 additions & 2 deletions rmw_opensplice_cpp/src/rmw_take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,15 @@ rmw_take_loaned_message_with_info(
}

rmw_ret_t
rmw_release_loaned_message(
rmw_return_loaned_message_from_subscription(
const rmw_subscription_t * subscription,
void * loaned_message)
{
(void) subscription;
(void) loaned_message;

RMW_SET_ERROR_MSG("rmw_release_loaned_message not implemented for rmw_opensplice_cpp");
RMW_SET_ERROR_MSG(
"rmw_release_loaned_message_from_subscription not implemented for rmw_opensplice_cpp");
return RMW_RET_UNSUPPORTED;
}
} // extern "C"

0 comments on commit f999716

Please sign in to comment.