Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
11 changes: 11 additions & 0 deletions rcl/include/rcl/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,17 @@ RCL_PUBLIC
rcl_ret_t
rcl_get_disable_loaned_message(bool * disable_loaned_message);

/// Notify middleware to refresh available network interfaces.
/**
* \param[in] context Has to be valid.
* \return #RCL_RET_ERROR if the context is not valid, or
* \return #RCL_RET_OK.
*/
RCL_PUBLIC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add doxygen documentation here

RCL_WARN_UNUSED
rcl_ret_t
rcl_notify_participant_dynamic_network_interface(rcl_context_t * context);

#ifdef __cplusplus
}
#endif
Expand Down
10 changes: 10 additions & 0 deletions rcl/src/rcl/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,16 @@ rcl_get_disable_loaned_message(bool * disable_loaned_message)
*disable_loaned_message = (strcmp(env_val, "1") == 0);
return RCL_RET_OK;
}

rcl_ret_t
rcl_notify_participant_dynamic_network_interface(rcl_context_t * context)
{
if(!rcl_context_is_valid(context))
{
return RCL_RET_ERROR;
}
return rmw_notify_participant_dynamic_network_interface(&(context->impl->rmw_context));
}
#ifdef __cplusplus
}
#endif