/*
 * @file tl_log.h
 * @brief softsim handler header file
 * Copyright (c) 2015, Samsung Electronics Corporation. All rights reserved.
 */
#ifndef __tl_log_h__
#define	 __tl_log_h__
//#include <comdef.h>

#include "target.h"
//#include "qsee_log.h"
#define LOG_MSG_LOW      0x01
#define LOG_MSG_MED      0x02
#define LOG_MSG_HIGH     0x04
#define LOG_MSG_DEBUG    LOG_MSG_LOW
#define LOG_MSG_ERROR    0x08
#define LOG_MSG_FATAL    0x10

#define SOFTSIM_LOGD( fmt, ARGS... ) tl_log(LOG_MSG_DEBUG, "[ SOFTSIM ]"fmt, ## ARGS )
#define SOFTSIM_LOGI( fmt, ARGS... ) tl_log(LOG_MSG_HIGH, "[ SOFTSIM ]"fmt, ## ARGS )
#define SOFTSIM_LOGE( fmt, ARGS... ) tl_log(LOG_MSG_ERROR, "[ SOFTSIM ]"fmt, ## ARGS )
#define SOFTSIM_HI_LOGD( fmt, ARGS... ) tl_log(LOG_MSG_HIGH, "[ SOFTSIM ]"fmt, ## ARGS )

//extern void dump_bytes(const char *prompt, uint8_t *buff, uint32_t size);
extern void init_log(cmd_req_t *req, cmd_rsp_t *rsp);
extern uint32_t get_log_pos(void);
extern void close_log(void);
extern void tl_log(int, const char *fmt, ...);
#endif /*__tl_log_h__*/
