Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>rpm: rpmdb.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">rpm
   &#160;<span id="projectnumber">4.12.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">rpmdb.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="system_8h_source.html">system.h</a>&quot;</code><br />
<code>#include &lt;popt.h&gt;</code><br />
<code>#include &lt;rpm/rpmcli.h&gt;</code><br />
<code>#include &lt;rpm/rpmdb.h&gt;</code><br />
<code>#include &quot;<a class="el" href="cliutils_8h_source.html">cliutils.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="debug_8h_source.html">debug.h</a>&quot;</code><br />
</div>
<p><a href="rpmdb_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a811fe196a5d9d37857c2f8adeeaac3c6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6">modes</a> { <br />
&#160;&#160;<a class="el" href="rpmbuild_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6ab639221eae9e531e57b91331f9ccde3b">MODE_BUILD</a> = (1 &lt;&lt; 4), 
<a class="el" href="rpmbuild_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6ac42613b5987e8256c2136db617715d7f">MODE_REBUILD</a> = (1 &lt;&lt; 5), 
<a class="el" href="rpmbuild_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a33285bd7faa559c03042537cb17e5641">MODE_RECOMPILE</a> = (1 &lt;&lt; 8), 
<a class="el" href="rpmbuild_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a05680e770f725c751a8e4aeaeb50d111">MODE_TARBUILD</a> = (1 &lt;&lt; 11), 
<br />
&#160;&#160;<a class="el" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6aea3bc2eb36fed3807bbd874045467e9a">MODE_INITDB</a> = (1 &lt;&lt; 0), 
<a class="el" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6afeff31880a0b435a7bc5ee3ea4e2bb4b">MODE_REBUILDDB</a> = (1 &lt;&lt; 1), 
<a class="el" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a943c638033610eb280c65a91d5502c48">MODE_VERIFYDB</a> = (1 &lt;&lt; 2), 
<a class="el" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a2cf783471ed9eef68abcc968197acfb0">MODE_EXPORTDB</a> = (1 &lt;&lt; 3), 
<br />
&#160;&#160;<a class="el" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6acdd25bf5a6cd729d6b42e6b33de42bd9">MODE_IMPORTDB</a> = (1 &lt;&lt; 4), 
<a class="el" href="rpmkeys_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a6e71f3470e43602dd881d1cb0ce779a0">MODE_CHECKSIG</a> = (1 &lt;&lt; 0), 
<a class="el" href="rpmkeys_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6ad3de96dfd77735bff12609801e957068">MODE_IMPORTKEY</a> = (1 &lt;&lt; 1), 
<a class="el" href="rpmkeys_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6aa18ebfe027af5690e69c8a3aa70624fe">MODE_DELKEY</a> = (1 &lt;&lt; 2), 
<br />
&#160;&#160;<a class="el" href="rpmkeys_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a89643e161cf5df1984e15c4ce855dd9b">MODE_LISTKEY</a> = (1 &lt;&lt; 3), 
<a class="el" href="rpmqv_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6aa6891a524a00c9093e6ade13f42f20cc">MODE_QUERY</a> = (1 &lt;&lt; 0), 
<a class="el" href="rpmqv_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a8afb36000e3c9ee8064dff47cdc34d9f">MODE_VERIFY</a> = (1 &lt;&lt; 3), 
<a class="el" href="rpmqv_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6ae28aaaeedcfd95cb9e82ef26f676f158">MODE_INSTALL</a> = (1 &lt;&lt; 1), 
<br />
&#160;&#160;<a class="el" href="rpmqv_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a6ba476a2e06e8bd884142b04962f63e1">MODE_ERASE</a> = (1 &lt;&lt; 2), 
<a class="el" href="rpmqv_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6ad34eac71f48c80a1ff29750151a0187b">MODE_UNKNOWN</a> = 0, 
<a class="el" href="rpmsign_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a321fe129e57840f499f96ad1fb871759">MODE_ADDSIGN</a> = (1 &lt;&lt; 0), 
<a class="el" href="rpmsign_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a9ccc762e6e164ffd8031ca72594ce945">MODE_RESIGN</a> = (1 &lt;&lt; 1), 
<br />
&#160;&#160;<a class="el" href="rpmsign_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a59498633cac4aeab1d42c04ed80e3166">MODE_DELSIGN</a> = (1 &lt;&lt; 2), 
<a class="el" href="rpmspec_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6ad34eac71f48c80a1ff29750151a0187b">MODE_UNKNOWN</a> = 0, 
<a class="el" href="rpmspec_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6aa6891a524a00c9093e6ade13f42f20cc">MODE_QUERY</a> = (1 &lt;&lt; 0), 
<a class="el" href="rpmspec_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a00a4b47a3e1d23558b50f9718616d024">MODE_PARSE</a> = (1 &lt;&lt; 1)
<br />
 }</td></tr>
