blob: 4fd1e5adfc9bb3369b83f5d12109e2040879dbbf [file] [log] [blame]
Julian Hall6c59e4e2020-11-23 17:50:47 +01001/*
2 * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <rpc_caller.h>
8#include <stdint.h>
9
10rpc_call_handle rpc_caller_begin(struct rpc_caller *s,
11 uint8_t **req_buf, size_t req_len)
12{
13 return s->call_begin(s->context, req_buf, req_len);
14}
15
16rpc_status_t rpc_caller_invoke(struct rpc_caller *s, rpc_call_handle handle,
17 uint32_t opcode, int *opstatus, uint8_t **resp_buf, size_t *resp_len)
18{
19 return s->call_invoke(s->context, handle, opcode, opstatus, resp_buf, resp_len);
20}
21
22void rpc_caller_end(struct rpc_caller *s, rpc_call_handle handle)
23{
24 s->call_end(s->context, handle);
25}