00001 /* FluidSynth - A Software Synthesizer
00002 *
00003 * Copyright (C) 2003 Peter Hanappe and others.
00004 *
00005 * This library is free software; you can redistribute it and/or
00006 * modify it under the terms of the GNU Library General Public License
00007 * as published by the Free Software Foundation; either version 2 of
00008 * the License, or (at your option) any later version.
00009 *
00010 * This library is distributed in the hope that it will be useful, but
00011 * WITHOUT ANY WARRANTY; without even the implied warranty of
00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00013 * Library General Public License for more details.
00014 *
00015 * You should have received a copy of the GNU Library General Public
00016 * License along with this library; if not, write to the Free
00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018 * 02111-1307, USA
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 /* _FLUIDSYNTH_LOG_H */
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001