2020-07-02 16:20:49 +02:00
|
|
|
#include FT_CONFIG_CONFIG_H
|
|
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
*
|
|
|
|
* If FT_LOGGING is enabled, user can change the trace level at run time
|
|
|
|
* using the function `FT_Trace_Set_Level()` by passing the desired trace
|
|
|
|
* level as an argument.
|
|
|
|
* User can also set the default trace level which is supplied by
|
|
|
|
* environment variable `FT2_DEBUG`
|
2020-07-03 11:30:27 +02:00
|
|
|
* See ftdebug.c for definitions
|
2020-07-02 16:20:49 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
FT_EXPORT( void )
|
|
|
|
FT_Trace_Set_Level( const char* level );
|
|
|
|
|
|
|
|
FT_EXPORT( void )
|
|
|
|
FT_Trace_Set_Default_Level( void );
|
|
|
|
|
2020-07-03 11:30:27 +02:00
|
|
|
|
|
|
|
/* An external callback function to be used to define an output handler */
|
|
|
|
typedef void
|
|
|
|
(*ft_custom_output_handler)( const char* string );
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
*
|
|
|
|
* comments on callback
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/*
|
2020-07-02 16:20:49 +02:00
|
|
|
FT_EXPORT( void )
|
|
|
|
FT_Trace_Set_Output( ft_ouput_handler handler );
|
|
|
|
|
|
|
|
FT_EXPORT( void )
|
|
|
|
FT_Trace_Set_Default_Output();
|
2020-07-03 11:30:27 +02:00
|
|
|
*/
|
2020-07-02 16:20:49 +02:00
|
|
|
|
|
|
|
FT_END_HEADER
|