Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rmw listener apis #44

Merged
merged 7 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions rmw_connextdds/src/rmw_api_impl_ndds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@ rmw_take_event(
return rmw_api_connextdds_take_event(event_handle, event_info, taken);
}

rmw_ret_t
rmw_event_set_callback(
rmw_event_t * event,
rmw_event_callback_t callback,
const void * user_data)
{
(void)event;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_event_set_callback not implemented");
return RMW_RET_UNSUPPORTED;
}
/*****************************************************************************
* Info API
*****************************************************************************/
Expand Down Expand Up @@ -583,6 +595,33 @@ rmw_destroy_service(
{
return rmw_api_connextdds_destroy_service(node, service);
}

rmw_ret_t
rmw_service_set_on_new_request_callback(
rmw_service_t * rmw_service,
rmw_event_callback_t callback,
const void * user_data)
{
(void)rmw_service;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_service_set_on_new_request_callback not implemented");
return RMW_RET_UNSUPPORTED;
}

rmw_ret_t
rmw_client_set_on_new_response_callback(
rmw_client_t * rmw_client,
rmw_event_callback_t callback,
const void * user_data)
{
(void)rmw_client;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_client_set_on_new_response_callback not implemented");
return RMW_RET_UNSUPPORTED;
}

/*****************************************************************************
* Subscription API
*****************************************************************************/
Expand Down Expand Up @@ -743,6 +782,18 @@ rmw_return_loaned_message_from_subscription(
subscription, loaned_message);
}

rmw_ret_t rmw_subscription_set_on_new_message_callback(
rmw_subscription_t * rmw_subscription,
rmw_event_callback_t callback,
const void * user_data)
{
(void)rmw_subscription;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_subscription_set_on_new_message_callback not implemented");
return RMW_RET_UNSUPPORTED;
}

/*****************************************************************************
* WaitSet API
*****************************************************************************/
Expand Down
51 changes: 51 additions & 0 deletions rmw_connextddsmicro/src/rmw_api_impl_rtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ rmw_take_event(
return rmw_api_connextdds_take_event(event_handle, event_info, taken);
}

rmw_ret_t
rmw_event_set_callback(
rmw_event_t * event,
rmw_event_callback_t callback,
const void * user_data)
{
(void)event;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_event_set_callback not implemented");
return RMW_RET_UNSUPPORTED;
}

/*****************************************************************************
* Info API
*****************************************************************************/
Expand Down Expand Up @@ -583,6 +596,33 @@ rmw_destroy_service(
{
return rmw_api_connextdds_destroy_service(node, service);
}

rmw_ret_t
rmw_service_set_on_new_request_callback(
rmw_service_t * rmw_service,
rmw_event_callback_t callback,
const void * user_data)
{
(void)rmw_service;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_service_set_on_new_request_callback not implemented");
return RMW_RET_UNSUPPORTED;
}

rmw_ret_t
rmw_client_set_on_new_response_callback(
rmw_client_t * rmw_client,
rmw_event_callback_t callback,
const void * user_data)
{
(void)rmw_client;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_client_set_on_new_response_callback not implemented");
return RMW_RET_UNSUPPORTED;
}

/*****************************************************************************
* Subscription API
*****************************************************************************/
Expand Down Expand Up @@ -743,6 +783,17 @@ rmw_return_loaned_message_from_subscription(
subscription, loaned_message);
}

rmw_ret_t rmw_subscription_set_on_new_message_callback(
rmw_subscription_t * rmw_subscription,
rmw_event_callback_t callback,
const void * user_data)
{
(void)rmw_subscription;
(void)callback;
(void)user_data;
RMW_SET_ERROR_MSG("rmw_subscription_set_on_new_message_callback not implemented");
return RMW_RET_UNSUPPORTED;
}
/*****************************************************************************
* WaitSet API
*****************************************************************************/
Expand Down