<!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 Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File 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 "<a class="el" href="system_8h-source.html">system.h</a>"</code><br> <code>#include <<a class="el" href="rpmlib_8h-source.html">rpmlib.h</a>></code><br> <code>#include "<a class="el" href="rpmds_8h-source.html">rpmds.h</a>"</code><br> <code>#include "<a class="el" href="debug_8h-source.html">debug.h</a>"</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 </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmcli.html#g5c75443bc7123ecb0d3aca0ac61498bc">rpmShowRpmlibProvides</a> (FILE *fp)</td></tr> <tr><td class="mdescLeft"> </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 </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"> </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 </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"> </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> </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> </td> <td class="paramname"> <em>key</em> </td> <td> ) </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> </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 *** </td> <td class="paramname"> <em>provNames</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int ** </td> <td class="paramname"> <em>provFlags</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char *** </td> <td class="paramname"> <em>provVersions</em></td><td> </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> </td><td>address of array of rpmlib internal provide names </td></tr> <tr><td valign="top"></td><td valign="top"><em>provFlags</em> </td><td>address of array of rpmlib internal provide flags </td></tr> <tr><td valign="top"></td><td valign="top"><em>provVersions</em> </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 <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>