Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 34546d63baef3ab2a7675f37737b66ab > files > 47

libalsa2-docs-1.0.23-2.1mdv2010.1.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ALSA project - the C library reference: /home/qateam/rpm/BUILD/alsa-lib-1.0.23/include/global.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>/home/qateam/rpm/BUILD/alsa-lib-1.0.23/include/global.h</h1><a href="global_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_GLOBAL_H_</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_GLOBAL_H_</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="comment">/* for timeval and timespec */</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group___global.html#ga1b8d6e2acb0a62de5c23bd8aef3ec225" title="Returns the ALSA sound library version in ASCII format.">snd_asoundlib_version</a>(<span class="keywordtype">void</span>);
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="preprocessor">#ifndef ATTRIBUTE_UNUSED</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a>00054 <span class="preprocessor">#ifdef PIC </span><span class="comment">/* dynamic build */</span>
<a name="l00055"></a>00055 
<a name="l00057"></a><a class="code" href="group___global.html#gafefcb2bb4a877727b16de5c56e09055b">00057</a> <span class="preprocessor">#define __SND_DLSYM_VERSION(name, version) _ ## name ## version</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00062"></a><a class="code" href="group___global.html#ga355c462c8c5dee0aeadae17d096ba531">00062</a> <span class="preprocessor">#define SND_DLSYM_BUILD_VERSION(name, version) char __SND_DLSYM_VERSION(name, version);</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00064"></a>00064 <span class="preprocessor">#else </span><span class="comment">/* static build */</span>
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="keyword">struct </span>snd_dlsym_link {
<a name="l00067"></a>00067         <span class="keyword">struct </span>snd_dlsym_link *next;
<a name="l00068"></a>00068         <span class="keyword">const</span> <span class="keywordtype">char</span> *dlsym_name;
<a name="l00069"></a>00069         <span class="keyword">const</span> <span class="keywordtype">void</span> *dlsym_ptr;
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keyword">extern</span> <span class="keyword">struct </span>snd_dlsym_link *snd_dlsym_start;
<a name="l00073"></a>00073 
<a name="l00075"></a>00075 <span class="preprocessor">#define __SND_DLSYM_VERSION(prefix, name, version) _ ## prefix ## name ## version</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00080"></a>00080 <span class="preprocessor">#define SND_DLSYM_BUILD_VERSION(name, version) \</span>
<a name="l00081"></a>00081 <span class="preprocessor">  static struct snd_dlsym_link __SND_DLSYM_VERSION(snd_dlsym_, name, version); \</span>
<a name="l00082"></a>00082 <span class="preprocessor">  void __SND_DLSYM_VERSION(snd_dlsym_constructor_, name, version) (void) __attribute__ ((constructor)); \</span>
<a name="l00083"></a>00083 <span class="preprocessor">  void __SND_DLSYM_VERSION(snd_dlsym_constructor_, name, version) (void) { \</span>
<a name="l00084"></a>00084 <span class="preprocessor">    __SND_DLSYM_VERSION(snd_dlsym_, name, version).next = snd_dlsym_start; \</span>
<a name="l00085"></a>00085 <span class="preprocessor">    __SND_DLSYM_VERSION(snd_dlsym_, name, version).dlsym_name = # name; \</span>
<a name="l00086"></a>00086 <span class="preprocessor">    __SND_DLSYM_VERSION(snd_dlsym_, name, version).dlsym_ptr = (void *)&amp;name; \</span>
<a name="l00087"></a>00087 <span class="preprocessor">    snd_dlsym_start = &amp;__SND_DLSYM_VERSION(snd_dlsym_, name, version); \</span>
<a name="l00088"></a>00088 <span class="preprocessor">  }</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090 <span class="preprocessor">#endif</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span>
<a name="l00092"></a>00092 <span class="preprocessor">#ifndef __STRING</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00094"></a><a class="code" href="group___global.html#ga375c4dc9f0fb338999de81aab826f9d6">00094</a> <span class="preprocessor">#define __STRING(x)     #x</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span>
<a name="l00098"></a><a class="code" href="group___global.html#ga7bba39703a3275de48b3e919a2849c4b">00098</a> <span class="preprocessor">#define SND_DLSYM_VERSION(version) __STRING(version)</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span>
<a name="l00100"></a>00100 <span class="keywordtype">void</span> *<a class="code" href="group___global.html#ga40fa4f69aa58fd0086a43baef8e685b8" title="Opens a dynamic library - ALSA wrapper for dlopen.">snd_dlopen</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keywordtype">int</span> mode);
<a name="l00101"></a>00101 <span class="keywordtype">void</span> *<a class="code" href="group___global.html#gae865f293c8771998b2b6a9f25a135408" title="Resolves a symbol from a dynamic library - ALSA wrapper for dlsym.">snd_dlsym</a>(<span class="keywordtype">void</span> *handle, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *version);
<a name="l00102"></a>00102 <span class="keywordtype">int</span> <a class="code" href="group___global.html#ga7cc0866a9d1fbce4e34a8b342674836e" title="Closes a dynamic library - ALSA wrapper for dlclose.">snd_dlclose</a>(<span class="keywordtype">void</span> *handle);
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 
<a name="l00106"></a><a class="code" href="group___global.html#ga0d723ca68908f9c4eb7c6e9eb03cff3f">00106</a> <span class="preprocessor">#define __snd_alloca(ptr,type) do { *ptr = (type##_t *) alloca(type##_sizeof()); memset(*ptr, 0, type##_sizeof()); } while (0)</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span>
<a name="l00114"></a><a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d">00114</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_async_handler <a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d" title="Internal structure for an async notification client handler.">snd_async_handler_t</a>;
<a name="l00115"></a>00115 
<a name="l00121"></a><a class="code" href="group___global.html#gaa0501fb0c332e2009977bb29f194200b">00121</a> <span class="keyword">typedef</span> void (*<a class="code" href="group___global.html#gaa0501fb0c332e2009977bb29f194200b" title="Async notification callback.">snd_async_callback_t</a>)(<a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d" title="Internal structure for an async notification client handler.">snd_async_handler_t</a> *handler);
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="keywordtype">int</span> <a class="code" href="group___global.html#gafd936c40505997bb659b74bd368636b8" title="Registers an async handler.">snd_async_add_handler</a>(<a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d" title="Internal structure for an async notification client handler.">snd_async_handler_t</a> **handler, <span class="keywordtype">int</span> fd, 
<a name="l00124"></a>00124                           <a class="code" href="group___global.html#gaa0501fb0c332e2009977bb29f194200b" title="Async notification callback.">snd_async_callback_t</a> callback, <span class="keywordtype">void</span> *private_data);
<a name="l00125"></a>00125 <span class="keywordtype">int</span> <a class="code" href="group___global.html#ga1c0bd4d123e9581a749b80e2df48b4e1" title="Deletes an async handler.">snd_async_del_handler</a>(<a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d" title="Internal structure for an async notification client handler.">snd_async_handler_t</a> *handler);
<a name="l00126"></a>00126 <span class="keywordtype">int</span> <a class="code" href="group___global.html#gad601f70e0405a8522860edb15db6350c" title="Returns the file descriptor assigned to an async handler.">snd_async_handler_get_fd</a>(<a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d" title="Internal structure for an async notification client handler.">snd_async_handler_t</a> *handler);
<a name="l00127"></a>00127 <span class="keywordtype">int</span> <a class="code" href="group___global.html#gab32c9afe265784634c78e7a6b5d27abe" title="Returns the signal number assigned to an async handler.">snd_async_handler_get_signo</a>(<a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d" title="Internal structure for an async notification client handler.">snd_async_handler_t</a> *handler);
<a name="l00128"></a>00128 <span class="keywordtype">void</span> *<a class="code" href="group___global.html#gad9c76588a87918901c6273e6bc98a1bc" title="Returns the private data assigned to an async handler.">snd_async_handler_get_callback_private</a>(<a class="code" href="group___global.html#ga8cd9a1d441e9219ca5f2ff04094c7c6d" title="Internal structure for an async notification client handler.">snd_async_handler_t</a> *handler);
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="keyword">struct </span>snd_shm_area *<a class="code" href="group___global.html#ga4141de7b343dd6e5af12df97f98c6caf" title="Create a shm area record.">snd_shm_area_create</a>(<span class="keywordtype">int</span> shmid, <span class="keywordtype">void</span> *ptr);
<a name="l00131"></a>00131 <span class="keyword">struct </span>snd_shm_area *<a class="code" href="group___global.html#ga9dbf4bcf38bb7cc054accbbbf3a33df2" title="Increase the reference counter of shm area record.">snd_shm_area_share</a>(<span class="keyword">struct</span> snd_shm_area *area);
<a name="l00132"></a>00132 <span class="keywordtype">int</span> <a class="code" href="group___global.html#ga59f424fb93a72226e642dbb04b870c45" title="Release the shared area record.">snd_shm_area_destroy</a>(<span class="keyword">struct</span> snd_shm_area *area);
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="keywordtype">int</span> <a class="code" href="group___global.html#gaade4b91c735abcec70101b9d83b11126" title="Get the full file name.">snd_user_file</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file, <span class="keywordtype">char</span> **result);
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="preprocessor">#if !defined(_POSIX_C_SOURCE) &amp;&amp; !defined(_POSIX_SOURCE)</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="keyword">struct </span>timeval {
<a name="l00138"></a>00138         time_t          tv_sec;         <span class="comment">/* seconds */</span>
<a name="l00139"></a>00139         <span class="keywordtype">long</span>            tv_usec;        <span class="comment">/* microseconds */</span>
<a name="l00140"></a>00140 };
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 <span class="keyword">struct </span>timespec {
<a name="l00143"></a>00143         time_t          tv_sec;         <span class="comment">/* seconds */</span>
<a name="l00144"></a>00144         <span class="keywordtype">long</span>            tv_nsec;        <span class="comment">/* nanoseconds */</span>
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 <span class="preprocessor">#endif</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span>
<a name="l00149"></a><a class="code" href="group___global.html#gadd377862d568809fb0e32c9faddf99a4">00149</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>timeval <a class="code" href="group___global.html#gadd377862d568809fb0e32c9faddf99a4">snd_timestamp_t</a>;
<a name="l00151"></a><a class="code" href="group___global.html#ga3a3f5b65c40f498cdbc26944bd9855cf">00151</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>timespec <a class="code" href="group___global.html#ga3a3f5b65c40f498cdbc26944bd9855cf">snd_htimestamp_t</a>;
<a name="l00152"></a>00152 
<a name="l00155"></a>00155 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span>}
<a name="l00157"></a>00157 <span class="preprocessor">#endif</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span>
<a name="l00159"></a>00159 <span class="preprocessor">#endif </span><span class="comment">/* __ALSA_GLOBAL_H */</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Sat Nov 20 07:42:23 2010 for ALSA project - the C library reference by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>