blob: a7522d8371209a1495534d320b464a78c68fad6c [file] [log] [blame]
Julian Hallf7f84952020-11-23 17:55:51 +01001/*
Imre Kise4367bb2023-07-04 13:55:14 +02002 * Copyright (c) 2020-2023, Arm Limited and Contributors. All rights reserved.
Julian Hallf7f84952020-11-23 17:55:51 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef DUMMY_CALLER
8#define DUMMY_CALLER
9
Imre Kise4367bb2023-07-04 13:55:14 +020010#include "rpc_caller.h"
Julian Hallf7f84952020-11-23 17:55:51 +010011#include <stdint.h>
12
13#ifdef __cplusplus
14extern "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 Hallf7f84952020-11-23 17:55:51 +010025
Imre Kise4367bb2023-07-04 13:55:14 +020026rpc_status_t dummy_caller_init(struct rpc_caller_interface *caller, rpc_status_t rpc_status,
27 service_status_t service_status);
28rpc_status_t dummy_caller_deinit(struct rpc_caller_interface *caller);
Julian Hallf7f84952020-11-23 17:55:51 +010029
30#ifdef __cplusplus
31}
32#endif
33
34#endif /* DUMMY_CALLER */