blob: b8162a467f8edfbeaccd959f14548d178cf79977 [file] [log] [blame]
Summer Qin153f3df2022-11-17 15:51:02 +08001/*
Kevin Peng0eca5ea2023-07-21 17:32:31 +08002 * Copyright (c) 2023, Arm Limited. All rights reserved.
Summer Qin153f3df2022-11-17 15:51:02 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8/*
Kevin Peng0eca5ea2023-07-21 17:32:31 +08009 * Generated by erpcgen 1.9.1 on Fri Jul 21 17:28:31 2023.
Summer Qin153f3df2022-11-17 15:51:02 +080010 *
11 * AUTOGENERATED - DO NOT EDIT
12 */
13
14
Kevin Peng0eca5ea2023-07-21 17:32:31 +080015#if !defined(_tfm_erpc_server_h_)
16#define _tfm_erpc_server_h_
Summer Qin153f3df2022-11-17 15:51:02 +080017
18#ifdef __cplusplus
19#include "erpc_server.h"
20#include "erpc_codec.h"
21extern "C"
22{
Kevin Peng0eca5ea2023-07-21 17:32:31 +080023#include "tfm_erpc.h"
Summer Qin153f3df2022-11-17 15:51:02 +080024#include <stdint.h>
25#include <stdbool.h>
26}
27
28#if 10901 != ERPC_VERSION_NUMBER
29#error "The generated shim code version is different to the rest of eRPC code."
30#endif
31
32
33/*!
34 * @brief Service subclass for psa_client_api.
35 */
36class psa_client_api_service : public erpc::Service
37{
38public:
39 psa_client_api_service() : Service(kpsa_client_api_service_id) {}
40
41 /*! @brief Call the correct server shim based on method unique ID. */
42 virtual erpc_status_t handleInvocation(uint32_t methodId, uint32_t sequence, erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory);
43
44private:
45 /*! @brief Server shim for psa_framework_version of psa_client_api interface. */
46 erpc_status_t psa_framework_version_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence);
47
48 /*! @brief Server shim for psa_version of psa_client_api interface. */
49 erpc_status_t psa_version_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence);
50
51 /*! @brief Server shim for erpc_psa_call of psa_client_api interface. */
52 erpc_status_t erpc_psa_call_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence);
Kevin Peng0eca5ea2023-07-21 17:32:31 +080053
54 /*! @brief Server shim for psa_connect of psa_client_api interface. */
55 erpc_status_t psa_connect_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence);
56
57 /*! @brief Server shim for psa_close of psa_client_api interface. */
58 erpc_status_t psa_close_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence);
Summer Qin153f3df2022-11-17 15:51:02 +080059};
60
61extern "C" {
62#else
Kevin Peng0eca5ea2023-07-21 17:32:31 +080063#include "tfm_erpc.h"
Summer Qin153f3df2022-11-17 15:51:02 +080064#endif // __cplusplus
65
66typedef void * erpc_service_t;
67
68erpc_service_t create_psa_client_api_service(void);
69
70#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC
71void destroy_psa_client_api_service(erpc_service_t service);
72#elif ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_STATIC
73void destroy_psa_client_api_service(void);
74#else
75#warning "Unknown eRPC allocation policy!"
76#endif
77
78#ifdef __cplusplus
79}
80#endif // __cplusplus
81
Kevin Peng0eca5ea2023-07-21 17:32:31 +080082#endif // _tfm_erpc_server_h_