1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>libfluidsynth: log.h Source File</title>
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>libfluidsynth: include/fluidsynth/log.h Source File</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.4.4 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
9
<a class="el" href="dir_000000.html">include</a> » <a class="el" href="dir_000001.html">fluidsynth</a></div>
10
<h1>log.h</h1><a href="log_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* FluidSynth - A Software Synthesizer</span>
7
<!-- Generated by Doxygen 1.5.3 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li><a href="annotated.html"><span>Data Structures</span></a></li>
12
<li class="current"><a href="files.html"><span>Files</span></a></li>
15
<h1>include/fluidsynth/log.h</h1><a href="log_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* FluidSynth - A Software Synthesizer</span>
11
16
<a name="l00002"></a>00002 <span class="comment"> *</span>
12
17
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2003 Peter Hanappe and others.</span>
13
18
<a name="l00004"></a>00004 <span class="comment"> *</span>
36
41
<a name="l00027"></a>00027 <span class="preprocessor">#endif</span>
37
42
<a name="l00028"></a>00028 <span class="preprocessor"></span>
38
43
<a name="l00029"></a>00029
39
<a name="l00053"></a><a class="code" href="log_8h.html#a10">00053</a> <span class="keyword">enum</span> <a class="code" href="log_8h.html#a10">fluid_log_level</a> {
40
<a name="l00054"></a>00054 <a class="code" href="log_8h.html#a10a1">FLUID_PANIC</a>, <span class="comment">/* the synth can't function correctly any more */</span>
41
<a name="l00055"></a>00055 <a class="code" href="log_8h.html#a10a2">FLUID_ERR</a>, <span class="comment">/* the synth can function, but with serious limitation */</span>
42
<a name="l00056"></a>00056 <a class="code" href="log_8h.html#a10a3">FLUID_WARN</a>, <span class="comment">/* the synth might not function as expected */</span>
43
<a name="l00057"></a>00057 <a class="code" href="log_8h.html#a10a4">FLUID_INFO</a>, <span class="comment">/* verbose messages */</span>
44
<a name="l00058"></a>00058 <a class="code" href="log_8h.html#a10a5">FLUID_DBG</a>, <span class="comment">/* debugging messages */</span>
45
<a name="l00059"></a>00059 <a class="code" href="log_8h.html#a10a6">LAST_LOG_LEVEL</a>
46
<a name="l00060"></a>00060 };
47
<a name="l00061"></a>00061
48
<a name="l00062"></a><a class="code" href="log_8h.html#a0">00062</a> <span class="keyword">typedef</span> void (*<a class="code" href="log_8h.html#a0">fluid_log_function_t</a>)(<span class="keywordtype">int</span> level, <span class="keywordtype">char</span>* message, <span class="keywordtype">void</span>* data);
49
<a name="l00063"></a>00063
50
<a name="l00067"></a>00067 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a>
51
<a name="l00068"></a>00068 <a class="code" href="log_8h.html#a0">fluid_log_function_t</a> <a class="code" href="log_8h.html#a7">fluid_set_log_function</a>(<span class="keywordtype">int</span> level, <a class="code" href="log_8h.html#a0">fluid_log_function_t</a> fun, <span class="keywordtype">void</span>* data);
52
<a name="l00069"></a>00069
53
<a name="l00070"></a>00070
54
<a name="l00073"></a>00073 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">void</span> <a class="code" href="log_8h.html#a8">fluid_default_log_function</a>(<span class="keywordtype">int</span> level, <span class="keywordtype">char</span>* message, <span class="keywordtype">void</span>* data);
55
<a name="l00074"></a>00074
56
<a name="l00076"></a>00076 <a class="code" href="fluidsynth_8h.html#a0">FLUIDSYNTH_API</a> <span class="keywordtype">int</span> <a class="code" href="log_8h.html#a9">fluid_log</a>(<span class="keywordtype">int</span> level, <span class="keywordtype">char</span> * fmt, ...);
44
<a name="l00054"></a><a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e">00054</a> <span class="keyword">enum</span> <a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e" title="FluidSynth log levels.">fluid_log_level</a> {
45
<a name="l00055"></a><a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e62d9ddd89d0a853606ce38d195daa99a">00055</a> <a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e62d9ddd89d0a853606ce38d195daa99a" title="The synth can&#39;t function correctly any more.">FLUID_PANIC</a>,
46
<a name="l00056"></a><a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9ebc0ff48d192b3b0fc721946ccf095d25">00056</a> <a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9ebc0ff48d192b3b0fc721946ccf095d25" title="Serious error occurred.">FLUID_ERR</a>,
47
<a name="l00057"></a><a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e394460be1ec74fce15e1ff683606df0f">00057</a> <a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e394460be1ec74fce15e1ff683606df0f" title="Warning.">FLUID_WARN</a>,
48
<a name="l00058"></a><a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9edfa902517702f2dd8ae849b810175ac4">00058</a> <a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9edfa902517702f2dd8ae849b810175ac4" title="Verbose informational messages.">FLUID_INFO</a>,
49
<a name="l00059"></a><a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e5542b67c606598020b832c31729175fc">00059</a> <a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9e5542b67c606598020b832c31729175fc" title="Debugging messages.">FLUID_DBG</a>,
50
<a name="l00060"></a><a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9ee556bea4357140f1b3f639fd450b88d4">00060</a> <a class="code" href="log_8h.html#a341232c15addd9c336131984840ed9ee556bea4357140f1b3f639fd450b88d4">LAST_LOG_LEVEL</a>
51
<a name="l00061"></a>00061 };
52
<a name="l00062"></a>00062
53
<a name="l00069"></a><a class="code" href="log_8h.html#94e275985c3b3a179967d8c7fb2f23cb">00069</a> <span class="keyword">typedef</span> void (*<a class="code" href="log_8h.html#94e275985c3b3a179967d8c7fb2f23cb" title="Log function handler callback type used by fluid_set_log_function().">fluid_log_function_t</a>)(<span class="keywordtype">int</span> level, <span class="keywordtype">char</span>* message, <span class="keywordtype">void</span>* data);
54
<a name="l00070"></a>00070
55
<a name="l00071"></a>00071 <a class="code" href="fluidsynth_8h.html#03b7b5cb479f864e15e30db75ff5fac3">FLUIDSYNTH_API</a>
56
<a name="l00072"></a>00072 <a class="code" href="log_8h.html#94e275985c3b3a179967d8c7fb2f23cb" title="Log function handler callback type used by fluid_set_log_function().">fluid_log_function_t</a> <a class="code" href="log_8h.html#73045ac6812fb708625d1ea25e4e5224" title="Installs a new log function for a specified log level.">fluid_set_log_function</a>(<span class="keywordtype">int</span> level, <a class="code" href="log_8h.html#94e275985c3b3a179967d8c7fb2f23cb" title="Log function handler callback type used by fluid_set_log_function().">fluid_log_function_t</a> fun, <span class="keywordtype">void</span>* data);
57
<a name="l00073"></a>00073
58
<a name="l00074"></a>00074 <a class="code" href="fluidsynth_8h.html#03b7b5cb479f864e15e30db75ff5fac3">FLUIDSYNTH_API</a> <span class="keywordtype">void</span> <a class="code" href="log_8h.html#f9512c62588841dc6f797abc202c2541" title="Default log function which prints to the stderr.">fluid_default_log_function</a>(<span class="keywordtype">int</span> level, <span class="keywordtype">char</span>* message, <span class="keywordtype">void</span>* data);
59
<a name="l00075"></a>00075
60
<a name="l00076"></a>00076 <a class="code" href="fluidsynth_8h.html#03b7b5cb479f864e15e30db75ff5fac3">FLUIDSYNTH_API</a> <span class="keywordtype">int</span> <a class="code" href="log_8h.html#3daee03b354d1f66f4ee180ca97ccfc6" title="Print a message to the log.">fluid_log</a>(<span class="keywordtype">int</span> level, <span class="keywordtype">char</span> * fmt, ...);
57
61
<a name="l00077"></a>00077
58
62
<a name="l00078"></a>00078
59
<a name="l00079"></a>00079
60
<a name="l00080"></a>00080
61
<a name="l00081"></a>00081 <span class="preprocessor">#ifdef __cplusplus</span>
62
<a name="l00082"></a>00082 <span class="preprocessor"></span>}
63
<a name="l00083"></a>00083 <span class="preprocessor">#endif</span>
64
<a name="l00084"></a>00084 <span class="preprocessor"></span>
65
<a name="l00085"></a>00085 <span class="preprocessor">#endif </span><span class="comment">/* _FLUIDSYNTH_LOG_H */</span>
66
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Feb 19 02:34:29 2006 for libfluidsynth by
63
<a name="l00079"></a>00079 <span class="preprocessor">#ifdef __cplusplus</span>
64
<a name="l00080"></a>00080 <span class="preprocessor"></span>}
65
<a name="l00081"></a>00081 <span class="preprocessor">#endif</span>
66
<a name="l00082"></a>00082 <span class="preprocessor"></span>
67
<a name="l00083"></a>00083 <span class="preprocessor">#endif </span><span class="comment">/* _FLUIDSYNTH_LOG_H */</span>
68
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sat Nov 17 13:40:23 2007 for libfluidsynth by
67
69
<a href="http://www.doxygen.org/index.html">
68
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
70
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>