00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _FLUIDSYNTH_LOG_H
00022 #define _FLUIDSYNTH_LOG_H
00023
00024
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028
00029
00054 enum fluid_log_level {
00055 FLUID_PANIC,
00056 FLUID_ERR,
00057 FLUID_WARN,
00058 FLUID_INFO,
00059 FLUID_DBG,
00060 LAST_LOG_LEVEL
00061 };
00062
00069 typedef void (*fluid_log_function_t)(int level, char* message, void* data);
00070
00071 FLUIDSYNTH_API
00072 fluid_log_function_t fluid_set_log_function(int level, fluid_log_function_t fun, void* data);
00073
00074 FLUIDSYNTH_API void fluid_default_log_function(int level, char* message, void* data);
00075
00076 FLUIDSYNTH_API int fluid_log(int level, char * fmt, ...);
00077
00078
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082
00083 #endif