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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
<!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: /home/pvrabec/project/openscap/openscap-0.5.12/src/CPE/public/cpelang.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.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><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 class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<h1>/home/pvrabec/project/openscap/openscap-0.5.12/src/CPE/public/cpelang.h</h1><a href="cpelang_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00013"></a>00013 <span class="comment">/*</span>
<a name="l00014"></a>00014 <span class="comment"> * Copyright 2009 Red Hat Inc., Durham, North Carolina.</span>
<a name="l00015"></a>00015 <span class="comment"> * All Rights Reserved.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00018"></a>00018 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00019"></a>00019 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00020"></a>00020 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> * This library is distributed in the hope that it will be useful, </span>
<a name="l00023"></a>00023 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00024"></a>00024 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00025"></a>00025 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00026"></a>00026 <span class="comment"> *</span>
<a name="l00027"></a>00027 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00028"></a>00028 <span class="comment"> * License along with this library; if not, write to the Free Software </span>
<a name="l00029"></a>00029 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00030"></a>00030 <span class="comment"> *</span>
<a name="l00031"></a>00031 <span class="comment"> * Authors:</span>
<a name="l00032"></a>00032 <span class="comment"> * Lukas Kuklinek <lkuklinek@redhat.com></span>
<a name="l00033"></a>00033 <span class="comment"> * Maros Barabas <mbarabas@redhat.com></span>
<a name="l00034"></a>00034 <span class="comment"> */</span>
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="preprocessor">#ifndef CPELANG_H_</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define CPELANG_H_</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#include <stdlib.h></span>
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="cpeuri_8h.html" title="Interface to Common Platform Enumeration (CPE) URI.">cpeuri.h</a>"</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="oscap_8h.html" title="General OpenScap functions and types.">oscap.h</a>"</span>
<a name="l00043"></a>00043
<a name="l00047"></a><a class="code" href="group__cpelang.html#gacbb2c8c91d3bb516182bb64c6d8f7d82">00047</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00048"></a><a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82aff8e856890304becc49a2d20226384c9">00048</a> <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82aff8e856890304becc49a2d20226384c9" title="invalid or unknown operation">CPE_LANG_OPER_INVALID</a> = 0x00,
<a name="l00049"></a><a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a5f771b20c70ee0e33634122b911a7aac">00049</a> <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a5f771b20c70ee0e33634122b911a7aac" title="logical AND">CPE_LANG_OPER_AND</a> = 0x01,
<a name="l00050"></a><a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a9dd5489d930d04d6abf1764da5e45a5c">00050</a> <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a9dd5489d930d04d6abf1764da5e45a5c" title="logical OR">CPE_LANG_OPER_OR</a> = 0x02,
<a name="l00051"></a><a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a6780963744226db651cbceb998302a6d">00051</a> <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a6780963744226db651cbceb998302a6d" title="match against specified CPE">CPE_LANG_OPER_MATCH</a> = 0x04,
<a name="l00052"></a>00052
<a name="l00053"></a><a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a40fe8d6616363046111b48e04aaf47fa">00053</a> <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a40fe8d6616363046111b48e04aaf47fa" title="mask to extract the operator w/o possible negation">CPE_LANG_OPER_MASK</a> = 0xFF,
<a name="l00054"></a><a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a77cd2c7e835b07adc60002de1c041b4f">00054</a> <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a77cd2c7e835b07adc60002de1c041b4f" title="negate">CPE_LANG_OPER_NOT</a> = 0x100,
<a name="l00055"></a>00055
<a name="l00056"></a>00056 CPE_LANG_OPER_NAND = <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a5f771b20c70ee0e33634122b911a7aac" title="logical AND">CPE_LANG_OPER_AND</a> | <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a77cd2c7e835b07adc60002de1c041b4f" title="negate">CPE_LANG_OPER_NOT</a>,
<a name="l00057"></a>00057 CPE_LANG_OPER_NOR = <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a9dd5489d930d04d6abf1764da5e45a5c" title="logical OR">CPE_LANG_OPER_OR</a> | <a class="code" href="group__cpelang.html#ggacbb2c8c91d3bb516182bb64c6d8f7d82a77cd2c7e835b07adc60002de1c041b4f" title="negate">CPE_LANG_OPER_NOT</a>,
<a name="l00058"></a>00058 } <a class="code" href="group__cpelang.html#gacbb2c8c91d3bb516182bb64c6d8f7d82" title="CPE language operators.">cpe_lang_oper_t</a>;
<a name="l00059"></a>00059
<a name="l00064"></a>00064 <span class="keyword">struct </span><a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a>;
<a name="l00065"></a>00065
<a name="l00070"></a>00070 <span class="keyword">struct </span><a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a>;
<a name="l00071"></a>00071
<a name="l00076"></a>00076 <span class="keyword">struct </span><a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a>;
<a name="l00077"></a>00077
<a name="l00078"></a>00078
<a name="l00079"></a>00079 <span class="comment">/************************************************************/</span>
<a name="l00090"></a>00090 <span class="keyword">struct </span><a class="code" href="structcpe__platform__iterator.html" title="Iterator over CPE dictionary items.">cpe_platform_iterator</a>;
<a name="l00091"></a>00091
<a name="l00093"></a>00093 <span class="keyword">struct </span><a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *<a class="code" href="group__cpelang.html#gad18be4cfe7be42e8869a3e0e7202532f">cpe_platform_iterator_next</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform__iterator.html" title="Iterator over CPE dictionary items.">cpe_platform_iterator</a> *it);
<a name="l00095"></a>00095 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#gafe87b5c9308ad0cf4f2e55a73b008b91">cpe_platform_iterator_has_more</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform__iterator.html" title="Iterator over CPE dictionary items.">cpe_platform_iterator</a> *it);
<a name="l00097"></a>00097 <span class="keywordtype">void</span> <a class="code" href="group__cpelang.html#gafbcede38295c3ae9cc4c2e568ce3ea26">cpe_platform_iterator_free</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform__iterator.html" title="Iterator over CPE dictionary items.">cpe_platform_iterator</a> *it);
<a name="l00098"></a>00098
<a name="l00104"></a>00104 <span class="keyword">struct </span><a class="code" href="structcpe__testexpr__iterator.html" title="Iterator over CPE language expressions.">cpe_testexpr_iterator</a>;
<a name="l00106"></a>00106 <span class="keyword">struct </span><a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="group__cpelang.html#gadba17c675fef806a7a97bb9976bbfa6c">cpe_testexpr_iterator_next</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__testexpr__iterator.html" title="Iterator over CPE language expressions.">cpe_testexpr_iterator</a> *it);
<a name="l00108"></a>00108 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#ga43c36e2b99f7362081eb2f7a2130cc6f">cpe_testexpr_iterator_has_more</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__testexpr__iterator.html" title="Iterator over CPE language expressions.">cpe_testexpr_iterator</a> *it);
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="group__cpelang.html#ga7578274b57a93aebd0f462c779ec20be">cpe_testexpr_iterator_free</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__testexpr__iterator.html" title="Iterator over CPE language expressions.">cpe_testexpr_iterator</a> *it);
<a name="l00111"></a>00111
<a name="l00112"></a>00112 <span class="comment">/************************************************************/</span>
<a name="l00115"></a>00115 <span class="comment">/************************************************************/</span>
<a name="l00127"></a>00127 <a class="code" href="group__cpelang.html#gacbb2c8c91d3bb516182bb64c6d8f7d82" title="CPE language operators.">cpe_lang_oper_t</a> <a class="code" href="group__cpelang.html#ga4016df3687404f37811b7f94c31e26a4" title="cpe_testexpr functions to get variable members">cpe_testexpr_get_oper</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *item);
<a name="l00128"></a>00128
<a name="l00134"></a>00134 <span class="keyword">struct </span><a class="code" href="structcpe__testexpr__iterator.html" title="Iterator over CPE language expressions.">cpe_testexpr_iterator</a> *<a class="code" href="group__cpelang.html#ga2b7e68ad301e0c45227c7fc9071be2cd" title="Get CPE expression subexpression.">cpe_testexpr_get_meta_expr</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *item);
<a name="l00135"></a>00135
<a name="l00141"></a>00141 <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structcpe__name.html" title="Structure holding Common Platform Enumeration URI data.">cpe_name</a> *<a class="code" href="group__cpelang.html#ga8b24fb99f23926f558662d6808bcb534" title="Get CPE name to match against.">cpe_testexpr_get_meta_cpe</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *item);
<a name="l00142"></a>00142
<a name="l00148"></a>00148 <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="group__cpelang.html#gab229fbb8fa2c2c0de0714ce2c9c9bc53" title="Function to get next expr from array.">cpe_testexpr_get_next</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="structcpe__testexpr.html#adaae01bbfd90628408feba7c3a8c40d0" title="array of subexpressions for operators">expr</a>);
<a name="l00149"></a>00149
<a name="l00154"></a>00154 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__cpelang.html#ga8c3446147158e606b9d02ccd33020d8a" title="cpe_lang_model function to get namespace prefix">cpe_lang_model_get_ns_prefix</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *item);
<a name="l00155"></a>00155
<a name="l00160"></a>00160 <span class="keyword">struct </span><a class="code" href="structcpe__platform__iterator.html" title="Iterator over CPE dictionary items.">cpe_platform_iterator</a> *<a class="code" href="group__cpelang.html#gaa5e9009c4b979291e110552c8e8a31b1" title="cpe_lang_model function to get CPE platforms">cpe_lang_model_get_platforms</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *item);
<a name="l00161"></a>00161
<a name="l00166"></a>00166 <span class="keyword">struct </span><a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *<a class="code" href="group__cpelang.html#gaccd09354281b8303bbf85eeacf218c6a" title="cpe_lang_model function to get CPE platforms">cpe_lang_model_get_item</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *item, <span class="keyword">const</span> <span class="keywordtype">char</span> *key);
<a name="l00167"></a>00167
<a name="l00172"></a>00172 <span class="keyword">struct </span><a class="code" href="structxml__metadata__iterator.html" title="Iterator over XML metadata.">xml_metadata_iterator</a> *<a class="code" href="group__cpelang.html#ga90b91aecc0f9f8255a32b1fe00de1234" title="cpe_lang_model function to get xmlns attribute">cpe_lang_model_get_xmlns</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *item);
<a name="l00173"></a>00173
<a name="l00178"></a>00178 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__cpelang.html#ga8b9494431d8599fe802361433231436d" title="cpe_platform functions to get id">cpe_platform_get_id</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *item);
<a name="l00183"></a>00183 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__cpelang.html#ga11161328967d030f8d71608b27415676" title="cpe_platform functions to get remark">cpe_platform_get_remark</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *item);
<a name="l00188"></a>00188 <span class="keyword">struct </span><a class="code" href="structoscap__title__iterator.html" title="Iterator over an array of oscap_title elements.">oscap_title_iterator</a> *<a class="code" href="group__cpelang.html#gab6a97be125225b1d698e7e6f9c0001f1" title="cpe_platform functions to get titles">cpe_platform_get_titles</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *item);
<a name="l00193"></a>00193 <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="group__cpelang.html#ga66c92792dad71233eaca532a143aefac" title="cpe_platform functions to get test expression">cpe_platform_get_expr</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *item);
<a name="l00194"></a>00194
<a name="l00199"></a>00199 <span class="comment">/*struct xml_metadata_iterator * cpe_lang_model_get_xmlns(const struct cpe_lang_model * model);*/</span>
<a name="l00200"></a>00200
<a name="l00201"></a>00201 <span class="comment">/************************************************************/</span>
<a name="l00204"></a>00204 <span class="comment">/************************************************************/</span>
<a name="l00216"></a>00216 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#ga563eeb9702f9c93df5a25998e9a39600" title="Add platform to CPE lang model.">cpe_lang_model_add_platform</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *lang, <span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *platform);
<a name="l00221"></a>00221 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#gab31bfb6288d13667166acab4947db1ff" title="Add xml metadata to CPE lang model.">cpe_lang_model_add_xml</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *lang, <span class="keyword">struct</span> <a class="code" href="structxml__metadata.html" title="XML Metadata.">xml_metadata</a> *xml);
<a name="l00226"></a>00226 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#ga64da424f8bd783da762bee8b766e247d" title="Add title to platform.">cpe_platform_add_title</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *platform, <span class="keyword">struct</span> <a class="code" href="structoscap__title.html" title="Title of an OpenScap element.">oscap_title</a> *title);
<a name="l00227"></a>00227
<a name="l00232"></a>00232 <span class="comment">/*bool cpe_lang_model_add_xmlns(struct cpe_lang_model * model, struct xml_metadata * xml);*/</span>
<a name="l00233"></a>00233
<a name="l00240"></a>00240 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#ga0f9cb4770990700bb2828faf397addb3" title="Add XML namespace to CPE lang model.">cpe_testexpr_add_subexpression</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="structcpe__testexpr.html#adaae01bbfd90628408feba7c3a8c40d0" title="array of subexpressions for operators">expr</a>, <span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *sub);
<a name="l00241"></a>00241
<a name="l00246"></a>00246 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#ga24d19a5cfb7d414053f8a5e99a4e6b5a" title="Set ns_prefix to CPE lang model.">cpe_lang_model_set_ns_prefix</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *model, <span class="keyword">const</span> <span class="keywordtype">char</span> *new_prefix);
<a name="l00251"></a>00251 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#gad59b55938ebbe388218016cb67fbac50" title="Set ID of CPE platform.">cpe_platform_set_id</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *platform, <span class="keyword">const</span> <span class="keywordtype">char</span> *new_id);
<a name="l00256"></a>00256 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#ga301685568659041bd2a47c958800ddbc" title="Set remark of CPE platform.">cpe_platform_set_remark</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *platform, <span class="keyword">const</span> <span class="keywordtype">char</span> *new_remark);
<a name="l00263"></a>00263 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#gaa9bc76ff30e7f9faa4def792404c1a62" title="Set evaluation expression for this CPE platform.">cpe_platform_set_expr</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *platform, <span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="structcpe__testexpr.html#adaae01bbfd90628408feba7c3a8c40d0" title="array of subexpressions for operators">expr</a>);
<a name="l00270"></a>00270 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#gaf5cbbabfe39b2bbd5eebd180d0b3eb68" title="Set CPE operation.">cpe_testexpr_set_oper</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="structcpe__testexpr.html#adaae01bbfd90628408feba7c3a8c40d0" title="array of subexpressions for operators">expr</a>, <a class="code" href="group__cpelang.html#gacbb2c8c91d3bb516182bb64c6d8f7d82" title="CPE language operators.">cpe_lang_oper_t</a> <a class="code" href="structcpe__testexpr.html#a818142dd3fd60970b290efb12082705b" title="operator">oper</a>);
<a name="l00271"></a>00271
<a name="l00279"></a>00279 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#gaa95723258aff68c121c25c825852d5c3" title="Set CPE name.">cpe_testexpr_set_name</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="structcpe__testexpr.html#adaae01bbfd90628408feba7c3a8c40d0" title="array of subexpressions for operators">expr</a>, <span class="keyword">struct</span> <a class="code" href="structcpe__name.html" title="Structure holding Common Platform Enumeration URI data.">cpe_name</a> *name);
<a name="l00280"></a>00280
<a name="l00281"></a>00281 <span class="comment">/************************************************************/</span>
<a name="l00284"></a>00284
<a name="l00285"></a>00285 <span class="keywordtype">void</span> <a class="code" href="group__cpelang.html#gaf7011b78669b32e52036b3923878e831">cpe_platform_iterator_remove</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform__iterator.html" title="Iterator over CPE dictionary items.">cpe_platform_iterator</a> *it, <span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *parent);
<a name="l00286"></a>00286
<a name="l00291"></a>00291 <span class="keyword">struct </span><a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *<a class="code" href="group__cpelang.html#gab38c9e5fb94f6cbb806cb02d4d24bf51" title="Constructor of CPE Language model.">cpe_lang_model_new</a>(<span class="keywordtype">void</span>);
<a name="l00292"></a>00292
<a name="l00297"></a>00297 <span class="keyword">struct </span><a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *<a class="code" href="group__cpelang.html#ga6de4dc9c0d8171bcb666da7bbae44984" title="Constructor of CPE test expression.">cpe_testexpr_new</a>(<span class="keywordtype">void</span>);
<a name="l00298"></a>00298
<a name="l00303"></a>00303 <span class="keyword">struct </span><a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *<a class="code" href="group__cpelang.html#gad83641ba4fb292a923b7ff5753b4070d" title="Constructor of CPE Platform.">cpe_platform_new</a>(<span class="keywordtype">void</span>);
<a name="l00304"></a>00304
<a name="l00305"></a>00305
<a name="l00306"></a>00306
<a name="l00311"></a>00311 <span class="keywordtype">void</span> <a class="code" href="group__cpelang.html#gac6135bb7df1b4c083e97dcb67f7bfccd" title="Free function of CPE test expression.">cpe_testexpr_free</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__testexpr.html" title="CPE language boolean expression.">cpe_testexpr</a> *expr);
<a name="l00312"></a>00312
<a name="l00317"></a>00317 <span class="keywordtype">void</span> <a class="code" href="group__cpelang.html#ga6a4e8a7210b76078bb6ac8bc9f3be0a7" title="Free function of CPE test expression.">cpe_lang_model_free</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *platformspec);
<a name="l00318"></a>00318
<a name="l00323"></a>00323 <span class="keywordtype">void</span> <a class="code" href="group__cpelang.html#ga1bcb12e96db31e6b57be749fd5ba3b3e" title="Free function of CPE Platform.">cpe_platform_free</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *platform);
<a name="l00324"></a>00324
<a name="l00325"></a>00325 <span class="comment">/************************************************************/</span>
<a name="l00336"></a>00336 <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__cpelang.html#gabf469c1ab5798bb321e6c89ffb4b6e9d" title="Get supported version of CPE language XML.">cpe_lang_model_supported</a>(<span class="keywordtype">void</span>);
<a name="l00337"></a>00337
<a name="l00345"></a>00345 <span class="keywordtype">bool</span> <a class="code" href="group__cpelang.html#ga087bb45387925a51ae6be052320327c2" title="Function to match cpe in platform.">cpe_platform_match_cpe</a>(<span class="keyword">struct</span> <a class="code" href="structcpe__name.html" title="Structure holding Common Platform Enumeration URI data.">cpe_name</a> **cpe, <span class="keywordtype">size_t</span> n, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__platform.html" title="Single platform representation in CPE language.">cpe_platform</a> *platform);
<a name="l00346"></a>00346
<a name="l00347"></a>00347 <span class="comment">/************************************************************/</span>
<a name="l00354"></a>00354 <span class="keyword">struct </span><a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *<a class="code" href="group__cpelang.html#ga421b4fec7e3e664a1b7a783d57ad63a2" title="Load CPE language model from a XML document.">cpe_lang_model_import</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *file);
<a name="l00355"></a>00355
<a name="l00362"></a>00362 <span class="keywordtype">void</span> <a class="code" href="group__cpelang.html#ga37e588d571ed4de824472cfe28284954" title="Write the lang_model to a file.">cpe_lang_model_export</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structcpe__lang__model.html" title="CPE platform specification.">cpe_lang_model</a> *spec, <span class="keyword">const</span> <span class="keywordtype">char</span> *file);
<a name="l00363"></a>00363
<a name="l00367"></a>00367
<a name="l00368"></a>00368 <span class="preprocessor">#endif </span><span class="comment">/* _CPELANG_H_ */</span>
</pre></div></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>
|