Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 67e32647b06c0323bf90c6b54a6438d1 > files > 547

rpm-apidocs-4.4.2.3-34.el5.x86_64.rpm

<!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>rpm: python/rpmfd-py.c File Reference</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&nbsp;Page</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 id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</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>python/rpmfd-py.c File Reference</h1><code>#include &quot;system.h&quot;</code><br>
<code>#include &lt;glob.h&gt;</code><br>
<code>#include &lt;dirent.h&gt;</code><br>
<code>#include &lt;<a class="el" href="rpmio__internal_8h-source.html">rpmio_internal.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="rpmlib_8h-source.html">rpmlib.h</a>&gt;</code><br>
<code>#include &quot;<a class="el" href="header-py_8h-source.html">header-py.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="rpmfd-py_8h-source.html">rpmfd-py.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="debug_8h-source.html">debug.h</a>&quot;</code><br>

<p>
<a href="rpmfd-py_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structFDlist__t.html">FDlist_t</a></td></tr>

<tr><td colspan="2"><br><h2>Class: Rpmfd</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structFDlist__t.html">FDlist_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#d524f44e39b31ee76a244a897c74fa97">FDlist</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static PyObject *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#a362c1a705690a44890a83b8b6bd4646">rpmfd_Debug</a> (<a class="el" href="structrpmfdObject__s.html">rpmfdObject</a> *s, PyObject *args, PyObject *kwds)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#3cb2874b01b42f010dc620616e611dce">closeCallback</a> (FILE *f)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static PyObject *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#bb9edb5e5e3bc6748a3c1b0814f9176e">rpmfd_Fopen</a> (PyObject *s, PyObject *args, PyObject *kwds)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__py__c.html#gc12ac8c47f0ac76da79c80b45003bada">rpmfd_dealloc</a> (<a class="el" href="structrpmfdObject__s.html">rpmfdObject</a> *s)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static PyObject *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#1f2e27eba644c70174f0d7732fcebcad">rpmfd_getattro</a> (PyObject *o, PyObject *n)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#639100e048c153776e3b54383a6a72f1">rpmfd_setattro</a> (PyObject *o, PyObject *n, PyObject *v)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__py__c.html#gcb2d5c3c18fb2c7751bf63f630974570">rpmfd_init</a> (<a class="el" href="structrpmfdObject__s.html">rpmfdObject</a> *s, PyObject *args, PyObject *kwds)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__py__c.html#g2cb19051563f466ec88cb50aa9f8c79d">rpmfd_free</a> (<a class="el" href="structrpmfdObject__s.html">rpmfdObject</a> *s)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static PyObject *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__py__c.html#g2c91aa58a3b5db7b34aacfe6f1c44a9f">rpmfd_alloc</a> (PyTypeObject *subtype, int <a class="el" href="rpmcache_8c.html#1a693ed191d60c301334b79fa390f5c7">nitems</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structrpmfdObject__s.html">rpmfdObject</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__py__c.html#g047db76888ceff0460af17d7ea1c8b2b">rpmfd_new</a> (PyTypeObject *subtype, PyObject *args, PyObject *kwds)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structrpmfdObject__s.html">rpmfdObject</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#731c078eeead243f7635289d4d149f8e">rpmfd_Wrap</a> (<a class="el" href="struct__FD__s.html">FD_t</a> fd)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structFDlist__t.html">FDlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#4ad1f4feca46aa2d829be79b9582b0fb">fdhead</a> = NULL</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structFDlist__t.html">FDlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#63df3596277d5844b4bbfcc23571dfb9">fdtail</a> = NULL</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static struct PyMethodDef&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__py__c.html#g1b084929a3f03edae0df5c2c3ff5400a">rpmfd_methods</a> []</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#8b7783022b6491a2d6ef1238f59286c7">rpmfd_doc</a> []</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">PyTypeObject&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__py__c.html#g9d6aa5206d950b81fdbfd7c9f93d7313">rpmfd_Type</a></td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmfd-py_8c.html#4d817ea4145387580791eaa6739f0892">_rpmfd_debug</a> = 1</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>

