blob: d5e87356f1aa947fea2618cbb705303040258e94 [file] [log] [blame]
/*
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stddef.h>
#include <protocols/rpc/common/packed-c/status.h>
#include "service_client.h"
psa_status_t service_client_init(
struct service_client *context,
struct rpc_caller *caller)
{
context->caller = caller;
context->rpc_status = TS_RPC_CALL_ACCEPTED;
context->service_info.supported_encodings = 0;
context->service_info.max_payload = 0;
return PSA_SUCCESS;
}
void service_client_deinit(
struct service_client *context)
{
context->caller = NULL;
}
void service_client_set_service_info(
struct service_client *context,
const struct service_info *service_info)
{
context->service_info = *service_info;
}