Skip to content

Commit f3def1a

Browse files
jaisontjivanpauno
authored andcommitted
Added functions to get qos policies for publishers and subscribers to a topic (#72)
Signed-off-by: Jaison Titus <[email protected]> Signed-off-by: Miaofei <[email protected]>
1 parent bb349e3 commit f3def1a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

rmw_implementation/src/functions.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "rmw/names_and_types.h"
3434
#include "rmw/get_node_info_and_types.h"
3535
#include "rmw/get_service_names_and_types.h"
36+
#include "rmw/get_topic_endpoint_info.h"
3637
#include "rmw/get_topic_names_and_types.h"
3738
#include "rmw/rmw.h"
3839

@@ -534,6 +535,24 @@ RMW_INTERFACE_FN(rmw_set_log_severity,
534535
rmw_ret_t, RMW_RET_ERROR,
535536
1, ARG_TYPES(rmw_log_severity_t))
536537

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

539558
void prefetch_symbols(void)
@@ -607,6 +626,8 @@ void prefetch_symbols(void)
607626
GET_SYMBOL(rmw_compare_gids_equal)
608627
GET_SYMBOL(rmw_service_server_is_available)
609628
GET_SYMBOL(rmw_set_log_severity)
629+
GET_SYMBOL(rmw_get_publishers_info_by_topic)
630+
GET_SYMBOL(rmw_get_subscriptions_info_by_topic)
610631
}
611632

612633
void * symbol_rmw_init = nullptr;

0 commit comments

Comments
 (0)