diff --git a/rmw_implementation/src/functions.cpp b/rmw_implementation/src/functions.cpp index ba4bfb5f..a3d7e841 100644 --- a/rmw_implementation/src/functions.cpp +++ b/rmw_implementation/src/functions.cpp @@ -33,6 +33,7 @@ #include "rmw/names_and_types.h" #include "rmw/get_node_info_and_types.h" #include "rmw/get_service_names_and_types.h" +#include "rmw/get_topic_endpoint_info.h" #include "rmw/get_topic_names_and_types.h" #include "rmw/rmw.h" @@ -534,6 +535,24 @@ RMW_INTERFACE_FN(rmw_set_log_severity, rmw_ret_t, RMW_RET_ERROR, 1, ARG_TYPES(rmw_log_severity_t)) +RMW_INTERFACE_FN(rmw_get_publishers_info_by_topic, + rmw_ret_t, RMW_RET_ERROR, + 5, ARG_TYPES( + const rmw_node_t *, + rcutils_allocator_t *, + const char *, + bool, + rmw_topic_endpoint_info_array_t *)) + +RMW_INTERFACE_FN(rmw_get_subscriptions_info_by_topic, + rmw_ret_t, RMW_RET_ERROR, + 5, ARG_TYPES( + const rmw_node_t *, + rcutils_allocator_t *, + const char *, + bool, + rmw_topic_endpoint_info_array_t *)) + #define GET_SYMBOL(x) symbol_ ## x = get_symbol(#x); void prefetch_symbols(void) @@ -607,6 +626,8 @@ void prefetch_symbols(void) GET_SYMBOL(rmw_compare_gids_equal) GET_SYMBOL(rmw_service_server_is_available) GET_SYMBOL(rmw_set_log_severity) + GET_SYMBOL(rmw_get_publishers_info_by_topic) + GET_SYMBOL(rmw_get_subscriptions_info_by_topic) } void * symbol_rmw_init = nullptr;