emu_log.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define logInfo(e, format...)   emu_log(e, EMU_LOG_INFO, format)
#define logDebug(e, format...)
#define logPF(e)   logDebug(e, "in <%s> %s:%i>\n", __PRETTY_FUNCTION__, __FILE__, __LINE__)

Typedefs

typedef void(* emu_log_logcb )(struct emu *e, enum emu_log_level level, const char *msg)

Enumerations

enum  emu_log_level { EMU_LOG_NONE, EMU_LOG_INFO, EMU_LOG_DEBUG }

Functions

struct emu_loggingemu_log_new (void)
void emu_log_free (struct emu_logging *el)
void emu_log_level_set (struct emu_logging *el, enum emu_log_level level)
void emu_log (struct emu *e, enum emu_log_level level, const char *format,...)
void emu_log_set_logcb (struct emu_logging *el, emu_log_logcb logcb)
void emu_log_default_logcb (struct emu *e, enum emu_log_level level, const char *msg)

Define Documentation

#define logDebug ( e,
format...   ) 
#define logInfo ( e,
format...   )     emu_log(e, EMU_LOG_INFO, format)
#define logPF (  )     logDebug(e, "in <%s> %s:%i>\n", __PRETTY_FUNCTION__, __FILE__, __LINE__)

Referenced by emu_shellcode_test().


Typedef Documentation

typedef void(* emu_log_logcb)(struct emu *e, enum emu_log_level level, const char *msg)

Enumeration Type Documentation

Enumerator:
EMU_LOG_NONE 
EMU_LOG_INFO 
EMU_LOG_DEBUG 

Function Documentation

void emu_log ( struct emu e,
enum emu_log_level  level,
const char *  format,
  ... 
)

References EMU_LOG_NONE, emu_logging_get(), emu_logging::logcb, and emu_logging::loglevel.

Here is the call graph for this function:

void emu_log_default_logcb ( struct emu e,
enum emu_log_level  level,
const char *  msg 
)

Referenced by emu_log_new().

void emu_log_free ( struct emu_logging el  ) 

Referenced by emu_free().

void emu_log_level_set ( struct emu_logging el,
enum emu_log_level  level 
)

References emu_logging::loglevel.

struct emu_logging* emu_log_new ( void   )  [read]

References emu_log_default_logcb(), and emu_logging::logcb.

Referenced by emu_new().

Here is the call graph for this function:

void emu_log_set_logcb ( struct emu_logging el,
emu_log_logcb  logcb 
)

References emu_logging::logcb.


Generated on Sun Jan 9 16:48:12 2011 for libemu by  doxygen 1.6.1