Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Added stubs for rmw_get_publishers_info_by_topic and
Browse files Browse the repository at this point in the history
rmw_get_subscriptions_info_by_topic

Signed-off-by: Jaison Titus <[email protected]>
  • Loading branch information
jaisontj committed Nov 11, 2019
1 parent 1213249 commit 746e67c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions rmw_opensplice_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
55 changes: 55 additions & 0 deletions rmw_opensplice_cpp/src/rmw_get_topic_info.cpp
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 746e67c

Please sign in to comment.