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"/>
<title>rpm: rpmplugins.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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 class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>rpmplugins.h</h1>  </div>
</div>
<div class="contents">
<a href="rpmplugins_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _PLUGINS_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _PLUGINS_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;rpm/rpmtypes.h&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00008"></a>00008 <span class="preprocessor">#endif</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a><a class="code" href="rpmplugins_8h.html#a268226ef938c4c12b4323a10b30c4a4a">00010</a> <span class="preprocessor">#define PLUGIN_HOOKS    plugin_hooks</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a><a class="code" href="rpmplugins_8h.html#aad92815ba95f864dbc171629f748ff1f">00012</a> <span class="preprocessor">#define PLUGINHOOK_INIT_FUNC                    pluginhook_init</span>
<a name="l00013"></a><a class="code" href="rpmplugins_8h.html#abe1fa3d7e8a496f5940dd2885e5d2fff">00013</a> <span class="preprocessor"></span><span class="preprocessor">#define PLUGINHOOK_CLEANUP_FUNC                 pluginhook_cleanup</span>
<a name="l00014"></a><a class="code" href="rpmplugins_8h.html#ae610a54f33ae8abcf316d90ef98d44f7">00014</a> <span class="preprocessor"></span><span class="preprocessor">#define PLUGINHOOK_OPENTE_FUNC                  pluginhook_opente</span>
<a name="l00015"></a><a class="code" href="rpmplugins_8h.html#aff0e1f8476a0536c8fcd173e2a9f5c65">00015</a> <span class="preprocessor"></span><span class="preprocessor">#define PLUGINHOOK_COLL_POST_ADD_FUNC           pluginhook_coll_post_add</span>
<a name="l00016"></a><a class="code" href="rpmplugins_8h.html#aa1a9dfd5fca81cf60132c6ac99bc27bb">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define PLUGINHOOK_COLL_POST_ANY_FUNC           pluginhook_coll_post_any</span>
<a name="l00017"></a><a class="code" href="rpmplugins_8h.html#ab93c3873682ecabbb1c1f67822002ac6">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define PLUGINHOOK_COLL_PRE_REMOVE_FUNC         pluginhook_coll_pre_remove</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9d">00019</a> <span class="keyword">enum</span> <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9d">rpmPluginHook_e</a> {
<a name="l00020"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da79b38b06996f46e62ba5bcd446b19836">00020</a>     <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da79b38b06996f46e62ba5bcd446b19836">PLUGINHOOK_NONE</a>             = 0,
<a name="l00021"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da365cc34928d901e37ca18a015f0c1e74">00021</a>     <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da365cc34928d901e37ca18a015f0c1e74">PLUGINHOOK_INIT</a>             = 1 &lt;&lt; 0,
<a name="l00022"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9daf6280a89e118651accc3515c17ff75fc">00022</a>     <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9daf6280a89e118651accc3515c17ff75fc">PLUGINHOOK_CLEANUP</a>          = 1 &lt;&lt; 1,
<a name="l00023"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da577c0f57fa27cbc34c1892a2033f1ce4">00023</a>     <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da577c0f57fa27cbc34c1892a2033f1ce4">PLUGINHOOK_OPENTE</a>           = 1 &lt;&lt; 2,
<a name="l00024"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da937b81eedec859f622aa9cb88adbd3da">00024</a>     <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9da937b81eedec859f622aa9cb88adbd3da">PLUGINHOOK_COLL_POST_ADD</a>    = 1 &lt;&lt; 3,
<a name="l00025"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9daa09aa9195c04ad16c663053a8269137d">00025</a>     <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9daa09aa9195c04ad16c663053a8269137d">PLUGINHOOK_COLL_POST_ANY</a>    = 1 &lt;&lt; 4,
<a name="l00026"></a><a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9daaa2eef5ca9f514d40ed844aa98506be1">00026</a>     <a class="code" href="rpmplugins_8h.html#a7f65e651ef96bf4eb8b1b57e4cc4cd9daaa2eef5ca9f514d40ed844aa98506be1">PLUGINHOOK_COLL_PRE_REMOVE</a>  = 1 &lt;&lt; 5
<a name="l00027"></a>00027 };
<a name="l00028"></a>00028 
<a name="l00029"></a><a class="code" href="rpmplugins_8h.html#ad831701ad8f781d0e06c8ac082cf9ad3">00029</a> <span class="keyword">typedef</span> <a class="code" href="group__rpmtypes.html#ga44316ffc2f14b8b54c8473f2977e8c81">rpmFlags</a> rpmPluginHook;
<a name="l00030"></a>00030 
<a name="l00036"></a>00036 <a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> <a class="code" href="rpmplugins_8h.html#ae7ec5380e64e59a4025f38e156c05a55" title="Create a new plugins structure.">rpmpluginsNew</a>(<a class="code" href="group__rpmtypes.html#ga1a512138316a227059ca128597dbd464" title="The main types involved in transaction manipulation.">rpmts</a> ts);
<a name="l00037"></a>00037 
<a name="l00043"></a>00043 <a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> <a class="code" href="rpmplugins_8h.html#a0c43a68beefb12aaa09560cdee4d57d3" title="Destroy a plugins structure.">rpmpluginsFree</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins);
<a name="l00044"></a>00044 
<a name="l00053"></a>00053 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#a826e0017735f128653d5f96bba9a7342" title="Add and open a plugin.">rpmpluginsAdd</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *opts);
<a name="l00054"></a>00054 
<a name="l00061"></a>00061 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#afc7febdd98c604e5968b36bd420a74b4" title="Add and open a collection plugin.">rpmpluginsAddCollectionPlugin</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00062"></a>00062 
<a name="l00069"></a>00069 <span class="keywordtype">int</span> <a class="code" href="rpmplugins_8h.html#a63465f536a598ed22b0d091a93e24b74" title="Determine if a plugin has been added already.">rpmpluginsPluginAdded</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 
<a name="l00079"></a>00079 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#a8c894bd70d16664bb8042f3df3e0fdbb" title="Call the init plugin hook.">rpmpluginsCallInit</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *opts);
<a name="l00080"></a>00080 
<a name="l00087"></a>00087 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#afde5f4bbb4d014076a5a3c8ca6dff204" title="Call the cleanup plugin hook.">rpmpluginsCallCleanup</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00088"></a>00088 
<a name="l00096"></a>00096 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#a7b962f2d41383ffa8c64fcbec257ccc6" title="Call the open te plugin hook.">rpmpluginsCallOpenTE</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="group__rpmtypes.html#ga257d5c7d60e6ce00722ef73041b2c514">rpmte</a> te);
<a name="l00097"></a>00097 
<a name="l00104"></a>00104 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#aaf75b2fd8484edc6bbc92ab7f6fde738" title="Call the collection post add plugin hook.">rpmpluginsCallCollectionPostAdd</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00105"></a>00105 
<a name="l00112"></a>00112 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#a7bfd8fc544812bd591e832b0d1bfa313" title="Call the collection post any plugin hook.">rpmpluginsCallCollectionPostAny</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00113"></a>00113 
<a name="l00120"></a>00120 <a class="code" href="group__rpmtypes.html#ga06da857c39457bfb6ea9049643fdb706" title="Package read return codes.">rpmRC</a> <a class="code" href="rpmplugins_8h.html#a71ac1a87dc3808670dd124cce95cba22" title="Call the collection pre remove plugin hook.">rpmpluginsCallCollectionPreRemove</a>(<a class="code" href="rpmtypes_8h.html#a62f246cc316cbf9af71ac9ee8fce9422">rpmPlugins</a> plugins, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>}
<a name="l00124"></a>00124 <span class="preprocessor">#endif</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span><span class="preprocessor">#endif  </span><span class="comment">/* _PLUGINS_H */</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Dec 14 2010 for rpm by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>