AuditLog: Align the implementation to the PSA header
This change modifies the AuditLog service implementation
to reflect the changes introduced by the PSA compliant API
interface. The symbol name patterns for functions, variables,
folders and source files are also changed to be audit_* /
tfm_audit*.
Change-Id: I674060979961f568912870f49a72ed571499f059
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
diff --git a/secure_fw/services/audit_logging/audit_wrappers.c b/secure_fw/services/audit_logging/audit_wrappers.c
new file mode 100644
index 0000000..5640e5e
--- /dev/null
+++ b/secure_fw/services/audit_logging/audit_wrappers.c
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#include "audit_core.h"
+#include "audit_wrappers.h"
+#include "psa_audit_defs.h"
+
+/*!
+ * \defgroup public Public functions, TF-M compatible wrappers
+ *
+ */
+
+/*!@{*/
+enum psa_audit_err audit_core_retrieve_record_wrapper(
+ const struct audit_core_retrieve_input *input_s,
+ struct audit_core_retrieve_output *output_s)
+{
+ return audit_core_retrieve_record(input_s->record_index,
+ input_s->buffer_size,
+ input_s->token,
+ input_s->token_size,
+ output_s->buffer,
+ output_s->record_size);
+}
+/*!@}*/