Sophie

Sophie

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

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/rpmdb-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/rpmdb-py.c File Reference</h1><code>#include &quot;system.h&quot;</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="rpmdb-py_8h-source.html">rpmdb-py.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="rpmmi-py_8h-source.html">rpmmi-py.h</a>&quot;</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="debug_8h-source.html">debug.h</a>&quot;</code><br>

<p>
<a href="rpmdb-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>Class: rpm.db</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structrpmmiObject__s.html">rpmmiObject</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb-py_8c.html#8309aadd820bd4391d38a6595e741f28">rpmdb_Match</a> (<a class="el" href="structrpmdbObject__s.html">rpmdbObject</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="rpmdb-py_8c.html#bf3a6e96b5b17482365e3ad0900d076d">rpmdb_length</a> (<a class="el" href="structrpmdbObject__s.html">rpmdbObject</a> *s)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structhdrObject__s.html">hdrObject</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb-py_8c.html#fc8a98830bdacac1fcc74651718f1772">rpmdb_subscript</a> (<a class="el" href="structrpmdbObject__s.html">rpmdbObject</a> *s, PyObject *key)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb-py_8c.html#023aeafcd28e0932d33b70d32023b07d">rpmdb_dealloc</a> (<a class="el" href="structrpmdbObject__s.html">rpmdbObject</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="rpmdb-py_8c.html#52ca9fb033ccf4e1642b47f8e07cb5a5">rpmdb_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="rpmdb-py_8c.html#143f09424b1bcbd9fb2a4550edf727fa">rpmdb_setattro</a> (PyObject *o, PyObject *n, PyObject *v)</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="rpmdb-py_8c.html#8153e1e574549a244b04fc8c43666c94">rpmdb_methods</a> []</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static PyMappingMethods&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb-py_8c.html#0dae733aae9f048ef3530e8881cd5eae">rpmdb_as_mapping</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="rpmdb-py_8c.html#42f513d3d2d81d4f298e5b66fa361a17">rpmdb_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="rpmdb-py_8c.html#2fba41e47b697e1f49ebdbb67b12d36b">rpmdb_Type</a></td></tr>

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

