File: //usr/share/doc/alsa-lib-devel-1.0.17/lib64/html/error_8h-source.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ALSA project - the C library reference: /builddir/build/BUILD/alsa-lib-1.0.17a/include/error.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul></div>
<h1>/builddir/build/BUILD/alsa-lib-1.0.17a/include/error.h</h1><a href="error_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00011"></a>00011 <span class="comment">/*</span>
<a name="l00012"></a>00012 <span class="comment"> * This library is free software; you can redistribute it and/or modify</span>
<a name="l00013"></a>00013 <span class="comment"> * it under the terms of the GNU Lesser General Public License as</span>
<a name="l00014"></a>00014 <span class="comment"> * published by the Free Software Foundation; either version 2.1 of</span>
<a name="l00015"></a>00015 <span class="comment"> * the License, or (at your option) any later version.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00018"></a>00018 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00019"></a>00019 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<a name="l00020"></a>00020 <span class="comment"> * GNU Lesser General Public License for more details.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00023"></a>00023 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
<a name="l00024"></a>00024 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00025"></a>00025 <span class="comment"> *</span>
<a name="l00026"></a>00026 <span class="comment"> */</span>
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef __ALSA_ERROR_H</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_ERROR_H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00041"></a><a class="code" href="group___error.html#g076fd008df5921f4b7e3bbb9551d34b1">00041</a> <span class="preprocessor">#define SND_ERROR_BEGIN 500000 </span>
<a name="l00042"></a><a class="code" href="group___error.html#gf25753f51894d42526c2fad66c3d2ed6">00042</a> <span class="preprocessor">#define SND_ERROR_INCOMPATIBLE_VERSION (SND_ERROR_BEGIN+0) </span>
<a name="l00043"></a><a class="code" href="group___error.html#g6a089a2faa895f77a8a774a8320e37a0">00043</a> <span class="preprocessor">#define SND_ERROR_ALISP_NIL (SND_ERROR_BEGIN+1) </span>
<a name="l00045"></a>00045 <span class="preprocessor">const char *snd_strerror(int errnum);</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00059"></a><a class="code" href="group___error.html#gd61951e25dbe6f0fe73859ebe48c296f">00059</a> <span class="keyword">typedef</span> void (*<a class="code" href="group___error.html#gd61951e25dbe6f0fe73859ebe48c296f">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="l00060"></a>00060 <span class="keyword">extern</span> <a class="code" href="group___error.html#gd61951e25dbe6f0fe73859ebe48c296f">snd_lib_error_handler_t</a> <a class="code" href="group___error.html#gf1920bda2482038add95c5e440b3c75e">snd_lib_error</a>;
<a name="l00061"></a>00061 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group___error.html#g5b7224346b4653b86b8ef66a0ed00075">snd_lib_error_set_handler</a>(<a class="code" href="group___error.html#gd61951e25dbe6f0fe73859ebe48c296f">snd_lib_error_handler_t</a> handler);
<a name="l00062"></a>00062
<a name="l00063"></a>00063 <span class="preprocessor">#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 95)</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define SNDERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, __VA_ARGS__) </span>
<a name="l00065"></a>00065 <span class="preprocessor">#define SYSERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, __VA_ARGS__) </span>
<a name="l00066"></a>00066 <span class="preprocessor">#else</span>
<a name="l00067"></a><a class="code" href="group___error.html#g484bf209082377ba4f6267eb31f7de76">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define SNDERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, ##args) </span>
<a name="l00068"></a><a class="code" href="group___error.html#gc1e4920d1a522724f9ac48311c95f3ad">00068</a> <span class="preprocessor">#define SYSERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, ##args) </span>
<a name="l00069"></a>00069 <span class="preprocessor">#endif</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00073"></a>00073 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span>}
<a name="l00075"></a>00075 <span class="preprocessor">#endif</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00077"></a>00077 <span class="preprocessor">#endif </span><span class="comment">/* __ALSA_ERROR_H */</span>
<a name="l00078"></a>00078
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Jan 20 22:42:09 2009 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"></a> 1.4.7 </small></address>
</body>
</html>