|
| 1 | +// Copyright 2025 Minju Lee (이민주). All rights reserved. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +#include "rmw/get_service_endpoint_info.h" |
| 16 | +#include "rmw/service_endpoint_info_array.h" |
| 17 | +#include "rmw/types.h" |
| 18 | +#include "rmw_fastrtps_dynamic_cpp/identifier.hpp" |
| 19 | +#include "rmw_fastrtps_shared_cpp/rmw_common.hpp" |
| 20 | + |
| 21 | +extern "C" |
| 22 | +{ |
| 23 | +rmw_ret_t |
| 24 | +rmw_get_clients_info_by_service( |
| 25 | + const rmw_node_t * node, |
| 26 | + rcutils_allocator_t * allocator, |
| 27 | + const char * service_name, |
| 28 | + bool no_mangle, |
| 29 | + rmw_service_endpoint_info_array_t * clients_info) |
| 30 | +{ |
| 31 | + return rmw_fastrtps_shared_cpp::__rmw_get_clients_info_by_service( |
| 32 | + eprosima_fastrtps_identifier, node, allocator, service_name, no_mangle, clients_info); |
| 33 | +} |
| 34 | + |
| 35 | +rmw_ret_t |
| 36 | +rmw_get_servers_info_by_service( |
| 37 | + const rmw_node_t * node, |
| 38 | + rcutils_allocator_t * allocator, |
| 39 | + const char * service_name, |
| 40 | + bool no_mangle, |
| 41 | + rmw_service_endpoint_info_array_t * servers_info) |
| 42 | +{ |
| 43 | + return rmw_fastrtps_shared_cpp::__rmw_get_servers_info_by_service( |
| 44 | + eprosima_fastrtps_identifier, node, allocator, service_name, no_mangle, servers_info); |
| 45 | +} |
| 46 | +} // extern "C" |
0 commit comments