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
|
2020-07-13 15:07:34 +02:00
|
|
|
(*ft_custom_log_handler)( const char* ft_component, const char* fmt,
|
|
|
|
va_list args );
|
2020-07-03 11:30:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
*
|
2020-07-04 09:39:33 +02:00
|
|
|
* If FT_LOGGING is enabled user can provide their own function to handle
|
|
|
|
* the log messages using the function `FT_Set_Log_Handler()` by passing
|
|
|
|
* the function name which they want to use.
|
|
|
|
* User could also revert back to use FreeType's inbuilt function to
|
|
|
|
* handle logs using function `FT_Set_Default_Log_Handler()`
|
|
|
|
* Defined in src/base/ftdebug.c
|
2020-07-03 11:30:27 +02:00
|
|
|
*
|
|
|
|
*/
|
2020-07-02 16:20:49 +02:00
|
|
|
FT_EXPORT( void )
|
2020-07-04 09:39:33 +02:00
|
|
|
FT_Set_Log_Handler( ft_custom_log_handler handler );
|
2020-07-02 16:20:49 +02:00
|
|
|
|
|
|
|
FT_EXPORT( void )
|
2020-07-04 09:39:33 +02:00
|
|
|
FT_Set_Default_Log_Handler();
|
|
|
|
|
2020-07-02 16:20:49 +02:00
|
|
|
|
|
|
|
FT_END_HEADER
|