<tr class="separator:a811fe196a5d9d37857c2f8adeeaac3c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ade834d0f532de588d80eefdefe9e4e74"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#ade834d0f532de588d80eefdefe9e4e74">exportDB</a> (<a class="el" href="rpmtypes_8h.html#a1a512138316a227059ca128597dbd464">rpmts</a> ts)</td></tr>
<tr class="separator:ade834d0f532de588d80eefdefe9e4e74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64d47e4f0a8dd01a5ea9e6dc88fd1367"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#a64d47e4f0a8dd01a5ea9e6dc88fd1367">importDB</a> (<a class="el" href="rpmtypes_8h.html#a1a512138316a227059ca128597dbd464">rpmts</a> ts)</td></tr>
<tr class="separator:a64d47e4f0a8dd01a5ea9e6dc88fd1367"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aa006daaf11f1e2e45a6ababaf463212b"><td class="memItemLeft" align="right" valign="top">char **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#aa006daaf11f1e2e45a6ababaf463212b">environ</a> = NULL</td></tr>
<tr class="separator:aa006daaf11f1e2e45a6ababaf463212b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ea5d0cb93f22f7d0fdf804bd68c3326"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#a1ea5d0cb93f22f7d0fdf804bd68c3326">mode</a> = 0</td></tr>
<tr class="separator:a1ea5d0cb93f22f7d0fdf804bd68c3326"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20ce58e57514e6e2a19d044c7d0aeec6"><td class="memItemLeft" align="right" valign="top">static struct poptOption&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#a20ce58e57514e6e2a19d044c7d0aeec6">dbOptsTable</a> []</td></tr>
<tr class="separator:a20ce58e57514e6e2a19d044c7d0aeec6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a779c8fb41edee9b03a02a249606b0e76"><td class="memItemLeft" align="right" valign="top">static struct poptOption&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmdb_8c.html#a779c8fb41edee9b03a02a249606b0e76">optionsTable</a> []</td></tr>
<tr class="separator:a779c8fb41edee9b03a02a249606b0e76"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="rpmbuild_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6">modes</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6ab639221eae9e531e57b91331f9ccde3b"></a>MODE_BUILD&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6ac42613b5987e8256c2136db617715d7f"></a>MODE_REBUILD&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a33285bd7faa559c03042537cb17e5641"></a>MODE_RECOMPILE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a05680e770f725c751a8e4aeaeb50d111"></a>MODE_TARBUILD&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6aea3bc2eb36fed3807bbd874045467e9a"></a>MODE_INITDB&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6afeff31880a0b435a7bc5ee3ea4e2bb4b"></a>MODE_REBUILDDB&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a943c638033610eb280c65a91d5502c48"></a>MODE_VERIFYDB&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a2cf783471ed9eef68abcc968197acfb0"></a>MODE_EXPORTDB&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6acdd25bf5a6cd729d6b42e6b33de42bd9"></a>MODE_IMPORTDB&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a6e71f3470e43602dd881d1cb0ce779a0"></a>MODE_CHECKSIG&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6ad3de96dfd77735bff12609801e957068"></a>MODE_IMPORTKEY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6aa18ebfe027af5690e69c8a3aa70624fe"></a>MODE_DELKEY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a89643e161cf5df1984e15c4ce855dd9b"></a>MODE_LISTKEY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6aa6891a524a00c9093e6ade13f42f20cc"></a>MODE_QUERY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a8afb36000e3c9ee8064dff47cdc34d9f"></a>MODE_VERIFY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6ae28aaaeedcfd95cb9e82ef26f676f158"></a>MODE_INSTALL&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a6ba476a2e06e8bd884142b04962f63e1"></a>MODE_ERASE&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6ad34eac71f48c80a1ff29750151a0187b"></a>MODE_UNKNOWN&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a321fe129e57840f499f96ad1fb871759"></a>MODE_ADDSIGN&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a9ccc762e6e164ffd8031ca72594ce945"></a>MODE_RESIGN&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a59498633cac4aeab1d42c04ed80e3166"></a>MODE_DELSIGN&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6ad34eac71f48c80a1ff29750151a0187b"></a>MODE_UNKNOWN&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6aa6891a524a00c9093e6ade13f42f20cc"></a>MODE_QUERY&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a811fe196a5d9d37857c2f8adeeaac3c6a00a4b47a3e1d23558b50f9718616d024"></a>MODE_PARSE&#160;</td><td class="fielddoc">
</td></tr>
</table>

