| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>idmef-criteria: libprelude Reference Manual</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> |
| 7 |
<link rel="home" href="index.html" title="libprelude Reference Manual"> |
| 8 |
<link rel="up" href="ch01.html" title="[Insert title here]"> |
| 9 |
<link rel="prev" href="libprelude-prelude-option-wide.html" title="prelude-option-wide"> |
| 10 |
<link rel="next" href="libprelude-idmef-data.html" title="idmef-data"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 |
<td width="100%" align="left" class="shortcuts"> |
| 17 |
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 |
<a href="#libprelude-idmef-criteria.description" class="shortcut">Description</a></span> |
| 19 |
</td> |
| 20 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 21 |
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 22 |
<td><a accesskey="p" href="libprelude-prelude-option-wide.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 23 |
<td><a accesskey="n" href="libprelude-idmef-data.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 24 |
</tr></table> |
| 25 |
<div class="refentry"> |
| 26 |
<a name="libprelude-idmef-criteria"></a><div class="titlepage"></div> |
| 27 |
<div class="refnamediv"><table width="100%"><tr> |
| 28 |
<td valign="top"> |
| 29 |
<h2><span class="refentrytitle"><a name="libprelude-idmef-criteria.top_of_page"></a>idmef-criteria</span></h2> |
| 30 |
<p>idmef-criteria</p> |
| 31 |
</td> |
| 32 |
<td class="gallery_image" valign="top" align="right"></td> |
| 33 |
</tr></table></div> |
| 34 |
<div class="refsect1"> |
| 35 |
<a name="libprelude-idmef-criteria.functions"></a><h2>Functions</h2> |
| 36 |
<div class="informaltable"><table width="100%" border="0"> |
| 37 |
<colgroup> |
| 38 |
<col width="150px" class="functions_return"> |
| 39 |
<col class="functions_name"> |
| 40 |
</colgroup> |
| 41 |
<tbody> |
| 42 |
<tr> |
| 43 |
<td class="function_type"> |
| 44 |
<span class="returnvalue">int</span> |
| 45 |
</td> |
| 46 |
<td class="function_name"> |
| 47 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criterion-new" title="idmef_criterion_new ()">idmef_criterion_new</a> <span class="c_punctuation">()</span> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td class="function_type"> |
| 52 |
<span class="returnvalue">int</span> |
| 53 |
</td> |
| 54 |
<td class="function_name"> |
| 55 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-new" title="idmef_criteria_new ()">idmef_criteria_new</a> <span class="c_punctuation">()</span> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
<tr> |
| 59 |
<td class="function_type"> |
| 60 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="returnvalue">idmef_criteria_t</span></a> * |
| 61 |
</td> |
| 62 |
<td class="function_name"> |
| 63 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-ref" title="idmef_criteria_ref ()">idmef_criteria_ref</a> <span class="c_punctuation">()</span> |
| 64 |
</td> |
| 65 |
</tr> |
| 66 |
<tr> |
| 67 |
<td class="function_type"> |
| 68 |
<span class="returnvalue">void</span> |
| 69 |
</td> |
| 70 |
<td class="function_name"> |
| 71 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-destroy" title="idmef_criteria_destroy ()">idmef_criteria_destroy</a> <span class="c_punctuation">()</span> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
<tr> |
| 75 |
<td class="function_type"> |
| 76 |
<span class="returnvalue">int</span> |
| 77 |
</td> |
| 78 |
<td class="function_name"> |
| 79 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-clone" title="idmef_criteria_clone ()">idmef_criteria_clone</a> <span class="c_punctuation">()</span> |
| 80 |
</td> |
| 81 |
</tr> |
| 82 |
<tr> |
| 83 |
<td class="function_type"> |
| 84 |
<span class="returnvalue">int</span> |
| 85 |
</td> |
| 86 |
<td class="function_name"> |
| 87 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-print" title="idmef_criteria_print ()">idmef_criteria_print</a> <span class="c_punctuation">()</span> |
| 88 |
</td> |
| 89 |
</tr> |
| 90 |
<tr> |
| 91 |
<td class="function_type"> |
| 92 |
<span class="returnvalue">int</span> |
| 93 |
</td> |
| 94 |
<td class="function_name"> |
| 95 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-to-string" title="idmef_criteria_to_string ()">idmef_criteria_to_string</a> <span class="c_punctuation">()</span> |
| 96 |
</td> |
| 97 |
</tr> |
| 98 |
<tr> |
| 99 |
<td class="function_type"> |
| 100 |
<a class="link" href="libprelude-prelude-inttypes.html#prelude-bool-t" title="enum prelude_bool_t"><span class="returnvalue">prelude_bool_t</span></a> |
| 101 |
</td> |
| 102 |
<td class="function_name"> |
| 103 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-is-criterion" title="idmef_criteria_is_criterion ()">idmef_criteria_is_criterion</a> <span class="c_punctuation">()</span> |
| 104 |
</td> |
| 105 |
</tr> |
| 106 |
<tr> |
| 107 |
<td class="function_type"> |
| 108 |
<span class="returnvalue">int</span> |
| 109 |
</td> |
| 110 |
<td class="function_name"> |
| 111 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-or-criteria" title="idmef_criteria_or_criteria ()">idmef_criteria_or_criteria</a> <span class="c_punctuation">()</span> |
| 112 |
</td> |
| 113 |
</tr> |
| 114 |
<tr> |
| 115 |
<td class="function_type"> |
| 116 |
<span class="returnvalue">int</span> |
| 117 |
</td> |
| 118 |
<td class="function_name"> |
| 119 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-and-criteria" title="idmef_criteria_and_criteria ()">idmef_criteria_and_criteria</a> <span class="c_punctuation">()</span> |
| 120 |
</td> |
| 121 |
</tr> |
| 122 |
<tr> |
| 123 |
<td class="function_type"> |
| 124 |
<span class="returnvalue">int</span> |
| 125 |
</td> |
| 126 |
<td class="function_name"> |
| 127 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-match" title="idmef_criteria_match ()">idmef_criteria_match</a> <span class="c_punctuation">()</span> |
| 128 |
</td> |
| 129 |
</tr> |
| 130 |
<tr> |
| 131 |
<td class="function_type"> |
| 132 |
<span class="returnvalue">int</span> |
| 133 |
</td> |
| 134 |
<td class="function_name"> |
| 135 |
<a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-new-from-string" title="idmef_criteria_new_from_string ()">idmef_criteria_new_from_string</a> <span class="c_punctuation">()</span> |
| 136 |
</td> |
| 137 |
</tr> |
| 138 |
</tbody> |
| 139 |
</table></div> |
| 140 |
</div> |
| 141 |
<div class="refsect1"> |
| 142 |
<a name="libprelude-idmef-criteria.other"></a><h2>Types and Values</h2> |
| 143 |
<div class="informaltable"><table width="100%" border="0"> |
| 144 |
<colgroup> |
| 145 |
<col width="150px" class="name"> |
| 146 |
<col class="description"> |
| 147 |
</colgroup> |
| 148 |
<tbody> |
| 149 |
<tr> |
| 150 |
<td class="datatype_keyword">enum</td> |
| 151 |
<td class="function_name"><a class="link" href="libprelude-idmef-criteria.html#idmef-criterion-operator-t" title="enum idmef_criterion_operator_t">idmef_criterion_operator_t</a></td> |
| 152 |
</tr> |
| 153 |
<tr> |
| 154 |
<td class="typedef_keyword">typedef</td> |
| 155 |
<td class="function_name"><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t">idmef_criteria_t</a></td> |
| 156 |
</tr> |
| 157 |
</tbody> |
| 158 |
</table></div> |
| 159 |
</div> |
| 160 |
<div class="refsect1"> |
| 161 |
<a name="libprelude-idmef-criteria.description"></a><h2>Description</h2> |
| 162 |
</div> |
| 163 |
<div class="refsect1"> |
| 164 |
<a name="libprelude-idmef-criteria.functions_details"></a><h2>Functions</h2> |
| 165 |
<div class="refsect2"> |
| 166 |
<a name="idmef-criterion-new"></a><h3>idmef_criterion_new ()</h3> |
| 167 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 168 |
idmef_criterion_new (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> **criterion</code></em>, |
| 169 |
<em class="parameter"><code><a class="link" href="libprelude-idmef-path.html#idmef-path-t" title="idmef_path_t"><span class="type">idmef_path_t</span></a> *path</code></em>, |
| 170 |
<em class="parameter"><code><a class="link" href="libprelude-idmef-criterion-value.html#idmef-criterion-value-t" title="idmef_criterion_value_t"><span class="type">idmef_criterion_value_t</span></a> *value</code></em>, |
| 171 |
<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criterion-operator-t" title="enum idmef_criterion_operator_t"><span class="type">idmef_criterion_operator_t</span></a> op</code></em>);</pre> |
| 172 |
<p>Creates a new <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object and store it in <em class="parameter"><code>criterion</code></em> |
| 173 |
. |
| 174 |
Matching this criterion will result in comparing the object value |
| 175 |
pointed by <em class="parameter"><code>path</code></em> |
| 176 |
against the provided <em class="parameter"><code>value</code></em> |
| 177 |
, using <em class="parameter"><code>op</code></em> |
| 178 |
.</p> |
| 179 |
<div class="refsect3"> |
| 180 |
<a name="idmef-criterion-new.parameters"></a><h4>Parameters</h4> |
| 181 |
<div class="informaltable"><table width="100%" border="0"> |
| 182 |
<colgroup> |
| 183 |
<col width="150px" class="parameters_name"> |
| 184 |
<col class="parameters_description"> |
| 185 |
<col width="200px" class="parameters_annotations"> |
| 186 |
</colgroup> |
| 187 |
<tbody> |
| 188 |
<tr> |
| 189 |
<td class="parameter_name"><p>criterion</p></td> |
| 190 |
<td class="parameter_description"><p>Address where to store the created <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object.</p></td> |
| 191 |
<td class="parameter_annotations"> </td> |
| 192 |
</tr> |
| 193 |
<tr> |
| 194 |
<td class="parameter_name"><p>path</p></td> |
| 195 |
<td class="parameter_description"><p>Pointer to an <a class="link" href="libprelude-idmef-path.html#idmef-path-t" title="idmef_path_t"><span class="type">idmef_path_t</span></a> object.</p></td> |
| 196 |
<td class="parameter_annotations"> </td> |
| 197 |
</tr> |
| 198 |
<tr> |
| 199 |
<td class="parameter_name"><p>value</p></td> |
| 200 |
<td class="parameter_description"><p>Pointer to an <a class="link" href="libprelude-idmef-criterion-value.html#idmef-criterion-value-t" title="idmef_criterion_value_t"><span class="type">idmef_criterion_value_t</span></a> object.</p></td> |
| 201 |
<td class="parameter_annotations"> </td> |
| 202 |
</tr> |
| 203 |
<tr> |
| 204 |
<td class="parameter_name"><p>op</p></td> |
| 205 |
<td class="parameter_description"><p><a class="link" href="libprelude-idmef-criteria.html#idmef-criterion-operator-t" title="enum idmef_criterion_operator_t"><span class="type">idmef_criterion_operator_t</span></a> to use for matching this criterion.</p></td> |
| 206 |
<td class="parameter_annotations"> </td> |
| 207 |
</tr> |
| 208 |
</tbody> |
| 209 |
</table></div> |
| 210 |
</div> |
| 211 |
<div class="refsect3"> |
| 212 |
<a name="idmef-criterion-new.returns"></a><h4>Returns</h4> |
| 213 |
<p> 0 on success, a negative value if an error occured.</p> |
| 214 |
</div> |
| 215 |
</div> |
| 216 |
<hr> |
| 217 |
<div class="refsect2"> |
| 218 |
<a name="idmef-criteria-new"></a><h3>idmef_criteria_new ()</h3> |
| 219 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 220 |
idmef_criteria_new (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> **criteria</code></em>);</pre> |
| 221 |
<p>Creates a new <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object and store it into <em class="parameter"><code>criteria</code></em> |
| 222 |
.</p> |
| 223 |
<div class="refsect3"> |
| 224 |
<a name="idmef-criteria-new.parameters"></a><h4>Parameters</h4> |
| 225 |
<div class="informaltable"><table width="100%" border="0"> |
| 226 |
<colgroup> |
| 227 |
<col width="150px" class="parameters_name"> |
| 228 |
<col class="parameters_description"> |
| 229 |
<col width="200px" class="parameters_annotations"> |
| 230 |
</colgroup> |
| 231 |
<tbody><tr> |
| 232 |
<td class="parameter_name"><p>criteria</p></td> |
| 233 |
<td class="parameter_description"><p>Address where to store the created <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object.</p></td> |
| 234 |
<td class="parameter_annotations"> </td> |
| 235 |
</tr></tbody> |
| 236 |
</table></div> |
| 237 |
</div> |
| 238 |
<div class="refsect3"> |
| 239 |
<a name="idmef-criteria-new.returns"></a><h4>Returns</h4> |
| 240 |
<p> 0 on success, a negative value if an error occured.</p> |
| 241 |
</div> |
| 242 |
</div> |
| 243 |
<hr> |
| 244 |
<div class="refsect2"> |
| 245 |
<a name="idmef-criteria-ref"></a><h3>idmef_criteria_ref ()</h3> |
| 246 |
<pre class="programlisting"><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="returnvalue">idmef_criteria_t</span></a> * |
| 247 |
idmef_criteria_ref (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>);</pre> |
| 248 |
<p>Increases <em class="parameter"><code>criteria</code></em> |
| 249 |
reference count.</p> |
| 250 |
<p>idmef_criteria_destroy() will decrease the refcount until it reaches |
| 251 |
0, at which point <em class="parameter"><code>criteria</code></em> |
| 252 |
will be destroyed.</p> |
| 253 |
<div class="refsect3"> |
| 254 |
<a name="idmef-criteria-ref.parameters"></a><h4>Parameters</h4> |
| 255 |
<div class="informaltable"><table width="100%" border="0"> |
| 256 |
<colgroup> |
| 257 |
<col width="150px" class="parameters_name"> |
| 258 |
<col class="parameters_description"> |
| 259 |
<col width="200px" class="parameters_annotations"> |
| 260 |
</colgroup> |
| 261 |
<tbody><tr> |
| 262 |
<td class="parameter_name"><p>criteria</p></td> |
| 263 |
<td class="parameter_description"><p>Pointer to a <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object to reference.</p></td> |
| 264 |
<td class="parameter_annotations"> </td> |
| 265 |
</tr></tbody> |
| 266 |
</table></div> |
| 267 |
</div> |
| 268 |
<div class="refsect3"> |
| 269 |
<a name="idmef-criteria-ref.returns"></a><h4>Returns</h4> |
| 270 |
<p> <em class="parameter"><code>criteria</code></em> |
| 271 |
.</p> |
| 272 |
</div> |
| 273 |
</div> |
| 274 |
<hr> |
| 275 |
<div class="refsect2"> |
| 276 |
<a name="idmef-criteria-destroy"></a><h3>idmef_criteria_destroy ()</h3> |
| 277 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 278 |
idmef_criteria_destroy (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>);</pre> |
| 279 |
<p>Destroys <em class="parameter"><code>criteria</code></em> |
| 280 |
and its content.</p> |
| 281 |
<div class="refsect3"> |
| 282 |
<a name="idmef-criteria-destroy.parameters"></a><h4>Parameters</h4> |
| 283 |
<div class="informaltable"><table width="100%" border="0"> |
| 284 |
<colgroup> |
| 285 |
<col width="150px" class="parameters_name"> |
| 286 |
<col class="parameters_description"> |
| 287 |
<col width="200px" class="parameters_annotations"> |
| 288 |
</colgroup> |
| 289 |
<tbody><tr> |
| 290 |
<td class="parameter_name"><p>criteria</p></td> |
| 291 |
<td class="parameter_description"><p>Pointer to a <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object.</p></td> |
| 292 |
<td class="parameter_annotations"> </td> |
| 293 |
</tr></tbody> |
| 294 |
</table></div> |
| 295 |
</div> |
| 296 |
</div> |
| 297 |
<hr> |
| 298 |
<div class="refsect2"> |
| 299 |
<a name="idmef-criteria-clone"></a><h3>idmef_criteria_clone ()</h3> |
| 300 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 301 |
idmef_criteria_clone (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *src</code></em>, |
| 302 |
<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> **dst</code></em>);</pre> |
| 303 |
<p>Clones <em class="parameter"><code>src</code></em> |
| 304 |
and stores the cloned criteria within <em class="parameter"><code>dst</code></em> |
| 305 |
.</p> |
| 306 |
<div class="refsect3"> |
| 307 |
<a name="idmef-criteria-clone.parameters"></a><h4>Parameters</h4> |
| 308 |
<div class="informaltable"><table width="100%" border="0"> |
| 309 |
<colgroup> |
| 310 |
<col width="150px" class="parameters_name"> |
| 311 |
<col class="parameters_description"> |
| 312 |
<col width="200px" class="parameters_annotations"> |
| 313 |
</colgroup> |
| 314 |
<tbody> |
| 315 |
<tr> |
| 316 |
<td class="parameter_name"><p>src</p></td> |
| 317 |
<td class="parameter_description"><p>Pointer to a <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object to clone.</p></td> |
| 318 |
<td class="parameter_annotations"> </td> |
| 319 |
</tr> |
| 320 |
<tr> |
| 321 |
<td class="parameter_name"><p>dst</p></td> |
| 322 |
<td class="parameter_description"><p>Address where to store the cloned <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object.</p></td> |
| 323 |
<td class="parameter_annotations"> </td> |
| 324 |
</tr> |
| 325 |
</tbody> |
| 326 |
</table></div> |
| 327 |
</div> |
| 328 |
<div class="refsect3"> |
| 329 |
<a name="idmef-criteria-clone.returns"></a><h4>Returns</h4> |
| 330 |
<p> 0 on success, a negative value if an error occured.</p> |
| 331 |
</div> |
| 332 |
</div> |
| 333 |
<hr> |
| 334 |
<div class="refsect2"> |
| 335 |
<a name="idmef-criteria-print"></a><h3>idmef_criteria_print ()</h3> |
| 336 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 337 |
idmef_criteria_print (<em class="parameter"><code>const <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>, |
| 338 |
<em class="parameter"><code><a class="link" href="libprelude-prelude-io.html#prelude-io-t" title="prelude_io_t"><span class="type">prelude_io_t</span></a> *fd</code></em>);</pre> |
| 339 |
</div> |
| 340 |
<hr> |
| 341 |
<div class="refsect2"> |
| 342 |
<a name="idmef-criteria-to-string"></a><h3>idmef_criteria_to_string ()</h3> |
| 343 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 344 |
idmef_criteria_to_string (<em class="parameter"><code>const <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>, |
| 345 |
<em class="parameter"><code><a class="link" href="libprelude-prelude-string.html#prelude-string-t" title="prelude_string_t"><span class="type">prelude_string_t</span></a> *out</code></em>);</pre> |
| 346 |
</div> |
| 347 |
<hr> |
| 348 |
<div class="refsect2"> |
| 349 |
<a name="idmef-criteria-is-criterion"></a><h3>idmef_criteria_is_criterion ()</h3> |
| 350 |
<pre class="programlisting"><a class="link" href="libprelude-prelude-inttypes.html#prelude-bool-t" title="enum prelude_bool_t"><span class="returnvalue">prelude_bool_t</span></a> |
| 351 |
idmef_criteria_is_criterion (<em class="parameter"><code>const <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>);</pre> |
| 352 |
</div> |
| 353 |
<hr> |
| 354 |
<div class="refsect2"> |
| 355 |
<a name="idmef-criteria-or-criteria"></a><h3>idmef_criteria_or_criteria ()</h3> |
| 356 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 357 |
idmef_criteria_or_criteria (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>, |
| 358 |
<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria2</code></em>);</pre> |
| 359 |
</div> |
| 360 |
<hr> |
| 361 |
<div class="refsect2"> |
| 362 |
<a name="idmef-criteria-and-criteria"></a><h3>idmef_criteria_and_criteria ()</h3> |
| 363 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 364 |
idmef_criteria_and_criteria (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>, |
| 365 |
<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria2</code></em>);</pre> |
| 366 |
</div> |
| 367 |
<hr> |
| 368 |
<div class="refsect2"> |
| 369 |
<a name="idmef-criteria-match"></a><h3>idmef_criteria_match ()</h3> |
| 370 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 371 |
idmef_criteria_match (<em class="parameter"><code>const <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> *criteria</code></em>, |
| 372 |
<em class="parameter"><code><span class="type">void</span> *object</code></em>);</pre> |
| 373 |
<p>Matches <em class="parameter"><code>object</code></em> |
| 374 |
against the provided criteria.</p> |
| 375 |
<div class="refsect3"> |
| 376 |
<a name="idmef-criteria-match.parameters"></a><h4>Parameters</h4> |
| 377 |
<div class="informaltable"><table width="100%" border="0"> |
| 378 |
<colgroup> |
| 379 |
<col width="150px" class="parameters_name"> |
| 380 |
<col class="parameters_description"> |
| 381 |
<col width="200px" class="parameters_annotations"> |
| 382 |
</colgroup> |
| 383 |
<tbody> |
| 384 |
<tr> |
| 385 |
<td class="parameter_name"><p>criteria</p></td> |
| 386 |
<td class="parameter_description"><p>Pointer to a <a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> object.</p></td> |
| 387 |
<td class="parameter_annotations"> </td> |
| 388 |
</tr> |
| 389 |
<tr> |
| 390 |
<td class="parameter_name"><p>object</p></td> |
| 391 |
<td class="parameter_description"><p>Pointer to a <span class="type">idmef_object_t</span> object.</p></td> |
| 392 |
<td class="parameter_annotations"> </td> |
| 393 |
</tr> |
| 394 |
</tbody> |
| 395 |
</table></div> |
| 396 |
</div> |
| 397 |
<div class="refsect3"> |
| 398 |
<a name="idmef-criteria-match.returns"></a><h4>Returns</h4> |
| 399 |
<p> 1 if criteria match, 0 if it did not, a negative value if an error occured.</p> |
| 400 |
</div> |
| 401 |
</div> |
| 402 |
<hr> |
| 403 |
<div class="refsect2"> |
| 404 |
<a name="idmef-criteria-new-from-string"></a><h3>idmef_criteria_new_from_string ()</h3> |
| 405 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 406 |
idmef_criteria_new_from_string (<em class="parameter"><code><a class="link" href="libprelude-idmef-criteria.html#idmef-criteria-t" title="idmef_criteria_t"><span class="type">idmef_criteria_t</span></a> **criteria</code></em>, |
| 407 |
<em class="parameter"><code>const <span class="type">char</span> *str</code></em>);</pre> |
| 408 |
</div> |
| 409 |
</div> |
| 410 |
<div class="refsect1"> |
| 411 |
<a name="libprelude-idmef-criteria.other_details"></a><h2>Types and Values</h2> |
| 412 |
<div class="refsect2"> |
| 413 |
<a name="idmef-criterion-operator-t"></a><h3>enum idmef_criterion_operator_t</h3> |
| 414 |
<div class="refsect3"> |
| 415 |
<a name="idmef-criterion-operator-t.members"></a><h4>Members</h4> |
| 416 |
<div class="informaltable"><table width="100%" border="0"> |
| 417 |
<colgroup> |
| 418 |
<col width="300px" class="enum_members_name"> |
| 419 |
<col class="enum_members_description"> |
| 420 |
<col width="200px" class="enum_members_annotations"> |
| 421 |
</colgroup> |
| 422 |
<tbody> |
| 423 |
<tr> |
| 424 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT</p></td> |
| 425 |
<td> </td> |
| 426 |
<td> </td> |
| 427 |
</tr> |
| 428 |
<tr> |
| 429 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOCASE:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOCASE</p></td> |
| 430 |
<td> </td> |
| 431 |
<td> </td> |
| 432 |
</tr> |
| 433 |
<tr> |
| 434 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-EQUAL:CAPS"></a>IDMEF_CRITERION_OPERATOR_EQUAL</p></td> |
| 435 |
<td> </td> |
| 436 |
<td> </td> |
| 437 |
</tr> |
| 438 |
<tr> |
| 439 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-EQUAL-NOCASE:CAPS"></a>IDMEF_CRITERION_OPERATOR_EQUAL_NOCASE</p></td> |
| 440 |
<td> </td> |
| 441 |
<td> </td> |
| 442 |
</tr> |
| 443 |
<tr> |
| 444 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT-EQUAL:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT_EQUAL</p></td> |
| 445 |
<td> </td> |
| 446 |
<td> </td> |
| 447 |
</tr> |
| 448 |
<tr> |
| 449 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT-EQUAL-NOCASE:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT_EQUAL_NOCASE</p></td> |
| 450 |
<td> </td> |
| 451 |
<td> </td> |
| 452 |
</tr> |
| 453 |
<tr> |
| 454 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-LESSER:CAPS"></a>IDMEF_CRITERION_OPERATOR_LESSER</p></td> |
| 455 |
<td> </td> |
| 456 |
<td> </td> |
| 457 |
</tr> |
| 458 |
<tr> |
| 459 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-LESSER-OR-EQUAL:CAPS"></a>IDMEF_CRITERION_OPERATOR_LESSER_OR_EQUAL</p></td> |
| 460 |
<td> </td> |
| 461 |
<td> </td> |
| 462 |
</tr> |
| 463 |
<tr> |
| 464 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-GREATER:CAPS"></a>IDMEF_CRITERION_OPERATOR_GREATER</p></td> |
| 465 |
<td> </td> |
| 466 |
<td> </td> |
| 467 |
</tr> |
| 468 |
<tr> |
| 469 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-GREATER-OR-EQUAL:CAPS"></a>IDMEF_CRITERION_OPERATOR_GREATER_OR_EQUAL</p></td> |
| 470 |
<td> </td> |
| 471 |
<td> </td> |
| 472 |
</tr> |
| 473 |
<tr> |
| 474 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-SUBSTR:CAPS"></a>IDMEF_CRITERION_OPERATOR_SUBSTR</p></td> |
| 475 |
<td> </td> |
| 476 |
<td> </td> |
| 477 |
</tr> |
| 478 |
<tr> |
| 479 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-SUBSTR-NOCASE:CAPS"></a>IDMEF_CRITERION_OPERATOR_SUBSTR_NOCASE</p></td> |
| 480 |
<td> </td> |
| 481 |
<td> </td> |
| 482 |
</tr> |
| 483 |
<tr> |
| 484 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT-SUBSTR:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT_SUBSTR</p></td> |
| 485 |
<td> </td> |
| 486 |
<td> </td> |
| 487 |
</tr> |
| 488 |
<tr> |
| 489 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT-SUBSTR-NOCASE:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT_SUBSTR_NOCASE</p></td> |
| 490 |
<td> </td> |
| 491 |
<td> </td> |
| 492 |
</tr> |
| 493 |
<tr> |
| 494 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-REGEX:CAPS"></a>IDMEF_CRITERION_OPERATOR_REGEX</p></td> |
| 495 |
<td> </td> |
| 496 |
<td> </td> |
| 497 |
</tr> |
| 498 |
<tr> |
| 499 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-REGEX-NOCASE:CAPS"></a>IDMEF_CRITERION_OPERATOR_REGEX_NOCASE</p></td> |
| 500 |
<td> </td> |
| 501 |
<td> </td> |
| 502 |
</tr> |
| 503 |
<tr> |
| 504 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT-REGEX:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT_REGEX</p></td> |
| 505 |
<td> </td> |
| 506 |
<td> </td> |
| 507 |
</tr> |
| 508 |
<tr> |
| 509 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT-REGEX-NOCASE:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT_REGEX_NOCASE</p></td> |
| 510 |
<td> </td> |
| 511 |
<td> </td> |
| 512 |
</tr> |
| 513 |
<tr> |
| 514 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NULL:CAPS"></a>IDMEF_CRITERION_OPERATOR_NULL</p></td> |
| 515 |
<td> </td> |
| 516 |
<td> </td> |
| 517 |
</tr> |
| 518 |
<tr> |
| 519 |
<td class="enum_member_name"><p><a name="IDMEF-CRITERION-OPERATOR-NOT-NULL:CAPS"></a>IDMEF_CRITERION_OPERATOR_NOT_NULL</p></td> |
| 520 |
<td> </td> |
| 521 |
<td> </td> |
| 522 |
</tr> |
| 523 |
</tbody> |
| 524 |
</table></div> |
| 525 |
</div> |
| 526 |
</div> |
| 527 |
<hr> |
| 528 |
<div class="refsect2"> |
| 529 |
<a name="idmef-criteria-t"></a><h3>idmef_criteria_t</h3> |
| 530 |
<pre class="programlisting">typedef struct idmef_criteria idmef_criteria_t; |
| 531 |
</pre> |
| 532 |
</div> |
| 533 |
</div> |
| 534 |
</div> |
| 535 |
<div class="footer"> |
| 536 |
<hr>Generated by GTK-Doc V1.28</div> |
| 537 |
</body> |
| 538 |
</html> |