diff options
author | julhal01 <julian.hall@arm.com> | 2020-12-15 13:39:01 +0000 |
---|---|---|
committer | Gyorgy Szing <Gyorgy.Szing@arm.com> | 2021-04-14 16:59:03 +0200 |
commit | c3f4e9a7550ee4fddf2d24127ef33ca514351806 (patch) | |
tree | e61b25f7a93ea4ed2f26363186cc236aba06dd24 /components/service/secure_storage/provider/secure_flash_store/sfs_provider.c | |
parent | 35c6d643b5f0c0387702e22bf742dd4878ca5ddd (diff) | |
download | trusted-services-c3f4e9a7550ee4fddf2d24127ef33ca514351806.tar.gz |
Extend RPC parameters
The RPC model is extended to include parameters for identifying
an RPC interface instance at an endpoint and another for
identifying the parameter encoding. The interface ID parameter
allows multiple service interfaces to be co-located. The encoding
parameter allows clients to use different parameter serialization
schemes and to specify the format in each RPC request.
Signed-off-by: julhal01 <julian.hall@arm.com>
Change-Id: I201b3417dc0e9f655113b9931db3494e41f1d74b
Diffstat (limited to 'components/service/secure_storage/provider/secure_flash_store/sfs_provider.c')
-rw-r--r-- | components/service/secure_storage/provider/secure_flash_store/sfs_provider.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/service/secure_storage/provider/secure_flash_store/sfs_provider.c b/components/service/secure_storage/provider/secure_flash_store/sfs_provider.c index 5c801ed67..76b6cbac1 100644 --- a/components/service/secure_storage/provider/secure_flash_store/sfs_provider.c +++ b/components/service/secure_storage/provider/secure_flash_store/sfs_provider.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -9,7 +9,7 @@ #include <protocols/service/secure_storage/packed-c/secure_storage_proto.h> #include <protocols/service/psa/packed-c/status.h> #include <protocols/rpc/common/packed-c/status.h> -#include <components/rpc/common/endpoint/call_ep.h> +#include <components/rpc/common/endpoint/rpc_interface.h> #include <stdio.h> @@ -21,9 +21,9 @@ static const struct service_handler handler_table[] = { {TS_SECURE_STORAGE_OPCODE_REMOVE, sfs_remove_handler} }; -struct call_ep *sfs_provider_init(struct sfs_provider *context) +struct rpc_interface *sfs_provider_init(struct sfs_provider *context) { - struct call_ep *call_ep = NULL; + struct rpc_interface *rpc_interface = NULL; if (context == NULL) goto out; @@ -34,10 +34,10 @@ struct call_ep *sfs_provider_init(struct sfs_provider *context) service_provider_init(&context->base_provider, context, handler_table, sizeof(handler_table) / sizeof(handler_table[0])); - call_ep = service_provider_get_call_ep(&context->base_provider); + rpc_interface = service_provider_get_rpc_interface(&context->base_provider); out: - return call_ep; + return rpc_interface; } rpc_status_t sfs_set_handler(void *context, struct call_req *req) |