Sophie

Sophie

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

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: pa_spawn_api Struct Reference</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 class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><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="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>pa_spawn_api Struct Reference</h1><!-- doxytag: class="pa_spawn_api" -->A structure for the spawn api.  
<a href="#_details">More...</a>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__spawn__api.html#009dfea821d3d41639fa07d57426a654">prefork</a> )(void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Is called just before the fork in the parent process.  <a href="#009dfea821d3d41639fa07d57426a654"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__spawn__api.html#54ede5d359932debf9c8ad6c70157765">postfork</a> )(void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Is called immediately after the fork in the parent process.  <a href="#54ede5d359932debf9c8ad6c70157765"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__spawn__api.html#265fe372320341c1b83000bdc5ce7f68">atfork</a> )(void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Is called immediately after the fork in the child process.  <a href="#265fe372320341c1b83000bdc5ce7f68"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A structure for the spawn api. 
<p>
This may be used to integrate auto spawned daemons into your application. For more information see <a class="el" href="context_8h.html#983ce13d45c5f4b0db8e1a34e21f9fce" title="Connect the context to the specified server.">pa_context_connect()</a>. When spawning a new child process the waitpid() is used on the child's PID. The spawn routine will not block or ignore SIGCHLD signals, since this cannot be done in a thread compatible way. You might have to do this in prefork/postfork. <hr><h2>Field Documentation</h2>
<a class="anchor" name="265fe372320341c1b83000bdc5ce7f68"></a><!-- doxytag: member="pa_spawn_api::atfork" ref="265fe372320341c1b83000bdc5ce7f68" args=")(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* <a class="el" href="structpa__spawn__api.html#265fe372320341c1b83000bdc5ce7f68">pa_spawn_api::atfork</a>)(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Is called immediately after the fork in the child process. 
<p>
May be NULL. It is not safe to close all file descriptors in this function unconditionally, since a UNIX socket (created using socketpair()) is passed to the new process. 
</div>
</div><p>
<a class="anchor" name="54ede5d359932debf9c8ad6c70157765"></a><!-- doxytag: member="pa_spawn_api::postfork" ref="54ede5d359932debf9c8ad6c70157765" args=")(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* <a class="el" href="structpa__spawn__api.html#54ede5d359932debf9c8ad6c70157765">pa_spawn_api::postfork</a>)(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Is called immediately after the fork in the parent process. 
<p>
May be NULL. 
</div>
</div><p>
<a class="anchor" name="009dfea821d3d41639fa07d57426a654"></a><!-- doxytag: member="pa_spawn_api::prefork" ref="009dfea821d3d41639fa07d57426a654" args=")(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* <a class="el" href="structpa__spawn__api.html#009dfea821d3d41639fa07d57426a654">pa_spawn_api::prefork</a>)(void)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Is called just before the fork in the parent process. 
<p>
May be NULL. 
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="def_8h-source.html">def.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 04:18:20 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>