<p>
Definition in file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="d524f44e39b31ee76a244a897c74fa97"></a><!-- doxytag: member="rpmfd-py.c::FDlist" ref="d524f44e39b31ee76a244a897c74fa97" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structFDlist__t.html">FDlist_t</a> <a class="el" href="structFDlist__t.html">FDlist</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00046">46</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="3cb2874b01b42f010dc620616e611dce"></a><!-- doxytag: member="rpmfd-py.c::closeCallback" ref="3cb2874b01b42f010dc620616e611dce" args="(FILE *f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int closeCallback           </td>
          <td>(</td>
          <td class="paramtype">FILE *&nbsp;</td>
          <td class="paramname"> <em>f</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00067">67</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
<p>
References <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00051">FDlist_t::f</a>, <a class="el" href="rpmio_8c-source.html#l02903">Fclose()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00052">FDlist_t::fd</a>, <a class="el" href="rpmio_8h-source.html#l00533">fdFree</a>, <a class="el" href="rpmfd-py_8c-source.html#l00059">fdhead</a>, <a class="el" href="rpmio_8h-source.html#l00524">fdLink</a>, <a class="el" href="rpmfd-py_8c-source.html#l00054">FDlist_t::next</a>, and <a class="el" href="rpmfd-py_8c-source.html#l00053">FDlist_t::note</a>.
<p>
Referenced by <a class="el" href="rpmfd-py_8c-source.html#l00102">rpmfd_Fopen()</a>.
</div>
</div><p>
<a class="anchor" name="a362c1a705690a44890a83b8b6bd4646"></a><!-- doxytag: member="rpmfd-py.c::rpmfd_Debug" ref="a362c1a705690a44890a83b8b6bd4646" args="(rpmfdObject *s, PyObject *args, PyObject *kwds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static PyObject* rpmfd_Debug           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structrpmfdObject__s.html">rpmfdObject</a> *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>args</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>kwds</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00031">31</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
<p>
References <a class="el" href="rpmfd-py_8c-source.html#l00021">_rpmfd_debug</a>.
</div>
</div><p>
<a class="anchor" name="bb9edb5e5e3bc6748a3c1b0814f9176e"></a><!-- doxytag: member="rpmfd-py.c::rpmfd_Fopen" ref="bb9edb5e5e3bc6748a3c1b0814f9176e" args="(PyObject *s, PyObject *args, PyObject *kwds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static PyObject* rpmfd_Fopen           </td>
          <td>(</td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>args</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>kwds</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00102">102</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
<p>
References <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00067">closeCallback()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00051">FDlist_t::f</a>, <a class="el" href="rpmfd-py_8c-source.html#l00052">FDlist_t::fd</a>, <a class="el" href="rpmio__internal_8h-source.html#l00275">fdGetFp()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00059">fdhead</a>, <a class="el" href="rpmio_8h-source.html#l00524">fdLink</a>, <a class="el" href="rpmfd-py_8c-source.html#l00063">fdtail</a>, <a class="el" href="rpmio_8c-source.html#l03280">Ferror()</a>, <a class="el" href="rpmio_8c-source.html#l03187">Fopen()</a>, <a class="el" href="rpmio_8c-source.html#l02813">Fstrerror()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00054">FDlist_t::next</a>, <a class="el" href="rpmfd-py_8c-source.html#l00053">FDlist_t::note</a>, <a class="el" href="rpmmodule_8c-source.html#l00043">pyrpmError</a>, <a class="el" href="rpmmalloc_8c-source.html#l00024">xmalloc()</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00055">xstrdup()</a>.
</div>
</div><p>
<a class="anchor" name="1f2e27eba644c70174f0d7732fcebcad"></a><!-- doxytag: member="rpmfd-py.c::rpmfd_getattro" ref="1f2e27eba644c70174f0d7732fcebcad" args="(PyObject *o, PyObject *n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static PyObject* rpmfd_getattro           </td>
          <td>(</td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>n</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00184">184</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
</div>
</div><p>
<a class="anchor" name="639100e048c153776e3b54383a6a72f1"></a><!-- doxytag: member="rpmfd-py.c::rpmfd_setattro" ref="639100e048c153776e3b54383a6a72f1" args="(PyObject *o, PyObject *n, PyObject *v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int rpmfd_setattro           </td>
          <td>(</td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PyObject *&nbsp;</td>
          <td class="paramname"> <em>v</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00190">190</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
</div>
</div><p>
<a class="anchor" name="731c078eeead243f7635289d4d149f8e"></a><!-- doxytag: member="rpmfd-py.c::rpmfd_Wrap" ref="731c078eeead243f7635289d4d149f8e" args="(FD_t fd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structrpmfdObject__s.html">rpmfdObject</a>* rpmfd_Wrap           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__FD__s.html">FD_t</a>&nbsp;</td>
          <td class="paramname"> <em>fd</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00332">332</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
<p>
References <a class="el" href="rpmfd-py_8h-source.html#l00012">rpmfdObject_s::fd</a>.
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="4d817ea4145387580791eaa6739f0892"></a><!-- doxytag: member="rpmfd-py.c::_rpmfd_debug" ref="4d817ea4145387580791eaa6739f0892" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="rpmfd-py_8c.html#4d817ea4145387580791eaa6739f0892">_rpmfd_debug</a> = 1<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00021">21</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
<p>
Referenced by <a class="el" href="rpmfd-py_8c-source.html#l00245">rpmfd_alloc()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00031">rpmfd_Debug()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00232">rpmfd_free()</a>, <a class="el" href="rpmfd-py_8c-source.html#l00198">rpmfd_init()</a>, and <a class="el" href="rpmfd-py_8c-source.html#l00258">rpmfd_new()</a>.
</div>
</div><p>
<a class="anchor" name="4ad1f4feca46aa2d829be79b9582b0fb"></a><!-- doxytag: member="rpmfd-py.c::fdhead" ref="4ad1f4feca46aa2d829be79b9582b0fb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structFDlist__t.html">FDlist</a>* <a class="el" href="rpmfd-py_8c.html#4ad1f4feca46aa2d829be79b9582b0fb">fdhead</a> = NULL<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00059">59</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
<p>
Referenced by <a class="el" href="rpmfd-py_8c-source.html#l00067">closeCallback()</a>, and <a class="el" href="rpmfd-py_8c-source.html#l00102">rpmfd_Fopen()</a>.
</div>
</div><p>
<a class="anchor" name="63df3596277d5844b4bbfcc23571dfb9"></a><!-- doxytag: member="rpmfd-py.c::fdtail" ref="63df3596277d5844b4bbfcc23571dfb9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structFDlist__t.html">FDlist</a>* <a class="el" href="rpmfd-py_8c.html#63df3596277d5844b4bbfcc23571dfb9">fdtail</a> = NULL<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00063">63</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
<p>
Referenced by <a class="el" href="rpmfd-py_8c-source.html#l00102">rpmfd_Fopen()</a>.
</div>
</div><p>
<a class="anchor" name="8b7783022b6491a2d6ef1238f59286c7"></a><!-- doxytag: member="rpmfd-py.c::rpmfd_doc" ref="8b7783022b6491a2d6ef1238f59286c7" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="rpmfd-py_8c.html#8b7783022b6491a2d6ef1238f59286c7">rpmfd_doc</a>[]<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment">
<span class="stringliteral">""</span>
</pre></div>
<p>
Definition at line <a class="el" href="rpmfd-py_8c-source.html#l00278">278</a> of file <a class="el" href="rpmfd-py_8c-source.html">rpmfd-py.c</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on 1 Oct 2013 for rpm by&nbsp;
<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>