<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00013">13</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ade834d0f532de588d80eefdefe9e4e74"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int exportDB </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#a1a512138316a227059ca128597dbd464">rpmts</a>&#160;</td>
          <td class="paramname"><em>ts</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00051">51</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

<p>References <a class="el" href="rpmio_8h.html#a7e40bd43f40fcfce2773851b922c7774">Fclose()</a>, <a class="el" href="rpmio_8h.html#a7fdbfe3ae72584240fb4c41364667ed6">fdDup()</a>, <a class="el" href="header_8h_source.html#l00034">HEADER_MAGIC_YES</a>, <a class="el" href="header_8h.html#abe3afb87a33318ab9cef8039d9a12698">headerWrite()</a>, <a class="el" href="rpmdb_8h.html#a7d328106a65ab43bbef20b9897e463a4">rpmdbFreeIterator()</a>, <a class="el" href="rpmtag_8h_source.html#l00341">RPMDBI_PACKAGES</a>, <a class="el" href="rpmdb_8h.html#aa20413aa4018cf32e700decc7dba83f3">rpmdbNextIterator()</a>, <a class="el" href="rpmts_8h.html#ab4b02a71a720d4df382383cfef2b193b">rpmtsInitIterator()</a>, <a class="el" href="rpmts_8h_source.html#l00160">RPMTXN_READ</a>, <a class="el" href="rpmts_8h.html#a03aef410d64a0bb30a85620690485ce1">rpmtxnBegin()</a>, and <a class="el" href="rpmts_8h.html#ac9175282aaba54aed3d1f798494a7d66">rpmtxnEnd()</a>.</p>

<p>Referenced by <a class="el" href="rpmdb_8c_source.html#l00092">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a64d47e4f0a8dd01a5ea9e6dc88fd1367"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int importDB </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="rpmtypes_8h.html#a1a512138316a227059ca128597dbd464">rpmts</a>&#160;</td>
          <td class="paramname"><em>ts</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00073">73</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

