Skip to content

Commit feb6744

Browse files
committed
Added functions to get qos policies
- rmw_get_publishers_info_by_topic to get the qos policies for publishers to a topic - rmw_get_subscriptions_info_by_topic to a get the qos policies for subscriptions to a topic Signed-off-by: Jaison Titus <[email protected]>
1 parent bb349e3 commit feb6744

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

rmw_implementation/src/functions.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,24 @@ RMW_INTERFACE_FN(rmw_set_log_severity,
534534
rmw_ret_t, RMW_RET_ERROR,
535535
1, ARG_TYPES(rmw_log_severity_t))
536536

537+
RMW_INTERFACE_FN(rmw_get_publishers_info_by_topic,
538+
rmw_ret_t, RMW_RET_ERROR,
539+
5, ARG_TYPES(
540+
const rmw_node_t *,
541+
rcutils_allocator_t *,
542+
const char *,
543+
bool,
544+
rmw_topic_info_array_t *))
545+
546+
RMW_INTERFACE_FN(rmw_get_subscriptions_info_by_topic,
547+
rmw_ret_t, RMW_RET_ERROR,
548+
5, ARG_TYPES(
549+
const rmw_node_t *,
550+
rcutils_allocator_t *,
551+
const char *,
552+
bool,
553+
rmw_topic_info_array_t *))
554+
537555
#define GET_SYMBOL(x) symbol_ ## x = get_symbol(#x);
538556

539557
void prefetch_symbols(void)
@@ -607,6 +625,8 @@ void prefetch_symbols(void)
607625
GET_SYMBOL(rmw_compare_gids_equal)
608626
GET_SYMBOL(rmw_service_server_is_available)
609627
GET_SYMBOL(rmw_set_log_severity)
628+
GET_SYMBOL(rmw_get_publishers_info_by_topic)
629+
GET_SYMBOL(rmw_get_subscriptions_info_by_topic)
610630
}
611631

612632
void * symbol_rmw_init = nullptr;

0 commit comments

Comments
 (0)