AuditLog: Non Secure interface
-- Add the NS API interface and related SVC functions
for the Audit Logging secure service.
-- Modify the example application to support the new
NS interface for the Audit Logging secure service.
Change-Id: I6158742585db19b58e45704f13a4e5b1b4557d69
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
diff --git a/interface/include/tfm_log_api.h b/interface/include/tfm_log_api.h
new file mode 100644
index 0000000..24b73b4
--- /dev/null
+++ b/interface/include/tfm_log_api.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __TFM_LOG_API__
+#define __TFM_LOG_API__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "tfm_log_defs.h"
+
+/**
+ * \brief Retrieves the audit log
+ *
+ * \param[in] size Maximum number of bytes to retrieve from the log
+ * \param[out] buffer Pointer to the buffer that will hold the log
+ * \param[out] log_size Pointer to the actual size of the log retrieved
+ *
+ * \return Returns TFM_LOG_ERR_SUCCESS if retrieval has been completed,
+ * otherwise error as specified in \ref tfm_log_err
+ */
+enum tfm_log_err tfm_log_retrieve(uint32_t size,
+ uint8_t *buffer,
+ uint32_t *log_size);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TFM_LOG_API__ */