.. _program_listing_file_include_rmw_topic_endpoint_info.h: Program Listing for File topic_endpoint_info.h ============================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/rmw/topic_endpoint_info.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef RMW__TOPIC_ENDPOINT_INFO_H_ #define RMW__TOPIC_ENDPOINT_INFO_H_ #ifdef __cplusplus extern "C" { #endif #include "rcutils/allocator.h" #include "rmw/types.h" #include "rmw/visibility_control.h" typedef struct RMW_PUBLIC_TYPE rmw_topic_endpoint_info_s { const char * node_name; const char * node_namespace; const char * topic_type; rmw_endpoint_type_t endpoint_type; uint8_t endpoint_gid[RMW_GID_STORAGE_SIZE]; rmw_qos_profile_t qos_profile; } rmw_topic_endpoint_info_t; RMW_PUBLIC RMW_WARN_UNUSED rmw_topic_endpoint_info_t rmw_get_zero_initialized_topic_endpoint_info(void); RMW_PUBLIC RMW_WARN_UNUSED rmw_ret_t rmw_topic_endpoint_info_fini( rmw_topic_endpoint_info_t * topic_endpoint_info, rcutils_allocator_t * allocator); RMW_PUBLIC RMW_WARN_UNUSED rmw_ret_t rmw_topic_endpoint_info_set_topic_type( rmw_topic_endpoint_info_t * topic_endpoint_info, const char * topic_type, rcutils_allocator_t * allocator); RMW_PUBLIC RMW_WARN_UNUSED rmw_ret_t rmw_topic_endpoint_info_set_node_name( rmw_topic_endpoint_info_t * topic_endpoint_info, const char * node_name, rcutils_allocator_t * allocator); RMW_PUBLIC RMW_WARN_UNUSED rmw_ret_t rmw_topic_endpoint_info_set_node_namespace( rmw_topic_endpoint_info_t * topic_endpoint_info, const char * node_namespace, rcutils_allocator_t * allocator); RMW_PUBLIC RMW_WARN_UNUSED rmw_ret_t rmw_topic_endpoint_info_set_endpoint_type( rmw_topic_endpoint_info_t * topic_endpoint_info, rmw_endpoint_type_t type); RMW_PUBLIC RMW_WARN_UNUSED rmw_ret_t rmw_topic_endpoint_info_set_gid( rmw_topic_endpoint_info_t * topic_endpoint_info, const uint8_t * gid, size_t size); RMW_PUBLIC RMW_WARN_UNUSED rmw_ret_t rmw_topic_endpoint_info_set_qos_profile( rmw_topic_endpoint_info_t * topic_endpoint_info, const rmw_qos_profile_t * qos_profile); #ifdef __cplusplus } #endif #endif // RMW__TOPIC_ENDPOINT_INFO_H_