Interface: Add psa/error.h header
Adds the psa/error.h header to the interface/include directory. Removes
definitions from psa/client.h that are now in psa/error.h. Fixes
includes for psa/client.h and psa/service.h so that each one includes
exactly the headers it depends on.
Change-Id: Icf6ae904977a4646f33202edb7d6842c2bc5b5cf
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
diff --git a/interface/include/psa/client.h b/interface/include/psa/client.h
index 71adb80..33e3f2d 100644
--- a/interface/include/psa/client.h
+++ b/interface/include/psa/client.h
@@ -8,13 +8,15 @@
#ifndef __PSA_CLIENT_H__
#define __PSA_CLIENT_H__
+#include <stddef.h>
+#include <stdint.h>
+
+#include "psa/error.h"
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <stdint.h>
-#include <stddef.h>
-
/*********************** PSA Client Macros and Types *************************/
#define PSA_FRAMEWORK_VERSION (0x0100)
@@ -22,7 +24,6 @@
#define PSA_VERSION_NONE (0)
/* PSA response types */
-#define PSA_SUCCESS (0)
#define PSA_CONNECTION_REFUSED (INT32_MIN + 1)
#define PSA_CONNECTION_BUSY (INT32_MIN + 2)
#define PSA_DROP_CONNECTION (INT32_MIN)
@@ -30,7 +31,6 @@
/* PSA message handles */
#define PSA_NULL_HANDLE ((psa_handle_t)0)
-typedef int32_t psa_status_t;
typedef int32_t psa_handle_t;
/**