This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stubs for rmw_get_publishers_info_by_topic and
rmw_get_subscriptions_info_by_topic. Signed-off-by: Jaison Titus <[email protected]>
- Loading branch information
Showing
7 changed files
with
161 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// 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/rmw.h" | ||
|
||
#include "rmw_connext_shared_cpp/topic_info.hpp" | ||
|
||
#include "rmw_connext_cpp/identifier.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) | ||
{ | ||
return get_publishers_info_by_topic(rti_connext_identifier, node, allocator, topic_name, | ||
no_mangle, publishers_info); | ||
} | ||
|
||
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) | ||
{ | ||
|
||
return get_subscriptions_info_by_topic(rti_connext_identifier, node, allocator, topic_name, | ||
no_mangle, subscriptions_info); | ||
} | ||
} // extern "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
rmw_connext_shared_cpp/include/rmw_connext_shared_cpp/topic_info.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// 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_CONNEXT_SHARED_CPP__TOPIC_INFO_HPP | ||
#define RMW_CONNEXT_SHARED_CPP__TOPIC_INFO_HPP | ||
|
||
#include "rmw/types.h" | ||
|
||
#include "rmw_connext_shared_cpp/visibility_control.h" | ||
|
||
RMW_CONNEXT_SHARED_CPP_PUBLIC | ||
rmw_ret_t | ||
get_publishers_info_by_topic( | ||
const char * identifier, | ||
const rmw_node_t * node, | ||
rcutils_allocator_t * allocator, | ||
const char * topic_name, | ||
bool no_mangle, | ||
rmw_topic_info_array_t * publishers_info); | ||
|
||
RMW_CONNEXT_SHARED_CPP_PUBLIC | ||
rmw_ret_t | ||
get_subscriptions_info_by_topic( | ||
const char * identifier, | ||
const rmw_node_t * node, | ||
rcutils_allocator_t * allocator, | ||
const char * topic_name, | ||
bool no_mangle, | ||
rmw_topic_info_array_t * subscriptions_info); | ||
|
||
#endif // RMW_CONNEXT_SHARED_CPP__TOPIC_INFO_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// 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 <map> | ||
|
||
#include "rmw_connext_shared_cpp/count.hpp" | ||
#include "rmw_connext_shared_cpp/demangle.hpp" | ||
#include "rmw_connext_shared_cpp/types.hpp" | ||
|
||
#include "rmw/error_handling.h" | ||
|
||
rmw_ret_t | ||
get_publishers_info_by_topic( | ||
const char *, | ||
const rmw_node_t *, | ||
rcutils_allocator_t *, | ||
const char *, | ||
bool, | ||
rmw_topic_info_array_t *) | ||
{ | ||
return RMW_RET_UNSUPPORTED; | ||
} | ||
|
||
rmw_ret_t | ||
get_subscriptions_info_by_topic( | ||
const char *, | ||
const rmw_node_t *, | ||
rcutils_allocator_t * , | ||
const char *, | ||
bool, | ||
rmw_topic_info_array_t *) | ||
{ | ||
return RMW_RET_UNSUPPORTED; | ||
} |