Sophie

Sophie

distrib > CentOS > 5 > i386 > media > os > by-pkgid > 608068f228165b6e5a4f2c11fda54521 > files > 589

rpm-apidocs-4.4.2.3-34.el5.i386.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: lib/rpmlibprov.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>lib/rpmlibprov.c File Reference</h1><code>#include &quot;<a class="el" href="system_8h-source.html">system.h</a>&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="rpmds_8h-source.html">rpmds.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="rpmlibprov_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="structrpmlibProvides__s.html">rpmlibProvides_s</a></td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmcli.html#g5c75443bc7123ecb0d3aca0ac61498bc">rpmShowRpmlibProvides</a> (FILE *fp)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Display current rpmlib feature provides.  <a href="group__rpmcli.html#g5c75443bc7123ecb0d3aca0ac61498bc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmlibprov_8c.html#19330edf301d4f0375fb89e1461e4e3f">rpmCheckRpmlibProvides</a> (const <a class="el" href="rpmlib_8h.html#8ee68aea070136e6b8c844995ff0c5a8">rpmds</a> key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check dependency against internal rpmlib feature provides.  <a href="#19330edf301d4f0375fb89e1461e4e3f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmlibprov_8c.html#ceb8c911fe4e785258766fe65020f9b2">rpmGetRpmlibProvides</a> (const char ***provNames, int **provFlags, const char ***provVersions)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return copy of rpmlib internal provides.  <a href="#ceb8c911fe4e785258766fe65020f9b2"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static struct <a class="el" href="structrpmlibProvides__s.html">rpmlibProvides_s</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="rpmlibprov_8c.html#c3037824b4cf0b88b448ac65e1beeb40">rpmlibProvides</a> []</td></tr>

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

<p>
Definition in file <a class="el" href="rpmlibprov_8c-source.html">rpmlibprov.c</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="19330edf301d4f0375fb89e1461e4e3f"></a><!-- doxytag: member="rpmlibprov.c::rpmCheckRpmlibProvides" ref="19330edf301d4f0375fb89e1461e4e3f" args="(const rpmds key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmCheckRpmlibProvides           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="rpmlib_8h.html#8ee68aea070136e6b8c844995ff0c5a8">rpmds</a>&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Check dependency against internal rpmlib feature provides. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>dependency </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>1 if dependency overlaps, 0 otherwise </dd></dl>

<p>
Definition at line <a class="el" href="rpmlibprov_8c-source.html#l00082">82</a> of file <a class="el" href="rpmlibprov_8c-source.html">rpmlibprov.c</a>.
<p>
References <a class="el" href="rpmlibprov_8c-source.html#l00019">rpmlibProvides_s::featureEVR</a>, <a class="el" href="rpmlibprov_8c-source.html#l00020">rpmlibProvides_s::featureFlags</a>, <a class="el" href="rpmlibprov_8c-source.html#l00017">rpmlibProvides_s::featureName</a>, <a class="el" href="rpmds_8c-source.html#l01021">rpmdsCompare()</a>, <a class="el" href="rpmds_8c-source.html#l00054">rpmdsFree()</a>, <a class="el" href="rpmds_8c-source.html#l00502">rpmdsSingle()</a>, <a class="el" href="rpmlibprov_8c-source.html#l00026">rpmlibProvides</a>, and <a class="el" href="rpmlib_8h.html#342756dddb61d125ae851a8b1ab0507b843a73db82df579ed12eab79ef480318">RPMTAG_PROVIDENAME</a>.
<p>
Referenced by <a class="el" href="depends_8c-source.html#l00405">unsatisfiedDepend()</a>.
</div>
</div><p>
<a class="anchor" name="ceb8c911fe4e785258766fe65020f9b2"></a><!-- doxytag: member="rpmlibprov.c::rpmGetRpmlibProvides" ref="ceb8c911fe4e785258766fe65020f9b2" args="(const char ***provNames, int **provFlags, const char ***provVersions)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int rpmGetRpmlibProvides           </td>
          <td>(</td>
          <td class="paramtype">const char ***&nbsp;</td>
          <td class="paramname"> <em>provNames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int **&nbsp;</td>
          <td class="paramname"> <em>provFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char ***&nbsp;</td>
          <td class="paramname"> <em>provVersions</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return copy of rpmlib internal provides. 
<p>
<dl compact><dt><b>Return values:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>provNames</em>&nbsp;</td><td>address of array of rpmlib internal provide names </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>provFlags</em>&nbsp;</td><td>address of array of rpmlib internal provide flags </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>provVersions</em>&nbsp;</td><td>address of array of rpmlib internal provide versions </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>no. of entries </dd></dl>

<p>
Definition at line <a class="el" href="rpmlibprov_8c-source.html#l00101">101</a> of file <a class="el" href="rpmlibprov_8c-source.html">rpmlibprov.c</a>.
<p>
References <a class="el" href="rpmlib_8h-source.html#l00058">_free()</a>, <a class="el" href="rpmlibprov_8c-source.html#l00019">rpmlibProvides_s::featureEVR</a>, <a class="el" href="rpmlibprov_8c-source.html#l00020">rpmlibProvides_s::featureFlags</a>, <a class="el" href="rpmlibprov_8c-source.html#l00017">rpmlibProvides_s::featureName</a>, <a class="el" href="rpmlibprov_8c-source.html#l00026">rpmlibProvides</a>, and <a class="el" href="rpmmalloc_8c-source.html#l00034">xcalloc()</a>.
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="c3037824b4cf0b88b448ac65e1beeb40"></a><!-- doxytag: member="rpmlibprov.c::rpmlibProvides" ref="c3037824b4cf0b88b448ac65e1beeb40" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structrpmlibProvides__s.html">rpmlibProvides_s</a> <a class="el" href="rpmlibprov_8c.html#c3037824b4cf0b88b448ac65e1beeb40">rpmlibProvides</a>[]<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="rpmlibprov_8c-source.html#l00026">26</a> of file <a class="el" href="rpmlibprov_8c-source.html">rpmlibprov.c</a>.
<p>
Referenced by <a class="el" href="rpmlibprov_8c-source.html#l00082">rpmCheckRpmlibProvides()</a>, <a class="el" href="rpmlibprov_8c-source.html#l00101">rpmGetRpmlibProvides()</a>, and <a class="el" href="rpmlibprov_8c-source.html#l00062">rpmShowRpmlibProvides()</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>