<!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.6"/> <title>Open SCAP Library: oval_variables.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="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.6 --> <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> </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> <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_dec16e0beb5f79ab6b40e328203e2e32.html">OVAL</a></li><li class="navelem"><a class="el" href="dir_d7d4c5e9309fab4992a34dcb057ec544.html">public</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">oval_variables.h</div> </div> </div><!--header--> <div class="contents"> <a href="oval__variables_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="l00014"></a><span class="lineno"> 14</span> <span class="comment">/*</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * Copyright 2009-2010 Red Hat Inc., Durham, North Carolina.</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * All Rights Reserved.</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * This library is free software; you can redistribute it and/or</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * License as published by the Free Software Foundation; either</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> *</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * This library is distributed in the hope that it will be useful,</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * Lesser General Public License for more details.</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> *</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * License along with this library; if not, write to the Free Software</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> *</span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> * Authors:</span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> * "David Niemoller" <David.Niemoller@g2-inc.com></span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> */</span></div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#ifndef OVAL_VARIABLES_H_</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor"></span><span class="preprocessor">#define OVAL_VARIABLES_H_</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor"></span> </div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "<a class="code" href="oval__types_8h.html">oval_types.h</a>"</span></div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">struct </span><a class="code" href="structoval__variable__model.html">oval_variable_model</a> *<a class="code" href="group__OVALVAR.html#gabaafcd4d6b01dd453467648be6af9ef1">oval_variable_model_new</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">struct </span><a class="code" href="structoval__variable__model.html">oval_variable_model</a> * <a class="code" href="group__OVALVAR.html#gaad9b9c2cf163bd7b588a6087001175be">oval_variable_model_import</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file);</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">struct </span><a class="code" href="structoval__variable__model.html">oval_variable_model</a> *<a class="code" href="group__OVALVAR.html#gae1c4184092de65edfe1424ad1759dd23">oval_variable_model_clone</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *);</div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">void</span> <a class="code" href="group__OVALVAR.html#ga365f33d97173121f2ad7ccfccf336843">oval_variable_model_free</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *);</div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="keywordtype">int</span> <a class="code" href="group__OVALVAR.html#ga137cfe3a0f3727325f51c314eca32a79">oval_variable_model_export</a> (<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *file);</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">void</span> oval_variable_model_set_generator(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *model, <span class="keyword">struct</span> <a class="code" href="structoval__generator.html">oval_generator</a> *generator);</div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keywordtype">void</span> <a class="code" href="group__OVALVAR.html#ga462a5716ee28a72b8f053b188507551b">oval_variable_model_add</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *model, <span class="keywordtype">char</span> *varid, <span class="keyword">const</span> <span class="keywordtype">char</span> *comment, <a class="code" href="group__OVALDEF.html#gaf069fe2fb2a9ae3abe47cab55b89827e">oval_datatype_t</a> datatype, <span class="keywordtype">char</span> *value);</div> <div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="keyword">struct </span><a class="code" href="structoval__generator.html">oval_generator</a> *oval_variable_model_get_generator(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *model);</div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">struct </span><a class="code" href="structoval__string__iterator.html">oval_string_iterator</a> *<a class="code" href="group__OVALVAR.html#ga1dbc23e41fad2352ee9ac24578258bdf">oval_variable_model_get_variable_ids</a> (<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *);</div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="keywordtype">bool</span> <a class="code" href="group__OVALVAR.html#gaf6bc2f8693b5eceb918b355662114aa9">oval_variable_model_has_variable</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *model, <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keywordtype">id</span>);</div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <a class="code" href="group__OVALDEF.html#gaf069fe2fb2a9ae3abe47cab55b89827e">oval_datatype_t</a> <a class="code" href="group__OVALVAR.html#gaf4a30ae55879ddf17627934f4fde1c9b">oval_variable_model_get_datatype</a> (<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *, <span class="keywordtype">char</span> *);</div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__OVALVAR.html#ga4b189de3fb06eb07c756d44e56ecd096">oval_variable_model_get_comment</a> (<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *, <span class="keywordtype">char</span> *);</div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="keyword">struct </span><a class="code" href="structoval__value__iterator.html">oval_value_iterator</a> *<a class="code" href="group__OVALVAR.html#ga8a293eee58a5deed192eaa77a478cc5c">oval_variable_model_get_values</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model.html">oval_variable_model</a> *, <span class="keywordtype">char</span> *);</div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">struct </span><a class="code" href="structoval__variable__model__iterator.html">oval_variable_model_iterator</a>;</div> <div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="keywordtype">bool</span> <a class="code" href="group__OVALVAR.html#ga9fe4f346b1b6f16e1b4113e2a20bd66b">oval_variable_model_iterator_has_more</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model__iterator.html">oval_variable_model_iterator</a> *);</div> <div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="keyword">struct </span><a class="code" href="structoval__variable__model.html">oval_variable_model</a> *<a class="code" href="group__OVALVAR.html#ga8224e468c59fc6117f59b8a70d499ec9">oval_variable_model_iterator_next</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model__iterator.html">oval_variable_model_iterator</a> *);</div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keywordtype">void</span> <a class="code" href="group__OVALVAR.html#gaa9bd9194d883fb242daab900d41a2ef8">oval_variable_model_iterator_free</a>(<span class="keyword">struct</span> <a class="code" href="structoval__variable__model__iterator.html">oval_variable_model_iterator</a> *);</div> <div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="preprocessor">#endif </span><span class="comment">/* OVAL_VARIABLES_H_ */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div> <div class="ttc" id="group__OVALVAR_html_gae1c4184092de65edfe1424ad1759dd23"><div class="ttname"><a href="group__OVALVAR.html#gae1c4184092de65edfe1424ad1759dd23">oval_variable_model::oval_variable_model_clone</a></div><div class="ttdeci">struct oval_variable_model * oval_variable_model_clone(struct oval_variable_model *)</div><div class="ttdoc">Clone an OVAL variable model. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:124</div></div> <div class="ttc" id="group__OVALVAR_html_ga462a5716ee28a72b8f053b188507551b"><div class="ttname"><a href="group__OVALVAR.html#ga462a5716ee28a72b8f053b188507551b">oval_variable_model::oval_variable_model_add</a></div><div class="ttdeci">void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value)</div><div class="ttdoc">Get the values bound to a specified external variable. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:167</div></div> <div class="ttc" id="oval__types_8h_html"><div class="ttname"><a href="oval__types_8h.html">oval_types.h</a></div></div> <div class="ttc" id="group__OVALVAR_html_gabaafcd4d6b01dd453467648be6af9ef1"><div class="ttname"><a href="group__OVALVAR.html#gabaafcd4d6b01dd453467648be6af9ef1">oval_variable_model::oval_variable_model_new</a></div><div class="ttdeci">struct oval_variable_model * oval_variable_model_new(void)</div><div class="ttdoc">Create a new empty OVAL variable model. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:114</div></div> <div class="ttc" id="structoval__value__iterator_html"><div class="ttname"><a href="structoval__value__iterator.html">oval_value_iterator</a></div><div class="ttdef"><b>Definition:</b> oval_definitions.h:423</div></div> <div class="ttc" id="group__OVALVAR_html_gaf4a30ae55879ddf17627934f4fde1c9b"><div class="ttname"><a href="group__OVALVAR.html#gaf4a30ae55879ddf17627934f4fde1c9b">oval_variable_model::oval_variable_model_get_datatype</a></div><div class="ttdeci">oval_datatype_t oval_variable_model_get_datatype(struct oval_variable_model *, char *)</div><div class="ttdoc">Get a specified external variable datatype. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:416</div></div> <div class="ttc" id="structoval__variable__model__iterator_html"><div class="ttname"><a href="structoval__variable__model__iterator.html">oval_variable_model_iterator</a></div></div> <div class="ttc" id="group__OVALVAR_html_ga8a293eee58a5deed192eaa77a478cc5c"><div class="ttname"><a href="group__OVALVAR.html#ga8a293eee58a5deed192eaa77a478cc5c">oval_variable_model::oval_variable_model_get_values</a></div><div class="ttdeci">struct oval_value_iterator * oval_variable_model_get_values(struct oval_variable_model *, char *)</div><div class="ttdoc">Get the values bound to a specified external variable. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:431</div></div> <div class="ttc" id="group__OVALVAR_html_ga4b189de3fb06eb07c756d44e56ecd096"><div class="ttname"><a href="group__OVALVAR.html#ga4b189de3fb06eb07c756d44e56ecd096">oval_variable_model::oval_variable_model_get_comment</a></div><div class="ttdeci">const char * oval_variable_model_get_comment(struct oval_variable_model *, char *)</div><div class="ttdoc">Get a specified external variable comment. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:424</div></div> <div class="ttc" id="group__OVALDEF_html_gaf069fe2fb2a9ae3abe47cab55b89827e"><div class="ttname"><a href="group__OVALDEF.html#gaf069fe2fb2a9ae3abe47cab55b89827e">oval_datatype_t</a></div><div class="ttdeci">oval_datatype_t</div><div class="ttdoc">Datatypes. </div><div class="ttdef"><b>Definition:</b> oval_definitions.h:146</div></div> <div class="ttc" id="structoval__string__iterator_html"><div class="ttname"><a href="structoval__string__iterator.html">oval_string_iterator</a></div></div> <div class="ttc" id="group__OVALVAR_html_ga9fe4f346b1b6f16e1b4113e2a20bd66b"><div class="ttname"><a href="group__OVALVAR.html#ga9fe4f346b1b6f16e1b4113e2a20bd66b">oval_variable_model_iterator::oval_variable_model_iterator_has_more</a></div><div class="ttdeci">bool oval_variable_model_iterator_has_more(struct oval_variable_model_iterator *)</div><div class="ttdoc">Returns true if iterator not exhausted. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:83</div></div> <div class="ttc" id="group__OVALVAR_html_ga365f33d97173121f2ad7ccfccf336843"><div class="ttname"><a href="group__OVALVAR.html#ga365f33d97173121f2ad7ccfccf336843">oval_variable_model::oval_variable_model_free</a></div><div class="ttdeci">void oval_variable_model_free(struct oval_variable_model *)</div><div class="ttdoc">Free memory allocated to a specified oval_variable_model. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:146</div></div> <div class="ttc" id="group__OVALVAR_html_gaf6bc2f8693b5eceb918b355662114aa9"><div class="ttname"><a href="group__OVALVAR.html#gaf6bc2f8693b5eceb918b355662114aa9">oval_variable_model::oval_variable_model_has_variable</a></div><div class="ttdeci">bool oval_variable_model_has_variable(struct oval_variable_model *model, const char *id)</div><div class="ttdoc">Return true if variable with ID is present in variable model, false otherwise. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:397</div></div> <div class="ttc" id="structoval__variable__model_html"><div class="ttname"><a href="structoval__variable__model.html">oval_variable_model</a></div><div class="ttdoc">The OVAL variable model facilitates access to external variable value bindings used to to constrain t...</div><div class="ttdef"><b>Definition:</b> oval_varModel.c:54</div></div> <div class="ttc" id="structoval__generator_html"><div class="ttname"><a href="structoval__generator.html">oval_generator</a></div><div class="ttdef"><b>Definition:</b> oval_generator.c:43</div></div> <div class="ttc" id="group__OVALVAR_html_ga137cfe3a0f3727325f51c314eca32a79"><div class="ttname"><a href="group__OVALVAR.html#ga137cfe3a0f3727325f51c314eca32a79">oval_variable_model::oval_variable_model_export</a></div><div class="ttdeci">int oval_variable_model_export(struct oval_variable_model *, const char *file)</div><div class="ttdoc">Export the specified oval_variable_model into file. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:380</div></div> <div class="ttc" id="group__OVALVAR_html_ga8224e468c59fc6117f59b8a70d499ec9"><div class="ttname"><a href="group__OVALVAR.html#ga8224e468c59fc6117f59b8a70d499ec9">oval_variable_model_iterator::oval_variable_model_iterator_next</a></div><div class="ttdeci">struct oval_variable_model * oval_variable_model_iterator_next(struct oval_variable_model_iterator *)</div><div class="ttdoc">Returns next instance of oval_variable_model. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:88</div></div> <div class="ttc" id="group__OVALVAR_html_ga1dbc23e41fad2352ee9ac24578258bdf"><div class="ttname"><a href="group__OVALVAR.html#ga1dbc23e41fad2352ee9ac24578258bdf">oval_variable_model::oval_variable_model_get_variable_ids</a></div><div class="ttdeci">struct oval_string_iterator * oval_variable_model_get_variable_ids(struct oval_variable_model *)</div><div class="ttdoc">Get all external variables managed by a specified oval_variable_model. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:411</div></div> <div class="ttc" id="group__OVALVAR_html_gaa9bd9194d883fb242daab900d41a2ef8"><div class="ttname"><a href="group__OVALVAR.html#gaa9bd9194d883fb242daab900d41a2ef8">oval_variable_model_iterator::oval_variable_model_iterator_free</a></div><div class="ttdeci">void oval_variable_model_iterator_free(struct oval_variable_model_iterator *)</div><div class="ttdoc">Free iterator. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:93</div></div> <div class="ttc" id="group__OVALVAR_html_gaad9b9c2cf163bd7b588a6087001175be"><div class="ttname"><a href="group__OVALVAR.html#gaad9b9c2cf163bd7b588a6087001175be">oval_variable_model::oval_variable_model_import</a></div><div class="ttdeci">struct oval_variable_model * oval_variable_model_import(const char *file)</div><div class="ttdoc">Import the content from the file into a new oval_variable_model. </div><div class="ttdef"><b>Definition:</b> oval_varModel.c:301</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.6 </small></address> </body> </html>