Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 3736f276bb1ccfbcee6cb2d27b25d981 > files > 349

openscap-devel-0.5.7-1mdv2010.1.x86_64.rpm

<!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>Open SCAP Library: cve_model Struct Reference</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.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <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 class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>cve_model Struct Reference<br/>
<small>
[<a class="el" href="group__CVEPrivate.html">Private members</a>,&nbsp;<a class="el" href="group__CVE.html">CVE</a>]</small>
</h1><!-- doxytag: class="cve_model" -->
<p>cve_list cve_list is the top level element of the CVE List provided by MITRE.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="cve__priv_8h_source.html">cve_priv.h</a>&gt;</code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Parse functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp55bde346b0631e090bfc4a3be713ee4c"></a>Functions for parsing structures from XML.</p>
<p>Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcve__model.html">cve_model</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVEPrivate.html#gaca27aa4cb28e279b387808852c8866ba">cve_model_parse_xml</a> (const struct <a class="el" href="structoscap__import__source.html">oscap_import_source</a> *source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse CVE model from XML (private function).  <a href="group__CVEPrivate.html#gaca27aa4cb28e279b387808852c8866ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcve__model.html">cve_model</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVEPrivate.html#gaa9c004630382a99bc8a5dc6fff389613">cve_model_parse</a> (xmlTextReaderPtr reader)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse CVE model.  <a href="group__CVEPrivate.html#gaa9c004630382a99bc8a5dc6fff389613"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Export functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp5713b34587ba18c5a4561b737b639ae5"></a>Functions for export structures to XML by XML writer.</p>
<p>Exported structures need to be freed by the caller. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVEPrivate.html#ga72496d1817ce8a92e6662c461cd276c5">cve_export</a> (const struct <a class="el" href="structcve__model.html">cve_model</a> *cve, xmlTextWriterPtr writer)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Export CVE model to XML file.  <a href="group__CVEPrivate.html#ga72496d1817ce8a92e6662c461cd276c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVEPrivate.html#ga493ec906efb8017df07b8d3775cf20ff">cve_model_export_xml</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *cve, const struct <a class="el" href="structoscap__export__target.html">oscap_export_target</a> *target)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Export CVE model to XML file.  <a href="group__CVEPrivate.html#ga493ec906efb8017df07b8d3775cf20ff"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Get functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpc2ac1eb4de8ec5add5567cbae2f237e5"></a>Functions for getting attributes from CVE model structures.</p>
<p>Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structxml__metadata__iterator.html">xml_metadata_iterator</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#gac03cbd24e33a5f7c7b207fc56fbd1686">cve_model_get_xmlns</a> (const struct <a class="el" href="structcve__model.html">cve_model</a> *<a class="el" href="structcve__model.html">cve_model</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get en iterator to XML metadatas from CVE model.  <a href="group__CVE.html#gac03cbd24e33a5f7c7b207fc56fbd1686"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Add functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpaabced06c8a2e8c15954ce4b1e334884"></a>Functions to add member to list.</p>
<p>Return value is true if added succesfuly or false in case of error. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#gaec8f745d0f680c83f6fe74f61b1d1d8f">cve_model_add_entry</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *model, struct <a class="el" href="structcve__entry.html">cve_entry</a> *new_entry)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add entry to CVE model.  <a href="group__CVE.html#gaec8f745d0f680c83f6fe74f61b1d1d8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1d1df0af8af9655a11623baf7c2b9c34"></a><!-- doxytag: member="cve_model::cve_model_add_xml" ref="ga1d1df0af8af9655a11623baf7c2b9c34" args="(struct cve_model *model, struct xml_metadata *xml)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga1d1df0af8af9655a11623baf7c2b9c34">cve_model_add_xml</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *model, struct <a class="el" href="structxml__metadata.html">xml_metadata</a> *xml)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add XML namespace to CVE model. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">New functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp73a4128f20867fa23ebb2e75e58922df"></a>Constructors of CVE model structures.</p>
<p>Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcve__model.html">cve_model</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga743af6ca1c274180e587feb63599bcd6">cve_model_new</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">New CVE model.  <a href="group__CVE.html#ga743af6ca1c274180e587feb63599bcd6"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Free functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp237dd65bc76b7de56066830910ced6ed"></a>Destructors of CVE model structures.</p>
<p>Functions free structures with all members recursively. For simple deletion of entity use remove functions. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga43fce49d7e548907db40e89c9555b87d">cve_model_free</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *<a class="el" href="structcve__model.html">cve_model</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Free CVE model.  <a href="group__CVE.html#ga43fce49d7e548907db40e89c9555b87d"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Other functions</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb175402ebe89f00c62233c5453c5a243"></a> </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga10ba15f1eb55778addf375685b80e96f">cve_model_export</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *cve, const struct <a class="el" href="structoscap__export__target.html">oscap_export_target</a> *target)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Export CVE model to XML file.  <a href="group__CVE.html#ga10ba15f1eb55778addf375685b80e96f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcve__model.html">cve_model</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga972a760d1eeffe1b54ad467387d16e5a">cve_model_import</a> (const struct <a class="el" href="structoscap__import__source.html">oscap_import_source</a> *source)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses the specified XML file and creates a list of CVE data structures.  <a href="group__CVE.html#ga972a760d1eeffe1b54ad467387d16e5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga0521ad9696a5a48d5b7f13a1b7d782d4">cve_model_supported</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get supported version of CVE XML.  <a href="group__CVE.html#ga0521ad9696a5a48d5b7f13a1b7d782d4"></a><br/></td></tr>
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed4e7417f4da06e1a5a3054a0ef8ebfb"></a><!-- doxytag: member="cve_model::xml" ref="aed4e7417f4da06e1a5a3054a0ef8ebfb" args="" -->
struct <a class="el" href="structxml__metadata.html">xml_metadata</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>xml</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04d607e72138335cb5d6f6a5dd98144c"></a><!-- doxytag: member="cve_model::xmlns" ref="a04d607e72138335cb5d6f6a5dd98144c" args="" -->
struct <a class="el" href="structoscap__list.html">oscap_list</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>xmlns</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b98546f5f16b7239e494ba57cc084fe"></a><!-- doxytag: member="cve_model::entries" ref="a0b98546f5f16b7239e494ba57cc084fe" args="" -->
struct <a class="el" href="structoscap__list.html">oscap_list</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>entries</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>cve_list cve_list is the top level element of the CVE List provided by MITRE. </p>
<p>Structure holding CVE model.</p>
<p>It represents holds all CVE Items. </p>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>/home/pvrabec/openscap/openscap-0.5.7/src/CVE/<a class="el" href="cve__priv_8c.html">cve_priv.c</a></li>
<li>/home/pvrabec/openscap/openscap-0.5.7/src/CVE/<a class="el" href="cve__priv_8h_source.html">cve_priv.h</a></li>
<li>/home/pvrabec/openscap/openscap-0.5.7/src/CVE/public/<a class="el" href="cve_8h_source.html">cve.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on 26 Feb 2010 for Open SCAP Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>