Skip to content

Commit

Permalink
add rcl versions of rmw_topic_endpoint_info* types
Browse files Browse the repository at this point in the history
  • Loading branch information
mm318 committed Jan 21, 2020
1 parent 76b0d5d commit 4336787
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions rcl/include/rcl/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ extern "C"
#include "rcl/visibility_control.h"

typedef rmw_names_and_types_t rcl_names_and_types_t;
typedef rmw_topic_endpoint_info_t rcl_topic_endpoint_info_t;
typedef rmw_topic_endpoint_info_array_t rcl_topic_endpoint_info_array_t;

#define rcl_get_zero_initialized_names_and_types rmw_get_zero_initialized_names_and_types
#define rcl_get_zero_initialized_topic_endpoint_info_array \
rmw_get_zero_initialized_topic_endpoint_info_array
#define rcl_topic_endpoint_info_array_fini rmw_topic_endpoint_info_array_fini

/// Return a list of topic names and types for publishers associated with a node.
/**
Expand Down Expand Up @@ -540,7 +545,7 @@ rcl_count_subscribers(
* Each element in the `publishers_info` array will contain the node name, node namespace,
* topic type, gid and the qos profile of the publisher.
* It is the responsibility of the caller to ensure that `publishers_info` parameter points
* to a valid struct of type rmw_topic_endpoint_info_array_t.
* to a valid struct of type rcl_topic_endpoint_info_array_t.
* The `count` field inside the struct must be set to 0 and the `info_array` field inside
* the struct must be set to null.
* \see rmw_get_zero_initialized_topic_endpoint_info_array
Expand Down Expand Up @@ -584,7 +589,7 @@ rcl_get_publishers_info_by_topic(
rcutils_allocator_t * allocator,
const char * topic_name,
bool no_mangle,
rmw_topic_endpoint_info_array_t * publishers_info);
rcl_topic_endpoint_info_array_t * publishers_info);

/// Return a list of all subscriptions to a topic.
/**
Expand All @@ -601,7 +606,7 @@ rcl_get_publishers_info_by_topic(
* Each element in the `subscriptions_info` array will contain the node name, node namespace,
* topic type, gid and the qos profile of the subscription.
* It is the responsibility of the caller to ensure that `subscriptions_info` parameter points
* to a valid struct of type rmw_topic_endpoint_info_array_t.
* to a valid struct of type rcl_topic_endpoint_info_array_t.
* The `count` field inside the struct must be set to 0 and the `info_array` field inside
* the struct must be set to null.
* \see rmw_get_zero_initialized_topic_endpoint_info_array
Expand Down Expand Up @@ -645,7 +650,7 @@ rcl_get_subscriptions_info_by_topic(
rcutils_allocator_t * allocator,
const char * topic_name,
bool no_mangle,
rmw_topic_endpoint_info_array_t * subscriptions_info);
rcl_topic_endpoint_info_array_t * subscriptions_info);

/// Check if a service server is available for the given service client.
/**
Expand Down

0 comments on commit 4336787

Please sign in to comment.