Skip to content

Commit

Permalink
add dynamic network interface funtion
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Jakymiw committed Jan 9, 2023
1 parent 8c3c133 commit 60c3fc6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rmw_implementation/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,12 @@ RMW_INTERFACE_FN(
1, ARG_TYPES(
rmw_feature_t))

RMW_INTERFACE_FN(
rmw_notify_participant_dynamic_network_interface,
rmw_ret_t, RMW_RET_ERROR,
1, ARG_TYPES(
rmw_context_t *))

#define GET_SYMBOL(x) symbol_ ## x = get_symbol(#x);

void prefetch_symbols(void)
Expand Down Expand Up @@ -840,6 +846,7 @@ void prefetch_symbols(void)
GET_SYMBOL(rmw_client_set_on_new_response_callback)
GET_SYMBOL(rmw_event_set_callback)
GET_SYMBOL(rmw_feature_supported)
GET_SYMBOL(rmw_notify_participant_dynamic_network_interface)
}

void * symbol_rmw_init = nullptr;
Expand Down Expand Up @@ -956,5 +963,6 @@ unload_library()
symbol_rmw_client_set_on_new_response_callback = nullptr;
symbol_rmw_event_set_callback = nullptr;
symbol_rmw_feature_supported = nullptr;
symbol_rmw_notify_participant_dynamic_network_interface = nullptr;
g_rmw_lib.reset();
}

0 comments on commit 60c3fc6

Please sign in to comment.