Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > updates > by-pkgid > 18785641029f14f23cccc82925607ace > files > 29

libalsa2-docs-0.9.0-0.14rc7.1mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>error.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindex" href="examples.html">Examples</a> &nbsp; </center>
<hr><h1>error.h</h1><div class="fragment"><pre>00001 
00011 <span class="comment">/*</span>
00012 <span class="comment"> *   This library is free software; you can redistribute it and/or modify</span>
00013 <span class="comment"> *   it under the terms of the GNU Lesser General Public License as</span>
00014 <span class="comment"> *   published by the Free Software Foundation; either version 2.1 of</span>
00015 <span class="comment"> *   the License, or (at your option) any later version.</span>
00016 <span class="comment"> *</span>
00017 <span class="comment"> *   This program is distributed in the hope that it will be useful,</span>
00018 <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00019 <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
00020 <span class="comment"> *   GNU Lesser General Public License for more details.</span>
00021 <span class="comment"> *</span>
00022 <span class="comment"> *   You should have received a copy of the GNU Lesser General Public</span>
00023 <span class="comment"> *   License along with this library; if not, write to the Free Software</span>
00024 <span class="comment"> *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA</span>
00025 <span class="comment"> *</span>
00026 <span class="comment"> */</span>
00027 
00028 <span class="preprocessor">#ifndef __ALSA_ERROR_H</span>
00029 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_ERROR_H</span>
00030 <span class="preprocessor"></span>
00031 <span class="preprocessor">#ifdef __cplusplus</span>
00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00033 <span class="preprocessor">#endif</span>
00034 <span class="preprocessor"></span>
<a name="l00041"></a><a class="code" href="group___error.html#a4">00041</a> <span class="preprocessor">#define SND_ERROR_BEGIN                         500000                  </span>
<a name="l00042"></a><a class="code" href="group___error.html#a5">00042</a> <span class="preprocessor">#define SND_ERROR_INCOMPATIBLE_VERSION          (SND_ERROR_BEGIN+0)     </span>
00044 <span class="preprocessor">const char *snd_strerror(int errnum);</span>
00045 <span class="preprocessor"></span>
<a name="l00058"></a><a class="code" href="group___error.html#a0">00058</a> <span class="keyword">typedef</span> void (*<a class="code" href="group___error.html#a0">snd_lib_error_handler_t</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *function, <span class="keywordtype">int</span> err, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...) <span class="comment">/* __attribute__ ((format (printf, 5, 6))) */</span>;
<a name="l00059"></a><a class="code" href="group___error.html#a1">00059</a> <span class="keyword">extern</span> <a class="code" href="group___error.html#a0">snd_lib_error_handler_t</a> <a class="code" href="group___error.html#a1">snd_lib_error</a>;
00060 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="error_8c.html#a4">snd_lib_error_set_handler</a>(<a class="code" href="group___error.html#a0">snd_lib_error_handler_t</a> handler);
00061 
00062 <span class="preprocessor">#if __GNUC__ &gt; 2 || (__GNUC__ == 2 &amp;&amp; __GNUC_MINOR__ &gt; 95)</span>
00063 <span class="preprocessor"></span><span class="preprocessor">#define SNDERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, __VA_ARGS__) </span>
00064 <span class="preprocessor">#define SYSERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, __VA_ARGS__) </span>
00065 <span class="preprocessor">#else</span>
<a name="l00066"></a><a class="code" href="group___error.html#a6">00066</a> <span class="preprocessor"></span><span class="preprocessor">#define SNDERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, ##args) </span>
<a name="l00067"></a><a class="code" href="group___error.html#a7">00067</a> <span class="preprocessor">#define SYSERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, ##args) </span>
00068 <span class="preprocessor">#endif</span>
00069 <span class="preprocessor"></span>
00072 <span class="preprocessor">#ifdef __cplusplus</span>
00073 <span class="preprocessor"></span>}
00074 <span class="preprocessor">#endif</span>
00075 <span class="preprocessor"></span>
00076 <span class="preprocessor">#endif </span><span class="comment">/* __ALSA_ERROR_H */</span>
00077 
</pre></div><hr><address style="align: right;"><small>Generated on Wed Apr 2 16:06:31 2003 for ALSA project - the C library reference by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.18 </small></address>
</body>
</html>