Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 1 | /* |
Imre Kis | e4367bb | 2023-07-04 13:55:14 +0200 | [diff] [blame] | 2 | * Copyright (c) 2020-2023, 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 DUMMY_CALLER |
| 8 | #define DUMMY_CALLER |
| 9 | |
Imre Kis | e4367bb | 2023-07-04 13:55:14 +0200 | [diff] [blame] | 10 | #include "rpc_caller.h" |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 11 | #include <stdint.h> |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | /* |
| 18 | * An rpc_caller that is used to return a suitable permanent status |
| 19 | * code if an attempt is made to invoke a remote method where an |
| 20 | * end-to-end rpc session has failed to be established. Intended |
| 21 | * to be used when a session with a real rpc endpoint cant't be |
| 22 | * established but a client doesn't wish to treat the condition |
| 23 | * as a fatal error. |
| 24 | */ |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 25 | |
Imre Kis | e4367bb | 2023-07-04 13:55:14 +0200 | [diff] [blame] | 26 | rpc_status_t dummy_caller_init(struct rpc_caller_interface *caller, rpc_status_t rpc_status, |
| 27 | service_status_t service_status); |
| 28 | rpc_status_t dummy_caller_deinit(struct rpc_caller_interface *caller); |
Julian Hall | f7f8495 | 2020-11-23 17:55:51 +0100 | [diff] [blame] | 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | |
| 34 | #endif /* DUMMY_CALLER */ |