liboildebug.h File Reference

Typedef OilDebugPrintFunc

typedef void(*OilDebugPrintFunc

Enum OilDebugLevel

OilDebugLevel:

Enumeration describing debug levels in Liboil.

OIL_ERROR

OIL_ERROR:

Macro to call OIL_DEBUG_PRINT() with a level of OIL_DEBUG_ERROR.

OIL_WARNING

OIL_WARNING:

Macro to call OIL_DEBUG_PRINT() with a level of OIL_DEBUG_WARNING.

OIL_INFO

OIL_INFO:

Macro to call OIL_DEBUG_PRINT() with a level of OIL_DEBUG_INFO.

OIL_DEBUG

OIL_DEBUG:

Macro to call OIL_DEBUG_PRINT() with a level of OIL_DEBUG_DEBUG.

OIL_LOG

OIL_LOG:

Macro to call OIL_DEBUG_PRINT() with a level of OIL_DEBUG_LOG.

OIL_FUNCTION

OIL_FUNCTION:

Internal macro that points to __PRETTY_FUNCTION__ or __func__ if the former is not available.

OIL_DEBUG_PRINT

OIL_DEBUG_PRINT: : @...:

Macro to call oil_debug_print() with the correct values for the name of the source file, line of source file, and function.

oil_debug_set_print_function ( OilDebugPrintFunc )

IMPORT_C voidoil_debug_set_print_function(OilDebugPrintFuncfunc)

oil_debug_set_print_function: :

Sets the function to call when outputting debugging information. A value of NULL for will restore the default handler, which prints debugging information to stderr.

oil_debug_get_level ( void )

IMPORT_C intoil_debug_get_level(void)

oil_debug_get_level:

Gets the current debug level.

Returns: the current debug level

oil_debug_set_level ( int )

IMPORT_C voidoil_debug_set_level(intlevel)

oil_debug_set_level: : the new debug level

Sets the current debug level.

_oil_debug_init ( void )

void_oil_debug_init(void)

oil_debug_print ( int, const char *, const char *, int, const char *, ... )

IMPORT_C voidoil_debug_print(intlevel,
const char *file,
const char *func,
intline,
const char *format,
...
)