Julian Hall | 6c59e4e | 2020-11-23 17:50:47 +0100 | [diff] [blame^] | 1 | /* |
| 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 | |
| 10 | rpc_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 | |
| 16 | rpc_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 | |
| 22 | void rpc_caller_end(struct rpc_caller *s, rpc_call_handle handle) |
| 23 | { |
| 24 | s->call_end(s->context, handle); |
| 25 | } |