Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 1 | /* |
julhal01 | c3f4e9a | 2020-12-15 13:39:01 +0000 | [diff] [blame] | 2 | * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef DIRECT_CALLER_H |
| 8 | #define DIRECT_CALLER_H |
| 9 | |
Imre Kis | 9e46672 | 2023-07-04 13:54:34 +0200 | [diff] [blame] | 10 | #include "rpc_caller.h" |
| 11 | |
| 12 | struct rpc_service_interface; |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 18 | /** An rpc_caller that calls methods associated with a specific endpoint |
| 19 | * directly. Used when the caller and endpoint are running in the same |
| 20 | * execution context. |
| 21 | **/ |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 22 | |
Imre Kis | 9e46672 | 2023-07-04 13:54:34 +0200 | [diff] [blame] | 23 | rpc_status_t direct_caller_init(struct rpc_caller_interface *caller, |
| 24 | struct rpc_service_interface *service); |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 25 | |
Imre Kis | 9e46672 | 2023-07-04 13:54:34 +0200 | [diff] [blame] | 26 | rpc_status_t direct_caller_deinit(struct rpc_caller_interface *caller); |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } |
| 30 | #endif |
| 31 | |
| 32 | #endif /* DIRECT_CALLER_H */ |