Skip to content

Commit

Permalink
add dynamic network notify function
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Jakymiw <[email protected]>
  • Loading branch information
Sebastian Jakymiw committed Jan 19, 2023
1 parent cae279a commit 3f7bd89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rcl/include/rcl/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,11 @@ RCL_PUBLIC
rcl_ret_t
rcl_get_disable_loaned_message(bool * disable_loaned_message);

RCL_PUBLIC
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_NODE_INVALID;
}
return rmw_notify_participant_dynamic_network_interface(&(context->impl->rmw_context));
}
#ifdef __cplusplus
}
#endif

0 comments on commit 3f7bd89

Please sign in to comment.