| Current File : //usr/share/docs/openscap/html/cpedict__priv_8h_source.html |
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>Open SCAP Library: cpedict_priv.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Open SCAP Library
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<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><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_adb51d477b117837783049eccd784b4d.html">CPE</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">cpedict_priv.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="cpedict__priv_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Copyright 2009--2014 Red Hat Inc., Durham, North Carolina.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * All Rights Reserved.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * License as published by the Free Software Foundation; either</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * This library is distributed in the hope that it will be useful, </span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * License along with this library; if not, write to the Free Software </span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * Authors:</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * Maros Barabas <mbarabas@redhat.com></span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifndef CPEDICT_PRIV_H_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define CPEDICT_PRIV_H_</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <libxml/xmlreader.h></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <libxml/xmlwriter.h></span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <stdlib.h></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="cpe__name_8h.html">cpe_name.h</a>"</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "cpe_ctx_priv.h"</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "<a class="code" href="cpe__dict_8h.html">cpe_dict.h</a>"</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#include "../common/public/oscap.h"</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "../common/util.h"</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "../common/elements.h"</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> OSCAP_HIDDEN_START;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">/* @endcond */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">struct </span><a class="code" href="structcpe__generator.html">cpe_generator</a> *<a class="code" href="cpedict__priv_8h.html#a2017292b0650545ade586fffb5c2af56">cpe_generator_parse</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__parser__ctx.html">cpe_parser_ctx</a> *ctx);</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">struct </span><a class="code" href="structcpe__item.html">cpe_item</a> *<a class="code" href="cpedict__priv_8h.html#a4ff63eb3d1fee39bcd31b9790db28643">cpe_item_parse</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__parser__ctx.html">cpe_parser_ctx</a> *ctx);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">struct </span><a class="code" href="structcpe__vendor.html">cpe_vendor</a> *<a class="code" href="cpedict__priv_8h.html#aaf937a430bf11be20fa2e5996aa2ed67">cpe_vendor_parse</a>(xmlTextReaderPtr reader);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">struct </span><a class="code" href="structcpe__dict__model.html">cpe_dict_model</a> *<a class="code" href="cpedict__priv_8h.html#aae63c5b0db9369aaee79a42fff570b50">cpe_dict_model_parse</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__parser__ctx.html">cpe_parser_ctx</a> *ctx);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keywordtype">char</span> *<a class="code" href="cpedict__priv_8h.html#a8fc5069a1af9e794470aefdddf2911b0">cpe_dict_detect_version_priv</a>(xmlTextReader *reader);</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keywordtype">void</span> <a class="code" href="cpedict__priv_8h.html#af533a25fc4fdd9101bf4badf15d50f20">cpe_dict_model_export_xml</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__dict__model.html">cpe_dict_model</a> *dict, <span class="keyword">const</span> <span class="keywordtype">char</span> *file);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">void</span> <a class="code" href="cpedict__priv_8h.html#aa67e4679e6c485673692d0807d0d0a99">cpe_dict_export</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__dict__model.html">cpe_dict_model</a> *dict, xmlTextWriterPtr writer);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">void</span> <a class="code" href="cpedict__priv_8h.html#a43920e3a31e443ef3aa55d00d0ce3e76">cpe_generator_export</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__generator.html">cpe_generator</a> *generator, xmlTextWriterPtr writer);</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keywordtype">void</span> <a class="code" href="cpedict__priv_8h.html#ab292f9e8368385e006896fcf63a690e3">cpe_item_export</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__item.html">cpe_item</a> *item, xmlTextWriterPtr writer, <span class="keywordtype">int</span> base_version);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="keywordtype">void</span> <a class="code" href="cpedict__priv_8h.html#abf5bcc5c74c7e5826325537ecbbfc512">cpe_vendor_export</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__vendor.html">cpe_vendor</a> *vendor, xmlTextWriterPtr writer);</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment">/* <cpe-list></span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"> * */</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structcpe__dict__model.html"> 126</a></span> <span class="keyword">struct </span><a class="code" href="structcpe__dict__model.html">cpe_dict_model</a> { <span class="comment">// the main node</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">struct </span><a class="code" href="structoscap__list.html">oscap_list</a> *items; <span class="comment">// dictionary items</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">struct </span><a class="code" href="structoscap__list.html">oscap_list</a> *vendors;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">int</span> base_version;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keyword">struct </span><a class="code" href="structcpe__generator.html">cpe_generator</a> *generator;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordtype">char</span>* origin_file;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> };</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> OSCAP_HIDDEN_END;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="comment">/* @endcond */</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="structcpe__generator_html"><div class="ttname"><a href="structcpe__generator.html">cpe_generator</a></div><div class="ttdoc">Structure with information about document. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:145</div></div>
<div class="ttc" id="cpe__dict_8h_html"><div class="ttname"><a href="cpe__dict_8h.html">cpe_dict.h</a></div><div class="ttdoc">Interface to Common Platform Enumeration (CPE) Dictionary. </div></div>
<div class="ttc" id="cpedict__priv_8h_html_abf5bcc5c74c7e5826325537ecbbfc512"><div class="ttname"><a href="cpedict__priv_8h.html#abf5bcc5c74c7e5826325537ecbbfc512">cpe_vendor_export</a></div><div class="ttdeci">void cpe_vendor_export(const struct cpe_vendor *vendor, xmlTextWriterPtr writer)</div><div class="ttdoc">Exporting function for CPE vendor. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:1167</div></div>
<div class="ttc" id="structcpe__vendor_html"><div class="ttname"><a href="structcpe__vendor.html">cpe_vendor</a></div><div class="ttdoc">Structure with information about vendor. </div><div class="ttdef"><b>Definition:</b> cpe_dict.h:55</div></div>
<div class="ttc" id="structcpe__parser__ctx_html"><div class="ttname"><a href="structcpe__parser__ctx.html">cpe_parser_ctx</a></div><div class="ttdef"><b>Definition:</b> cpe_ctx_priv.c:35</div></div>
<div class="ttc" id="cpedict__priv_8h_html_af533a25fc4fdd9101bf4badf15d50f20"><div class="ttname"><a href="cpedict__priv_8h.html#af533a25fc4fdd9101bf4badf15d50f20">cpe_dict_model_export_xml</a></div><div class="ttdeci">void cpe_dict_model_export_xml(const struct cpe_dict_model *dict, const char *file)</div><div class="ttdoc">Export function for CPE dictionary model. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:979</div></div>
<div class="ttc" id="cpe__name_8h_html"><div class="ttname"><a href="cpe__name_8h.html">cpe_name.h</a></div><div class="ttdoc">Interface to Common Platform Enumeration (CPE) URI. </div></div>
<div class="ttc" id="cpedict__priv_8h_html_aa67e4679e6c485673692d0807d0d0a99"><div class="ttname"><a href="cpedict__priv_8h.html#aa67e4679e6c485673692d0807d0d0a99">cpe_dict_export</a></div><div class="ttdeci">void cpe_dict_export(const struct cpe_dict_model *dict, xmlTextWriterPtr writer)</div><div class="ttdoc">Internal export function for CPE dictionary model. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:1006</div></div>
<div class="ttc" id="cpedict__priv_8h_html_ab292f9e8368385e006896fcf63a690e3"><div class="ttname"><a href="cpedict__priv_8h.html#ab292f9e8368385e006896fcf63a690e3">cpe_item_export</a></div><div class="ttdeci">void cpe_item_export(const struct cpe_item *item, xmlTextWriterPtr writer, int base_version)</div><div class="ttdoc">Exporting function for CPE item. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:1085</div></div>
<div class="ttc" id="structoscap__list_html"><div class="ttname"><a href="structoscap__list.html">oscap_list</a></div><div class="ttdef"><b>Definition:</b> list.h:54</div></div>
<div class="ttc" id="structcpe__dict__model_html"><div class="ttname"><a href="structcpe__dict__model.html">cpe_dict_model</a></div><div class="ttdoc">Structure representing a CPE dictionary. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.h:126</div></div>
<div class="ttc" id="cpedict__priv_8h_html_a43920e3a31e443ef3aa55d00d0ce3e76"><div class="ttname"><a href="cpedict__priv_8h.html#a43920e3a31e443ef3aa55d00d0ce3e76">cpe_generator_export</a></div><div class="ttdeci">void cpe_generator_export(const struct cpe_generator *generator, xmlTextWriterPtr writer)</div><div class="ttdoc">Exporting function for CPE generator - information of XML document. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:1052</div></div>
<div class="ttc" id="cpedict__priv_8h_html_a2017292b0650545ade586fffb5c2af56"><div class="ttname"><a href="cpedict__priv_8h.html#a2017292b0650545ade586fffb5c2af56">cpe_generator_parse</a></div><div class="ttdeci">struct cpe_generator * cpe_generator_parse(struct cpe_parser_ctx *ctx)</div><div class="ttdoc">Parse generator part of CPE dictionary XML file. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:625</div></div>
<div class="ttc" id="cpedict__priv_8h_html_aae63c5b0db9369aaee79a42fff570b50"><div class="ttname"><a href="cpedict__priv_8h.html#aae63c5b0db9369aaee79a42fff570b50">cpe_dict_model_parse</a></div><div class="ttdeci">struct cpe_dict_model * cpe_dict_model_parse(struct cpe_parser_ctx *ctx)</div><div class="ttdoc">Load new CPE dictionary from XML node. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:536</div></div>
<div class="ttc" id="structcpe__item_html"><div class="ttname"><a href="structcpe__item.html">cpe_item</a></div><div class="ttdoc">Structure representing single CPE dictionary item. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:71</div></div>
<div class="ttc" id="cpedict__priv_8h_html_a4ff63eb3d1fee39bcd31b9790db28643"><div class="ttname"><a href="cpedict__priv_8h.html#a4ff63eb3d1fee39bcd31b9790db28643">cpe_item_parse</a></div><div class="ttdeci">struct cpe_item * cpe_item_parse(struct cpe_parser_ctx *ctx)</div><div class="ttdoc">New dictionary item from XML. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:682</div></div>
<div class="ttc" id="cpedict__priv_8h_html_a8fc5069a1af9e794470aefdddf2911b0"><div class="ttname"><a href="cpedict__priv_8h.html#a8fc5069a1af9e794470aefdddf2911b0">cpe_dict_detect_version_priv</a></div><div class="ttdeci">char * cpe_dict_detect_version_priv(xmlTextReader *reader)</div><div class="ttdoc">Get a version info from xmlTextReader. </div><div class="ttdef"><b>Definition:</b> cpedict.c:214</div></div>
<div class="ttc" id="cpedict__priv_8h_html_aaf937a430bf11be20fa2e5996aa2ed67"><div class="ttname"><a href="cpedict__priv_8h.html#aaf937a430bf11be20fa2e5996aa2ed67">cpe_vendor_parse</a></div><div class="ttdeci">struct cpe_vendor * cpe_vendor_parse(xmlTextReaderPtr reader)</div><div class="ttdoc">Parsing function to parse vendors of CPE dictionary. </div><div class="ttdef"><b>Definition:</b> cpedict_priv.c:880</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>