Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 874255f3b26b44feb57fbe38a7384518 > files > 277

gmerlin-0.4.1-2mdv2010.0.i586.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>gmerlin: /home/mandrake/rpm/BUILD/gmerlin-0.4.1/include/gmerlin/subprocess.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.9 -->
<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="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_9de5cad15617e449f29680677e022ed8.html">include</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_4a3f2046eda2c9424010fb7393a61021.html">gmerlin</a>
  </div>
</div>
<div class="contents">
<h1>subprocess.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * gmerlin - a general purpose multimedia framework and applications</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2001 - 2008 Members of the Gmerlin project</span>
<a name="l00005"></a>00005 <span class="comment"> * gmerlin-general@lists.sourceforge.net</span>
<a name="l00006"></a>00006 <span class="comment"> * http://gmerlin.sourceforge.net</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * This program is free software: you can redistribute it and/or modify</span>
<a name="l00009"></a>00009 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00010"></a>00010 <span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span>
<a name="l00011"></a>00011 <span class="comment"> * (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00016"></a>00016 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00019"></a>00019 <span class="comment"> * along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00020"></a>00020 <span class="comment"> * *****************************************************************/</span>
<a name="l00021"></a>00021 
<a name="l00032"></a><a class="code" href="structbg__subprocess__t.html">00032</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00033"></a>00033   {
<a name="l00034"></a><a class="code" href="structbg__subprocess__t.html#0666208f01a3e11a8fbac90610874464">00034</a>   <span class="keywordtype">int</span> stdin_fd; 
<a name="l00035"></a><a class="code" href="structbg__subprocess__t.html#1558e6bcffb5518c85ce0185131bd33e">00035</a>   <span class="keywordtype">int</span> stdout_fd; 
<a name="l00036"></a><a class="code" href="structbg__subprocess__t.html#21aa0480ed20d62a23e9e4353cda75ac">00036</a>   <span class="keywordtype">int</span> stderr_fd;
<a name="l00037"></a>00037   
<a name="l00038"></a><a class="code" href="structbg__subprocess__t.html#0d1565e0eb11d3cebbe486200b891382">00038</a>   <span class="keywordtype">void</span> * priv; 
<a name="l00039"></a>00039   } <a class="code" href="structbg__subprocess__t.html" title="Subprocess handle.">bg_subprocess_t</a>;
<a name="l00040"></a>00040 
<a name="l00051"></a>00051 <a class="code" href="structbg__subprocess__t.html" title="Subprocess handle.">bg_subprocess_t</a> * <a class="code" href="group__subprocesses.html#gc3c663dcd541c1d251270f00ae48ae76" title="Create a subprocess.">bg_subprocess_create</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * command, <span class="keywordtype">int</span> do_stdin,
<a name="l00052"></a>00052                                        <span class="keywordtype">int</span> do_stdout, <span class="keywordtype">int</span> do_stderr);
<a name="l00053"></a>00053 
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="group__subprocesses.html#g195c529cb6150bcf01517ee903c895a8" title="Send a signal to a process.">bg_subprocess_kill</a>(<a class="code" href="structbg__subprocess__t.html" title="Subprocess handle.">bg_subprocess_t</a>* proc, <span class="keywordtype">int</span> signal);
<a name="l00062"></a>00062 
<a name="l00068"></a>00068 <span class="keywordtype">int</span> <a class="code" href="group__subprocesses.html#g93b1fc02a70e2b6a1533dabe385d7943" title="Close a subprocess and free all associated memory.">bg_subprocess_close</a>(<a class="code" href="structbg__subprocess__t.html" title="Subprocess handle.">bg_subprocess_t</a>* proc);
<a name="l00069"></a>00069 
<a name="l00078"></a>00078 <span class="keywordtype">int</span> <a class="code" href="group__subprocesses.html#gd806cfd9c4d5da7d22d933a5ab1cc2d7" title="Read a line from stdout or stderr of a process.">bg_subprocess_read_line</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span> ** ret, <span class="keywordtype">int</span> * ret_alloc,
<a name="l00079"></a>00079                             <span class="keywordtype">int</span> timeout);
<a name="l00080"></a>00080 
<a name="l00091"></a>00091 <span class="keywordtype">int</span> <a class="code" href="group__subprocesses.html#g845330cc6e87175abd03d726ab14c015" title="Read data from stdout or stderr of a process.">bg_subprocess_read_data</a>(<span class="keywordtype">int</span> fd, uint8_t * ret, <span class="keywordtype">int</span> len);
<a name="l00092"></a>00092 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 22 01:28:05 2009 for gmerlin by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>