blob: 24b73b4809557cec8c204a694cb4e2adeb1c5a13 [file] [log] [blame]
Antonio de Angelisf1c08512018-02-05 14:55:09 +00001/*
2 * Copyright (c) 2018, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __TFM_LOG_API__
9#define __TFM_LOG_API__
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include "tfm_log_defs.h"
16
17/**
18 * \brief Retrieves the audit log
19 *
20 * \param[in] size Maximum number of bytes to retrieve from the log
21 * \param[out] buffer Pointer to the buffer that will hold the log
22 * \param[out] log_size Pointer to the actual size of the log retrieved
23 *
24 * \return Returns TFM_LOG_ERR_SUCCESS if retrieval has been completed,
25 * otherwise error as specified in \ref tfm_log_err
26 */
27enum tfm_log_err tfm_log_retrieve(uint32_t size,
28 uint8_t *buffer,
29 uint32_t *log_size);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /* __TFM_LOG_API__ */