Skip to content

Commit

Permalink
Merge pull request #8 from Tobias-Fischer/patch-1
Browse files Browse the repository at this point in the history
Add some methods (returning non-supported)
  • Loading branch information
IsabelParedes authored Dec 5, 2023
2 parents 1ec4dd0 + 452f6b7 commit a71b8b5
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions rmw_wasm_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ set(${PROJECT_NAME}_SOURCES
src/rmw_gid.cpp
src/rmw_qos.cpp
src/rmw_log.cpp
src/rmw_get_network_flow_endpoints.cpp
)

add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES})
Expand Down
46 changes: 46 additions & 0 deletions rmw_wasm_cpp/src/rmw_get_network_flow_endpoints.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2023 Open Source Robotics Foundation, Inc.
//
// 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/get_network_flow_endpoints.h"

extern "C"
{
///==============================================================================
/// Get network flow endpoints of a publisher
rmw_ret_t
rmw_publisher_get_network_flow_endpoints(
const rmw_publisher_t * publisher,
rcutils_allocator_t * allocator,
rmw_network_flow_endpoint_array_t * network_flow_endpoint_array)
{
(void) publisher;
(void) allocator;
(void) network_flow_endpoint_array;
return RMW_RET_UNSUPPORTED;
}

///==============================================================================
/// Get network flow endpoints of a subscription
rmw_ret_t
rmw_subscription_get_network_flow_endpoints(
const rmw_subscription_t * subscription,
rcutils_allocator_t * allocator,
rmw_network_flow_endpoint_array_t * network_flow_endpoint_array)
{
(void) subscription;
(void) allocator;
(void) network_flow_endpoint_array;
return RMW_RET_UNSUPPORTED;
}
} // extern "C"
38 changes: 38 additions & 0 deletions rmw_wasm_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,42 @@ extern "C"
return rmw_node->context->impl->graph_guard_condition;
}

//==============================================================================
/// Wait until all published message data is acknowledged or until the specified timeout elapses.
rmw_ret_t
rmw_publisher_wait_for_all_acked(
const rmw_publisher_t * publisher,
rmw_time_t wait_timeout)
{
static_cast<void>(publisher);
static_cast<void>(wait_timeout);
return RMW_RET_UNSUPPORTED;
}

//==============================================================================
/// Retrieve the content filter options of the subscription.
rmw_ret_t
rmw_subscription_get_content_filter(
const rmw_subscription_t * subscription,
rcutils_allocator_t * allocator,
rmw_subscription_content_filter_options_t * options)
{
static_cast<void>(subscription);
static_cast<void>(allocator);
static_cast<void>(options);
return RMW_RET_UNSUPPORTED;
}

//==============================================================================
/// Set the content filter options for the subscription.
rmw_ret_t
rmw_subscription_set_content_filter(
rmw_subscription_t * subscription,
const rmw_subscription_content_filter_options_t * options)
{
static_cast<void>(subscription);
static_cast<void>(options);
return RMW_RET_UNSUPPORTED;
}

} // extern "C"

0 comments on commit a71b8b5

Please sign in to comment.