Main Page   Data Structures   File List   Data Fields   Globals  

log.h

Go to the documentation of this file.
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 
00053 enum fluid_log_level { 
00054   FLUID_PANIC,   /* the synth can't function correctly any more */
00055   FLUID_ERR,     /* the synth can function, but with serious limitation */
00056   FLUID_WARN,    /* the synth might not function as expected */
00057   FLUID_INFO,    /* verbose messages */
00058   FLUID_DBG,     /* debugging messages */
00059   LAST_LOG_LEVEL
00060 };
00061 
00062 typedef void (*fluid_log_function_t)(int level, char* message, void* data);
00063 
00067 FLUIDSYNTH_API 
00068 fluid_log_function_t fluid_set_log_function(int level, fluid_log_function_t fun, void* data);
00069 
00070   
00073 FLUIDSYNTH_API void fluid_default_log_function(int level, char* message, void* data);
00074 
00076 FLUIDSYNTH_API int fluid_log(int level, char * fmt, ...);
00077 
00078 
00079 
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 
00085 #endif /* _FLUIDSYNTH_LOG_H */

Generated on Thu Mar 13 19:09:34 2003 for libfluidsynth by doxygen1.2.15