Skip to content

Commit

Permalink
Add node graph functions
Browse files Browse the repository at this point in the history
* rmw_get_subscriber_names_and_types_by_node
* rmw_get_publisher_names_and_types_by_node
* rmw_get_service_names_and_types_by_node
  • Loading branch information
ross-desmond authored and clalancette committed Dec 6, 2018
1 parent 41052bd commit 57df078
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rmw_implementation/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include "rmw/error_handling.h"
#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_names_and_types.h"
#include "rmw/rmw.h"
Expand Down Expand Up @@ -375,6 +376,24 @@ RMW_INTERFACE_FN(rmw_wait,
rmw_subscriptions_t *, rmw_guard_conditions_t *, rmw_services_t *,
rmw_clients_t *, rmw_wait_set_t *, const rmw_time_t *))

RMW_INTERFACE_FN(rmw_get_publisher_names_and_types_by_node,
rmw_ret_t, RMW_RET_ERROR,
6, ARG_TYPES(
const rmw_node_t *, rcutils_allocator_t *, const char *, const char *, bool,
rmw_names_and_types_t *))

RMW_INTERFACE_FN(rmw_get_subscriber_names_and_types_by_node,
rmw_ret_t, RMW_RET_ERROR,
6, ARG_TYPES(
const rmw_node_t *, rcutils_allocator_t *, const char *, const char *, bool,
rmw_names_and_types_t *))

RMW_INTERFACE_FN(rmw_get_service_names_and_types_by_node,
rmw_ret_t, RMW_RET_ERROR,
5, ARG_TYPES(
const rmw_node_t *, rcutils_allocator_t *, const char *, const char *,
rmw_names_and_types_t *))

RMW_INTERFACE_FN(rmw_get_topic_names_and_types,
rmw_ret_t, RMW_RET_ERROR,
4, ARG_TYPES(
Expand Down Expand Up @@ -458,6 +477,9 @@ void prefetch_symbols(void)
GET_SYMBOL(rmw_create_wait_set)
GET_SYMBOL(rmw_destroy_wait_set)
GET_SYMBOL(rmw_wait)
GET_SYMBOL(rmw_get_publisher_names_and_types_by_node)
GET_SYMBOL(rmw_get_subscriber_names_and_types_by_node)
GET_SYMBOL(rmw_get_service_names_and_types_by_node)
GET_SYMBOL(rmw_get_topic_names_and_types)
GET_SYMBOL(rmw_get_service_names_and_types)
GET_SYMBOL(rmw_get_node_names)
Expand Down

0 comments on commit 57df078

Please sign in to comment.