aboutsummaryrefslogtreecommitdiff
path: root/components/rpc/common/caller/rpc_caller.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/rpc/common/caller/rpc_caller.c')
-rw-r--r--components/rpc/common/caller/rpc_caller.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/components/rpc/common/caller/rpc_caller.c b/components/rpc/common/caller/rpc_caller.c
new file mode 100644
index 000000000..4fd1e5adf
--- /dev/null
+++ b/components/rpc/common/caller/rpc_caller.c
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <rpc_caller.h>
+#include <stdint.h>
+
+rpc_call_handle rpc_caller_begin(struct rpc_caller *s,
+ uint8_t **req_buf, size_t req_len)
+{
+ return s->call_begin(s->context, req_buf, req_len);
+}
+
+rpc_status_t rpc_caller_invoke(struct rpc_caller *s, rpc_call_handle handle,
+ uint32_t opcode, int *opstatus, uint8_t **resp_buf, size_t *resp_len)
+{
+ return s->call_invoke(s->context, handle, opcode, opstatus, resp_buf, resp_len);
+}
+
+void rpc_caller_end(struct rpc_caller *s, rpc_call_handle handle)
+{
+ s->call_end(s->context, handle);
+}