<p>References <a class="el" href="rpmio_8h.html#a7e40bd43f40fcfce2773851b922c7774">Fclose()</a>, <a class="el" href="rpmio_8h.html#a7fdbfe3ae72584240fb4c41364667ed6">fdDup()</a>, <a class="el" href="header_8h_source.html#l00034">HEADER_MAGIC_YES</a>, <a class="el" href="header_8h.html#a29a7512cc49adc47238baf0acd3f67e5">headerRead()</a>, <a class="el" href="rpmts_8h.html#a5cd6e31ab55095e92ef123b66a2337a5">rpmtsImportHeader()</a>, <a class="el" href="rpmts_8h_source.html#l00161">RPMTXN_WRITE</a>, <a class="el" href="rpmts_8h.html#a03aef410d64a0bb30a85620690485ce1">rpmtxnBegin()</a>, and <a class="el" href="rpmts_8h.html#ac9175282aaba54aed3d1f798494a7d66">rpmtxnEnd()</a>.</p>

<p>Referenced by <a class="el" href="rpmdb_8c_source.html#l00092">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00092">92</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

<p>References <a class="el" href="system_8h_source.html#l00110">_</a>, <a class="el" href="cliutils_8c_source.html#l00019">argerror()</a>, <a class="el" href="rpmdb_8c_source.html#l00051">exportDB()</a>, <a class="el" href="rpmdb_8c_source.html#l00073">importDB()</a>, <a class="el" href="rpmdb_8c_source.html#l00017">MODE_EXPORTDB</a>, <a class="el" href="rpmdb_8c_source.html#l00018">MODE_IMPORTDB</a>, <a class="el" href="rpmdb_8c_source.html#l00014">MODE_INITDB</a>, <a class="el" href="rpmdb_8c_source.html#l00015">MODE_REBUILDDB</a>, <a class="el" href="rpmdb_8c_source.html#l00016">MODE_VERIFYDB</a>, <a class="el" href="cliutils_8c_source.html#l00036">printUsage()</a>, <a class="el" href="rpmcli_8h.html#a9b4197af25cc216aa3bb7cce5d158dcf">rpmcliFini()</a>, <a class="el" href="rpmcli_8h.html#af4d555b4c5efcf319fe643d164775eaf">rpmcliInit()</a>, <a class="el" href="rpmcli_8h.html#a4a1b016e2d7aaea6937155c21c87a215">rpmcliRootDir</a>, <a class="el" href="rpmmacro_8h.html#a4bb017f52f3bd9b8aae77772b0bc9ba8">rpmExpandNumeric()</a>, <a class="el" href="rpmts_8h.html#ace47f4eaebd8be4f0abbcfb7942b3566">rpmtsCreate()</a>, <a class="el" href="rpmts_8h.html#a5315165a6e80a0c71dbe5eb07dd18f58">rpmtsFree()</a>, <a class="el" href="rpmts_8h.html#ac5c481337c698b24e3e88a050fd9d50e">rpmtsInitDB()</a>, <a class="el" href="rpmts_8h.html#a363e4ac3170e62c0e84913dbc2712785">rpmtsRebuildDB()</a>, <a class="el" href="rpmts_8h.html#a2cc54aa978a49d0b5cefa64095c8ee41">rpmtsSetRootDir()</a>, <a class="el" href="rpmts_8h.html#a586c60d8364e263aa5e22736cbac1e69">rpmtsSetVSFlags()</a>, and <a class="el" href="rpmts_8h.html#aaa8ba16c69e83f4062910eccc03ff0cf">rpmtsVerifyDB()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a20ce58e57514e6e2a19d044c7d0aeec6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct poptOption dbOptsTable[]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line">    { <span class="stringliteral">&quot;initdb&quot;</span>, <span class="charliteral">&#39;\0&#39;</span>, (POPT_ARG_VAL|POPT_ARGFLAG_OR), &amp;<a class="code" href="rpmdb_8c.html#a1ea5d0cb93f22f7d0fdf804bd68c3326">mode</a>, <a class="code" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6aea3bc2eb36fed3807bbd874045467e9a">MODE_INITDB</a>,</div><div class="line">         <span class="stringliteral">&quot;initialize database&quot;</span> , NULL},</div><div class="line">    { <span class="stringliteral">&quot;rebuilddb&quot;</span>, <span class="charliteral">&#39;\0&#39;</span>, (POPT_ARG_VAL|POPT_ARGFLAG_OR), &amp;<a class="code" href="rpmdb_8c.html#a1ea5d0cb93f22f7d0fdf804bd68c3326">mode</a>, <a class="code" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6afeff31880a0b435a7bc5ee3ea4e2bb4b">MODE_REBUILDDB</a>,</div><div class="line">         <span class="stringliteral">&quot;rebuild database inverted lists from installed package headers&quot;</span> ,</div><div class="line">        NULL},</div><div class="line">    { <span class="stringliteral">&quot;verifydb&quot;</span>, <span class="charliteral">&#39;\0&#39;</span>, (POPT_ARG_VAL|POPT_ARGFLAG_OR|POPT_ARGFLAG_DOC_HIDDEN),</div><div class="line">        &amp;<a class="code" href="rpmdb_8c.html#a1ea5d0cb93f22f7d0fdf804bd68c3326">mode</a>, <a class="code" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a943c638033610eb280c65a91d5502c48">MODE_VERIFYDB</a>,  <span class="stringliteral">&quot;verify database files&quot;</span> , NULL},</div><div class="line">    { <span class="stringliteral">&quot;exportdb&quot;</span>, <span class="charliteral">&#39;\0&#39;</span>, (POPT_ARG_VAL|POPT_ARGFLAG_OR), &amp;<a class="code" href="rpmdb_8c.html#a1ea5d0cb93f22f7d0fdf804bd68c3326">mode</a>, <a class="code" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a2cf783471ed9eef68abcc968197acfb0">MODE_EXPORTDB</a>,</div><div class="line">         <span class="stringliteral">&quot;export database to stdout header list&quot;</span> ,</div><div class="line">        NULL},</div><div class="line">    { <span class="stringliteral">&quot;importdb&quot;</span>, <span class="charliteral">&#39;\0&#39;</span>, (POPT_ARG_VAL|POPT_ARGFLAG_OR), &amp;<a class="code" href="rpmdb_8c.html#a1ea5d0cb93f22f7d0fdf804bd68c3326">mode</a>, <a class="code" href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6acdd25bf5a6cd729d6b42e6b33de42bd9">MODE_IMPORTDB</a>,</div><div class="line">         <span class="stringliteral">&quot;import database from stdin header list&quot;</span> ,</div><div class="line">        NULL},</div><div class="line">    POPT_TABLEEND</div><div class="line">}</div><div class="ttc" id="rpmdb_8c_html_a811fe196a5d9d37857c2f8adeeaac3c6a943c638033610eb280c65a91d5502c48"><div class="ttname"><a href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a943c638033610eb280c65a91d5502c48">MODE_VERIFYDB</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmdb_8c_source.html#l00016">rpmdb.c:16</a></div></div>
<div class="ttc" id="rpmdb_8c_html_a811fe196a5d9d37857c2f8adeeaac3c6aea3bc2eb36fed3807bbd874045467e9a"><div class="ttname"><a href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6aea3bc2eb36fed3807bbd874045467e9a">MODE_INITDB</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmdb_8c_source.html#l00014">rpmdb.c:14</a></div></div>
<div class="ttc" id="rpmdb_8c_html_a1ea5d0cb93f22f7d0fdf804bd68c3326"><div class="ttname"><a href="rpmdb_8c.html#a1ea5d0cb93f22f7d0fdf804bd68c3326">mode</a></div><div class="ttdeci">static int mode</div><div class="ttdef"><b>Definition:</b> <a href="rpmdb_8c_source.html#l00021">rpmdb.c:21</a></div></div>
<div class="ttc" id="rpmdb_8c_html_a811fe196a5d9d37857c2f8adeeaac3c6afeff31880a0b435a7bc5ee3ea4e2bb4b"><div class="ttname"><a href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6afeff31880a0b435a7bc5ee3ea4e2bb4b">MODE_REBUILDDB</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmdb_8c_source.html#l00015">rpmdb.c:15</a></div></div>
<div class="ttc" id="rpmdb_8c_html_a811fe196a5d9d37857c2f8adeeaac3c6a2cf783471ed9eef68abcc968197acfb0"><div class="ttname"><a href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6a2cf783471ed9eef68abcc968197acfb0">MODE_EXPORTDB</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmdb_8c_source.html#l00017">rpmdb.c:17</a></div></div>
<div class="ttc" id="rpmdb_8c_html_a811fe196a5d9d37857c2f8adeeaac3c6acdd25bf5a6cd729d6b42e6b33de42bd9"><div class="ttname"><a href="rpmdb_8c.html#a811fe196a5d9d37857c2f8adeeaac3c6acdd25bf5a6cd729d6b42e6b33de42bd9">MODE_IMPORTDB</a></div><div class="ttdef"><b>Definition:</b> <a href="rpmdb_8c_source.html#l00018">rpmdb.c:18</a></div></div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00023">23</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa006daaf11f1e2e45a6ababaf463212b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char** environ = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00010">10</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

