Skip to content

Commit

Permalink
Added functions to get qos policies for publishers and subscribers to…
Browse files Browse the repository at this point in the history
… a topic (#72)

Signed-off-by: Jaison Titus <[email protected]>
Signed-off-by: Miaofei <[email protected]>
  • Loading branch information
jaisontj authored and ivanpauno committed Jan 14, 2020
1 parent bb349e3 commit f3def1a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rmw_implementation/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f3def1a

Please sign in to comment.