Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 187676b5433787923dfa2cdd6900c6cd > files > 130

lib64pulseaudio-devel-0.9.15-2.0.7mdv2009.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>PulseAudio: mainloop.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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>
    </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>mainloop.h</h1><a href="mainloop_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef foomainloophfoo</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define foomainloophfoo</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/***</span>
<a name="l00005"></a>00005 <span class="comment">  This file is part of PulseAudio.</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">  Copyright 2004-2006 Lennart Poettering</span>
<a name="l00008"></a>00008 <span class="comment">  Copyright 2006 Pierre Ossman &lt;ossman@cendio.se&gt; for Cendio AB</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">  PulseAudio is free software; you can redistribute it and/or modify</span>
<a name="l00011"></a>00011 <span class="comment">  it under the terms of the GNU Lesser General Public License as published</span>
<a name="l00012"></a>00012 <span class="comment">  by the Free Software Foundation; either version 2.1 of the License,</span>
<a name="l00013"></a>00013 <span class="comment">  or (at your option) any later version.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">  PulseAudio is distributed in the hope that it will be useful, but</span>
<a name="l00016"></a>00016 <span class="comment">  WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00017"></a>00017 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00018"></a>00018 <span class="comment">  General Public License for more details.</span>
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment">  You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00021"></a>00021 <span class="comment">  along with PulseAudio; if not, write to the Free Software</span>
<a name="l00022"></a>00022 <span class="comment">  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307</span>
<a name="l00023"></a>00023 <span class="comment">  USA.</span>
<a name="l00024"></a>00024 <span class="comment">***/</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="mainloop-api_8h.html" title="Main loop abstraction layer.">pulse/mainloop-api.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;pulse/cdecl.h&gt;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 PA_C_DECL_BEGIN
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">struct </span>pollfd;
<a name="l00032"></a>00032 
<a name="l00077"></a><a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9">00077</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> <a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a>;
<a name="l00078"></a>00078 
<a name="l00080"></a>00080 <a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *<a class="code" href="mainloop_8h.html#d6c767781474275159c0a5f3f7e2ecb5" title="Allocate a new main loop object.">pa_mainloop_new</a>(<span class="keywordtype">void</span>);
<a name="l00081"></a>00081 
<a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="mainloop_8h.html#6c6ea37ce2815640f7f1a133f845f8e7" title="Free a main loop object.">pa_mainloop_free</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a>* m);
<a name="l00084"></a>00084 
<a name="l00088"></a>00088 <span class="keywordtype">int</span> <a class="code" href="mainloop_8h.html#217ce134af601c1c6ce77c41c99fc0d2" title="Prepare for a single iteration of the main loop.">pa_mainloop_prepare</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m, <span class="keywordtype">int</span> timeout);
<a name="l00089"></a>00089 
<a name="l00091"></a>00091 <span class="keywordtype">int</span> <a class="code" href="mainloop_8h.html#9195049c1bd136be73ce0e628523a2df" title="Execute the previously prepared poll.">pa_mainloop_poll</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m);
<a name="l00092"></a>00092 
<a name="l00095"></a>00095 <span class="keywordtype">int</span> <a class="code" href="mainloop_8h.html#bada884366e125a052bae5f6a4a7481e" title="Dispatch timeout, io and deferred events from the previously executed poll.">pa_mainloop_dispatch</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m);
<a name="l00096"></a>00096 
<a name="l00098"></a>00098 <span class="keywordtype">int</span> <a class="code" href="mainloop_8h.html#70065fd3ab808bde3892bf08a8c5f51b" title="Return the return value as specified with the main loop&amp;#39;s quit() routine.">pa_mainloop_get_retval</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m);
<a name="l00099"></a>00099 
<a name="l00106"></a>00106 <span class="keywordtype">int</span> <a class="code" href="mainloop_8h.html#491422aebe5487800d8be0bf4153cb81" title="Run a single iteration of the main loop.">pa_mainloop_iterate</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m, <span class="keywordtype">int</span> block, <span class="keywordtype">int</span> *retval);
<a name="l00107"></a>00107 
<a name="l00109"></a>00109 <span class="keywordtype">int</span> <a class="code" href="mainloop_8h.html#fbcd8f4eba09cdfd5323ac9db3718ae8" title="Run unlimited iterations of the main loop object until the main loop&amp;#39;s quit()...">pa_mainloop_run</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m, <span class="keywordtype">int</span> *retval);
<a name="l00110"></a>00110 
<a name="l00112"></a>00112 <a class="code" href="structpa__mainloop__api.html" title="An abstract mainloop API vtable.">pa_mainloop_api</a>* <a class="code" href="mainloop_8h.html#9e5b510dabb4eb1a01645c4db65b9ddb" title="Return the abstract main loop abstraction layer vtable for this main loop.">pa_mainloop_get_api</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a>*m);
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 <span class="keywordtype">void</span> <a class="code" href="mainloop_8h.html#906bbc80037677a05a1dc73a33a30a44" title="Shutdown the main loop.">pa_mainloop_quit</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m, <span class="keywordtype">int</span> r);
<a name="l00116"></a>00116 
<a name="l00118"></a>00118 <span class="keywordtype">void</span> <a class="code" href="mainloop_8h.html#2a81af2882e0c806308b20b97ca5473e" title="Interrupt a running poll (for threaded systems).">pa_mainloop_wakeup</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m);
<a name="l00119"></a>00119 
<a name="l00121"></a><a class="code" href="mainloop_8h.html#be53a62e351d3f15f865fb20973b3ce1">00121</a> <span class="keyword">typedef</span> int (*<a class="code" href="mainloop_8h.html#be53a62e351d3f15f865fb20973b3ce1" title="Generic prototype of a poll() like function.">pa_poll_func</a>)(<span class="keyword">struct </span>pollfd *ufds, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> nfds, <span class="keywordtype">int</span> timeout, <span class="keywordtype">void</span>*userdata);
<a name="l00122"></a>00122 
<a name="l00124"></a>00124 <span class="keywordtype">void</span> <a class="code" href="mainloop_8h.html#e51c490c29106c0c3b020020c6dc015d" title="Change the poll() implementation.">pa_mainloop_set_poll_func</a>(<a class="code" href="mainloop_8h.html#adf8d428d3e2f00ed762017c7b587cc9" title="An opaque main loop object.">pa_mainloop</a> *m, <a class="code" href="mainloop_8h.html#be53a62e351d3f15f865fb20973b3ce1" title="Generic prototype of a poll() like function.">pa_poll_func</a> poll_func, <span class="keywordtype">void</span> *userdata);
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 PA_C_DECL_END
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 04:18:19 2009 for PulseAudio by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>