</div>
</div>
<a class="anchor" id="a1ea5d0cb93f22f7d0fdf804bd68c3326"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int mode = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00021">21</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

<p>Referenced by <a class="el" href="rpm2archive_8c_source.html#l00021">fill_archive_entry()</a>, and <a class="el" href="rpm2archive_8c_source.html#l00061">process_package()</a>.</p>

</div>
</div>
<a class="anchor" id="a779c8fb41edee9b03a02a249606b0e76"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct poptOption optionsTable[]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div><div class="line">    { NULL, <span class="charliteral">&#39;\0&#39;</span>, POPT_ARG_INCLUDE_TABLE, <a class="code" href="rpmdb_8c.html#a20ce58e57514e6e2a19d044c7d0aeec6">dbOptsTable</a>, 0,</div><div class="line">         <span class="stringliteral">&quot;Database options:&quot;</span> , NULL },</div><div class="line">    { NULL, <span class="charliteral">&#39;\0&#39;</span>, POPT_ARG_INCLUDE_TABLE, <a class="code" href="rpmcli_8h.html#a60bd8b746df91eb1824a7ad6ffd42cf1">rpmcliAllPoptTable</a>, 0,</div><div class="line">         <span class="stringliteral">&quot;Common options for all rpm modes and executables:&quot;</span> , NULL },</div><div class="line"></div><div class="line">    POPT_AUTOALIAS</div><div class="line">    POPT_AUTOHELP</div><div class="line">    POPT_TABLEEND</div><div class="line">}</div><div class="ttc" id="rpmdb_8c_html_a20ce58e57514e6e2a19d044c7d0aeec6"><div class="ttname"><a href="rpmdb_8c.html#a20ce58e57514e6e2a19d044c7d0aeec6">dbOptsTable</a></div><div class="ttdeci">static struct poptOption dbOptsTable[]</div><div class="ttdef"><b>Definition:</b> <a href="rpmdb_8c_source.html#l00023">rpmdb.c:23</a></div></div>
<div class="ttc" id="rpmcli_8h_html_a60bd8b746df91eb1824a7ad6ffd42cf1"><div class="ttname"><a href="rpmcli_8h.html#a60bd8b746df91eb1824a7ad6ffd42cf1">rpmcliAllPoptTable</a></div><div class="ttdeci">struct poptOption rpmcliAllPoptTable[]</div><div class="ttdoc">Popt option table for options shared by all modes and executables. </div></div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="rpmdb_8c_source.html#l00040">40</a> of file <a class="el" href="rpmdb_8c_source.html">rpmdb.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>