From 746e67c0e96e6867122b2c6a5bf8a970b22e4662 Mon Sep 17 00:00:00 2001 From: Jaison Titus Date: Fri, 18 Oct 2019 16:07:46 -0700 Subject: [PATCH] Added stubs for rmw_get_publishers_info_by_topic and rmw_get_subscriptions_info_by_topic Signed-off-by: Jaison Titus --- rmw_opensplice_cpp/CMakeLists.txt | 1 + rmw_opensplice_cpp/src/rmw_get_topic_info.cpp | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 rmw_opensplice_cpp/src/rmw_get_topic_info.cpp diff --git a/rmw_opensplice_cpp/CMakeLists.txt b/rmw_opensplice_cpp/CMakeLists.txt index 6e3b3de5..49f5e4fe 100644 --- a/rmw_opensplice_cpp/CMakeLists.txt +++ b/rmw_opensplice_cpp/CMakeLists.txt @@ -79,6 +79,7 @@ add_library(rmw_opensplice_cpp SHARED src/rmw_wait_set.cpp src/serialization_format.cpp src/types.cpp + src/rmw_get_topic_info.cpp ) ament_target_dependencies(rmw_opensplice_cpp "rcpputils" diff --git a/rmw_opensplice_cpp/src/rmw_get_topic_info.cpp b/rmw_opensplice_cpp/src/rmw_get_topic_info.cpp new file mode 100644 index 00000000..fdc51e15 --- /dev/null +++ b/rmw_opensplice_cpp/src/rmw_get_topic_info.cpp @@ -0,0 +1,55 @@ +// 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. + +#include "rmw/error_handling.h" +#include "rmw/rmw.h" +#include "rmw/types.h" + +#include "identifier.hpp" +#include "types.hpp" + +extern "C" +{ +rmw_ret_t +rmw_get_publishers_info_by_topic( + const rmw_node_t * node, + rcutils_allocator_t * allocator, + const char * topic_name, + bool no_mangle, + rmw_topic_info_array_t * publishers_info) +{ + (void) node; + (void) allocator; + (void) topic_name; + (void) no_mangle; + (void) publishers_info; + return RMW_RET_UNSUPPORTED; +} + +rmw_ret_t +rmw_get_subscriptions_info_by_topic( + const rmw_node_t * node, + rcutils_allocator_t * allocator, + const char * topic_name, + bool no_mangle, + rmw_topic_info_array_t * subscriptions_info) +{ + (void) node; + (void) allocator; + (void) topic_name; + (void) no_mangle; + (void) subscriptions_info; + return RMW_RET_UNSUPPORTED; +} +} // extern "C"