Introduce common service client
In preparation for making common service access information
such as the maximum request length or supported serializations,
a common service client has been introduced that standardizes
common client state, including any available service access
info. All clients refactored to use the common service client.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I31336901476f5647d2ed00294716940f475da08c
diff --git a/components/service/crypto/client/cpp/crypto_client.h b/components/service/crypto/client/cpp/crypto_client.h
index 03cf4b3..d996380 100644
--- a/components/service/crypto/client/cpp/crypto_client.h
+++ b/components/service/crypto/client/cpp/crypto_client.h
@@ -9,8 +9,7 @@
#include <cstdint>
#include <psa/crypto.h>
-
-struct rpc_caller;
+#include <service/common/client/service_client.h>
/*
* Provides a client interface for accessing an instance of the Crypto service
@@ -72,8 +71,7 @@
crypto_client(struct rpc_caller *caller);
void set_caller(struct rpc_caller *caller);
- struct rpc_caller *m_caller;
- int m_err_rpc_status;
+ struct service_client m_client;
};
#endif /* CRYPTO_CLIENT_H */