@@ -34,8 +34,13 @@ extern "C"
3434#include "rcl/visibility_control.h"
3535
3636typedef rmw_names_and_types_t rcl_names_and_types_t ;
37+ typedef rmw_topic_endpoint_info_t rcl_topic_endpoint_info_t ;
38+ typedef rmw_topic_endpoint_info_array_t rcl_topic_endpoint_info_array_t ;
3739
3840#define rcl_get_zero_initialized_names_and_types rmw_get_zero_initialized_names_and_types
41+ #define rcl_get_zero_initialized_topic_endpoint_info_array \
42+ rmw_get_zero_initialized_topic_endpoint_info_array
43+ #define rcl_topic_endpoint_info_array_fini rmw_topic_endpoint_info_array_fini
3944
4045/// Return a list of topic names and types for publishers associated with a node.
4146/**
@@ -540,7 +545,7 @@ rcl_count_subscribers(
540545 * Each element in the `publishers_info` array will contain the node name, node namespace,
541546 * topic type, gid and the qos profile of the publisher.
542547 * It is the responsibility of the caller to ensure that `publishers_info` parameter points
543- * to a valid struct of type rmw_topic_endpoint_info_array_t .
548+ * to a valid struct of type rcl_topic_endpoint_info_array_t .
544549 * The `count` field inside the struct must be set to 0 and the `info_array` field inside
545550 * the struct must be set to null.
546551 * \see rmw_get_zero_initialized_topic_endpoint_info_array
@@ -584,7 +589,7 @@ rcl_get_publishers_info_by_topic(
584589 rcutils_allocator_t * allocator ,
585590 const char * topic_name ,
586591 bool no_mangle ,
587- rmw_topic_endpoint_info_array_t * publishers_info );
592+ rcl_topic_endpoint_info_array_t * publishers_info );
588593
589594/// Return a list of all subscriptions to a topic.
590595/**
@@ -601,7 +606,7 @@ rcl_get_publishers_info_by_topic(
601606 * Each element in the `subscriptions_info` array will contain the node name, node namespace,
602607 * topic type, gid and the qos profile of the subscription.
603608 * It is the responsibility of the caller to ensure that `subscriptions_info` parameter points
604- * to a valid struct of type rmw_topic_endpoint_info_array_t .
609+ * to a valid struct of type rcl_topic_endpoint_info_array_t .
605610 * The `count` field inside the struct must be set to 0 and the `info_array` field inside
606611 * the struct must be set to null.
607612 * \see rmw_get_zero_initialized_topic_endpoint_info_array
@@ -645,7 +650,7 @@ rcl_get_subscriptions_info_by_topic(
645650 rcutils_allocator_t * allocator ,
646651 const char * topic_name ,
647652 bool no_mangle ,
648- rmw_topic_endpoint_info_array_t * subscriptions_info );
653+ rcl_topic_endpoint_info_array_t * subscriptions_info );
649654
650655/// Check if a service server is available for the given service client.
651656/**
0 commit comments