#ifndef	_LOGGING_H_
#define	_LOGGING_H_

/*=========================================================================
Function :  tima_log_msg
==========================================================================
*
* Task
* Function to read debug & secure logs and to write message in debug/secure log.
*
* Input Parameter 1:  char *buf : Pointer which points to msg which caller wants to write in WRITE case and  a buffer in which caller wants to receive logs in READ case
* Input Parameter 2: uint32_t *size : For WRITE case not important, For READ case , size of the buffer passed by caller to read logs
* Input Parameter 3: uint32_t cmd_id : Command ID defined in tima_util_log.h
*
* Note: size value may be different when this fuction returns.It can be modified by logging TA(tima_util) with exact log buffer size value.
*/
void tima_log_msg(char *buf, uint32_t *size, uint32_t cmd_id);

//#define TIMA_UTIL_SRV_UUID	{0,0,0,{0,0,0,0x56,0x56,0x56,0x54,0x0a}} 
#define SVC_TIMAUTIL_ID                       0x00070000
#define TIMAUTIL_CREATE_CMD(x) (SVC_TIMAUTIL_ID | x)

/**
 * Commands for TIMA UTIL application.
 * */

#define	LOG_ENTRY_SIZE	128
#define	LOG_MSG_SIZE	(LOG_ENTRY_SIZE - sizeof(uint32_t) - sizeof(uint32_t))
extern char g_log_msg[LOG_MSG_SIZE];
#include "sec_log.h"
#include "debug_log.h"
#endif
