1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
<!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: cpe_dict_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 Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Data 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 Structures</span></a></li>
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>cpe_dict_model Struct Reference<br/>
<small>
[<a class="el" href="group__cpedict.html">CPE Dictionary</a>]</small>
</h1><!-- doxytag: class="cpe_dict_model" -->
<p>Structure representing a CPE dictionary.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="cpedict__priv_8h_source.html">cpedict_priv.h</a>></code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga8ba5fd300dbbff3350e27b9d5bd3c157">cpe_dict_model_free</a> (struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *dict)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga535f4d9ab9a4d63c2a8586d308b4066d">cpe_dict_model_new</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga3dc08ad0483866473e5066869d5f542e">cpe_dict_model_export</a> (const struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *dict, const char *file)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Write the dict_model to a file. <a href="group__cpedict.html#ga3dc08ad0483866473e5066869d5f542e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga0dc2738dea0113dad9a71740c216dbae">cpe_dict_model_import</a> (const char *file)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load new CPE dictionary from file. <a href="group__cpedict.html#ga0dc2738dea0113dad9a71740c216dbae"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Getters</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpc9fd0bcb5385a65354c37f1bb504399d"></a>Return value is pointer to structure's member.</p>
<p>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="structcpe__item__iterator.html">cpe_item_iterator</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga206ed522a534a6e2c91ba919ac1b00b0">cpe_dict_model_get_items</a> (const struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *item)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="structcpe__dict__model.html" title="Structure representing a CPE dictionary.">cpe_dict_model</a> functions to get CPE items <a href="group__cpedict.html#ga206ed522a534a6e2c91ba919ac1b00b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcpe__vendor__iterator.html">cpe_vendor_iterator</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga5e7d89457cd697fee063ba4ad41ff930">cpe_dict_model_get_vendors</a> (const struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *item)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="structcpe__dict__model.html" title="Structure representing a CPE dictionary.">cpe_dict_model</a> functions to get vendors <a href="group__cpedict.html#ga5e7d89457cd697fee063ba4ad41ff930"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7ddb03a5ffd1f967c722915f00d2e9c0"></a><!-- doxytag: member="cpe_dict_model::cpe_dict_model_get_xmlns" ref="ga7ddb03a5ffd1f967c722915f00d2e9c0" args="(const struct cpe_dict_model *model)" -->
struct <a class="el" href="structxml__metadata__iterator.html">xml_metadata_iterator</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga7ddb03a5ffd1f967c722915f00d2e9c0">cpe_dict_model_get_xmlns</a> (const struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *model)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get XML namespace from CPE dict model. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Setters</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp6e47466b75bb957a603aa54c079ac8bf"></a>For lists use add functions.</p>
<p>Parameters of set functions are duplicated in memory and need to be freed by caller. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#gac5c00a90ee125bc99e51abde05add610">cpe_dict_model_add_vendor</a> (struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *dict, struct <a class="el" href="structcpe__vendor.html">cpe_vendor</a> *new_vendor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaeab13506267f399e19ea06ae98b127d4"></a><!-- doxytag: member="cpe_dict_model::cpe_dict_model_add_xml" ref="gaeab13506267f399e19ea06ae98b127d4" args="(struct cpe_dict_model *model, struct xml_metadata *xml)" -->
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#gaeab13506267f399e19ea06ae98b127d4">cpe_dict_model_add_xml</a> (struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *model, struct <a class="el" href="structxml__metadata.html">xml_metadata</a> *xml)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Add XML namespace to CPE dict model. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Evaluators</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp1fdbbbb8aba6580be2c9cb4b12e86ca2"></a> </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga8118960e36454c503a4681acfaba1e5e">cpe_dict_model_supported</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get supported version of CPE dictionary XML. <a href="group__cpedict.html#ga8118960e36454c503a4681acfaba1e5e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga521348e593c0caf8e2f82f0729dd997c">cpe_name_match_dict</a> (struct <a class="el" href="structcpe__name.html">cpe_name</a> *cpe, struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *dict)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Verify wether given CPE is known according to specified dictionary. <a href="group__cpedict.html#ga521348e593c0caf8e2f82f0729dd997c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__cpedict.html#ga0bf19ab90612cb4af8931d83b51e59d6">cpe_name_match_dict_str</a> (const char *cpe, struct <a class="el" href="structcpe__dict__model.html">cpe_dict_model</a> *dict)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Verify if CPE given by string is known according to specified dictionary. <a href="group__cpedict.html#ga0bf19ab90612cb4af8931d83b51e59d6"></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="ab432bc56eb9402a6e759810260f217f0"></a><!-- doxytag: member="cpe_dict_model::xmlns" ref="ab432bc56eb9402a6e759810260f217f0" args="" -->
struct <a class="el" href="structoscap__list.html">oscap_list</a> * </td><td class="memItemRight" valign="bottom"><b>xmlns</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa2ceb8082159c49d83baa52a976203f"></a><!-- doxytag: member="cpe_dict_model::xml" ref="afa2ceb8082159c49d83baa52a976203f" args="" -->
struct <a class="el" href="structxml__metadata.html">xml_metadata</a> </td><td class="memItemRight" valign="bottom"><b>xml</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a091dc0d93b41200735c68632c07302e9"></a><!-- doxytag: member="cpe_dict_model::items" ref="a091dc0d93b41200735c68632c07302e9" args="" -->
struct <a class="el" href="structoscap__list.html">oscap_list</a> * </td><td class="memItemRight" valign="bottom"><b>items</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c59f354beda65b36c5e1e2dbe116db2"></a><!-- doxytag: member="cpe_dict_model::vendors" ref="a2c59f354beda65b36c5e1e2dbe116db2" args="" -->
struct <a class="el" href="structoscap__list.html">oscap_list</a> * </td><td class="memItemRight" valign="bottom"><b>vendors</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a380baade2f244818b3b01fb54d14c441"></a><!-- doxytag: member="cpe_dict_model::generator" ref="a380baade2f244818b3b01fb54d14c441" args="" -->
struct <a class="el" href="structcpe__generator.html">cpe_generator</a> * </td><td class="memItemRight" valign="bottom"><b>generator</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Structure representing a CPE dictionary. </p>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>/home/pvrabec/project/openscap/openscap-0.5.12/src/CPE/<a class="el" href="cpedict__priv_8c.html">cpedict_priv.c</a></li>
<li>/home/pvrabec/project/openscap/openscap-0.5.12/src/CPE/public/<a class="el" href="cpedict_8h_source.html">cpedict.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on 30 Jun 2010 for Open SCAP Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
|