Skip to content

Commit

Permalink
Added functions to get qos policies
Browse files Browse the repository at this point in the history
- 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 <jaisontj92@gmail.com>
  • Loading branch information
jaisontj committed Oct 16, 2019
1 parent 07fcf4f commit 6282daa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rmw_implementation/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,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_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_info_array_t *))

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

void prefetch_symbols(void)
Expand Down Expand Up @@ -570,6 +588,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 6282daa

Please sign in to comment.