<p>
Definition in file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="023aeafcd28e0932d33b70d32023b07d"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_dealloc" ref="023aeafcd28e0932d33b70d32023b07d" args="(rpmdbObject *s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void rpmdb_dealloc           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structrpmdbObject__s.html">rpmdbObject</a> *&nbsp;</td>
          <td class="paramname"> <em>s</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="rpmdb-py_8c-source.html#l00206">206</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
<p>
References <a class="el" href="rpmdb-py_8h-source.html#l00019">rpmdbObject_s::db</a>, and <a class="el" href="rpmdb_8c-source.html#l00886">rpmdbClose()</a>.
</div>
</div><p>
<a class="anchor" name="52ca9fb033ccf4e1642b47f8e07cb5a5"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_getattro" ref="52ca9fb033ccf4e1642b47f8e07cb5a5" args="(PyObject *o, PyObject *n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static PyObject* rpmdb_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="rpmdb-py_8c-source.html#l00214">214</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
</div>
</div><p>
<a class="anchor" name="bf3a6e96b5b17482365e3ad0900d076d"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_length" ref="bf3a6e96b5b17482365e3ad0900d076d" args="(rpmdbObject *s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int rpmdb_length           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structrpmdbObject__s.html">rpmdbObject</a> *&nbsp;</td>
          <td class="paramname"> <em>s</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="rpmdb-py_8c-source.html#l00147">147</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
<p>
References <a class="el" href="rpmdb-py_8h-source.html#l00019">rpmdbObject_s::db</a>, <a class="el" href="rpmdb_8c-source.html#l01694">rpmdbFreeIterator()</a>, <a class="el" href="rpmlib_8h-source.html#l00217">RPMDBI_PACKAGES</a>, <a class="el" href="rpmdb_8c-source.html#l02503">rpmdbInitIterator()</a>, and <a class="el" href="rpmdb_8c-source.html#l02183">rpmdbNextIterator()</a>.
</div>
</div><p>
<a class="anchor" name="8309aadd820bd4391d38a6595e741f28"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_Match" ref="8309aadd820bd4391d38a6595e741f28" args="(rpmdbObject *s, PyObject *args, PyObject *kwds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structrpmmiObject__s.html">rpmmiObject</a>* rpmdb_Match           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structrpmdbObject__s.html">rpmdbObject</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="rpmdb-py_8c-source.html#l00110">110</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
<p>
References <a class="el" href="rpmdb-py_8h-source.html#l00019">rpmdbObject_s::db</a>, <a class="el" href="rpmlib_8h-source.html#l00217">RPMDBI_PACKAGES</a>, <a class="el" href="rpmdb_8c-source.html#l02503">rpmdbInitIterator()</a>, <a class="el" href="rpmmi-py_8c-source.html#l00275">rpmmi_Wrap()</a>, and <a class="el" href="header-py_8c-source.html#l00438">tagNumFromPyObject()</a>.
</div>
</div><p>
<a class="anchor" name="143f09424b1bcbd9fb2a4550edf727fa"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_setattro" ref="143f09424b1bcbd9fb2a4550edf727fa" args="(PyObject *o, PyObject *n, PyObject *v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int rpmdb_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="rpmdb-py_8c-source.html#l00220">220</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
</div>
</div><p>
<a class="anchor" name="fc8a98830bdacac1fcc74651718f1772"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_subscript" ref="fc8a98830bdacac1fcc74651718f1772" args="(rpmdbObject *s, PyObject *key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structhdrObject__s.html">hdrObject</a>* rpmdb_subscript           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structrpmdbObject__s.html">rpmdbObject</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>key</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="rpmdb-py_8c-source.html#l00166">166</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
<p>
References <a class="el" href="rpmdb-py_8h-source.html#l00019">rpmdbObject_s::db</a>, <a class="el" href="header-py_8c-source.html#l00703">hdr_Wrap()</a>, <a class="el" href="hdrinline_8h-source.html#l00047">headerFree()</a>, <a class="el" href="rpmmodule_8c-source.html#l00043">pyrpmError</a>, <a class="el" href="rpmdb_8c-source.html#l01694">rpmdbFreeIterator()</a>, <a class="el" href="rpmlib_8h-source.html#l00217">RPMDBI_PACKAGES</a>, <a class="el" href="rpmdb_8c-source.html#l02503">rpmdbInitIterator()</a>, and <a class="el" href="rpmdb_8c-source.html#l02183">rpmdbNextIterator()</a>.
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="0dae733aae9f048ef3530e8881cd5eae"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_as_mapping" ref="0dae733aae9f048ef3530e8881cd5eae" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PyMappingMethods <a class="el" href="rpmdb-py_8c.html#0dae733aae9f048ef3530e8881cd5eae">rpmdb_as_mapping</a><code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
        (inquiry) <a class="code" href="rpmdb-py_8c.html#bf3a6e96b5b17482365e3ad0900d076d">rpmdb_length</a>,         
        (binaryfunc) <a class="code" href="rpmdb-py_8c.html#fc8a98830bdacac1fcc74651718f1772">rpmdb_subscript</a>,   
        (objobjargproc)0,               
}
</pre></div>
<p>
Definition at line <a class="el" href="rpmdb-py_8c-source.html#l00198">198</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
</div>
</div><p>
<a class="anchor" name="42f513d3d2d81d4f298e5b66fa361a17"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_doc" ref="42f513d3d2d81d4f298e5b66fa361a17" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="rpmdb-py_8c.html#42f513d3d2d81d4f298e5b66fa361a17">rpmdb_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="rpmdb-py_8c-source.html#l00229">229</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
</div>
</div><p>
<a class="anchor" name="8153e1e574549a244b04fc8c43666c94"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_methods" ref="8153e1e574549a244b04fc8c43666c94" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct PyMethodDef <a class="el" href="rpmdb-py_8c.html#8153e1e574549a244b04fc8c43666c94">rpmdb_methods</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">"match"</span>,       (PyCFunction) <a class="code" href="rpmdb-py_8c.html#8309aadd820bd4391d38a6595e741f28">rpmdb_Match</a>,  METH_VARARGS|METH_KEYWORDS,
<span class="stringliteral">"db.match([TagN, [key, [len]]]) -&gt; mi\n\</span>
<span class="stringliteral">- Create an rpm db match iterator.\n"</span> },
    {NULL,              NULL}           
}
</pre></div>
<p>
Definition at line <a class="el" href="rpmdb-py_8c-source.html#l00136">136</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-py.c</a>.
</div>
</div><p>
<a class="anchor" name="2fba41e47b697e1f49ebdbb67b12d36b"></a><!-- doxytag: member="rpmdb-py.c::rpmdb_Type" ref="2fba41e47b697e1f49ebdbb67b12d36b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PyTypeObject <a class="el" href="rpmdb-py_8h.html#2fba41e47b697e1f49ebdbb67b12d36b">rpmdb_Type</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmdb-py_8c-source.html#l00235">235</a> of file <a class="el" href="rpmdb-py_8c-source.html">rpmdb-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>