<!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/openscap/openscap-0.5.7/src/OVAL/public/oval_probe.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/openscap/openscap-0.5.7/src/OVAL/public/oval_probe.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#pragma once</span> <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#ifndef OVAL_PROBE_H</span> <a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_PROBE_H</span> <a name="l00004"></a>00004 <span class="preprocessor"></span> <a name="l00005"></a>00005 <span class="preprocessor">#include <stdarg.h></span> <a name="l00006"></a>00006 <span class="preprocessor">#include <stdint.h></span> <a name="l00007"></a>00007 <span class="preprocessor">#include "<a class="code" href="oval__definitions_8h.html">oval_definitions.h</a>"</span> <a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="oval__system__characteristics_8h.html">oval_system_characteristics.h</a>"</span> <a name="l00009"></a>00009 <a name="l00010"></a>00010 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structoval__pctx.html">oval_pctx</a> <a class="code" href="structoval__pctx.html">oval_pctx_t</a>; <a name="l00011"></a>00011 <a name="l00016"></a>00016 <a class="code" href="structoval__pctx.html">oval_pctx_t</a> *oval_pctx_new(<span class="keyword">struct</span> <a class="code" href="structoval__syschar__model.html" title="OVAL System Characteristics model.">oval_syschar_model</a> *model); <a name="l00017"></a>00017 <a name="l00022"></a>00022 <span class="keywordtype">void</span> oval_pctx_free(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1))); <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="comment">/*</span> <a name="l00025"></a>00025 <span class="comment"> * probe context flags</span> <a name="l00026"></a>00026 <span class="comment"> */</span> <a name="l00027"></a>00027 <span class="preprocessor">#define OVAL_PCTX_FLAG_NOREPLY 0x0001 </span><span class="comment">/* don't send probe result to library - just an ack */</span> <a name="l00028"></a>00028 <span class="preprocessor">#define OVAL_PCTX_FLAG_NORECONN 0x0002 </span><span class="comment">/* don't try to reconnect on fatal errors */</span> <a name="l00029"></a>00029 <span class="preprocessor">#define OVAL_PCTX_FLAG_RUNALL 0x0004 </span><span class="comment">/* execute all probes when executing the first */</span> <a name="l00030"></a>00030 <span class="preprocessor">#define OVAL_PCTX_FLAG_RUNNOW 0x0008 </span><span class="comment">/* execute all probes immediately */</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="preprocessor">#define OVAL_PCTX_FLAG_MASK (0x0001|0x0002|0x0004|0x0008)</span> <a name="l00033"></a>00033 <span class="preprocessor"></span> <a name="l00039"></a>00039 <span class="keywordtype">int</span> oval_pctx_setflag(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx, uint32_t flags) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1))); <a name="l00040"></a>00040 <a name="l00046"></a>00046 <span class="keywordtype">int</span> oval_pctx_unsetflag(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx, uint32_t flags) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1))); <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="comment">/*</span> <a name="l00049"></a>00049 <span class="comment"> * probe context attributes</span> <a name="l00050"></a>00050 <span class="comment"> */</span> <a name="l00051"></a>00051 <span class="preprocessor">#define OVAL_PCTX_ATTR_RETRY 0x0001 </span><span class="comment">/* set maximum retry count (send, connect) */</span> <a name="l00052"></a>00052 <span class="preprocessor">#define OVAL_PCTX_ATTR_RECVTIMEOUT 0x0002 </span><span class="comment">/* set receive timeout - in miliseconds */</span> <a name="l00053"></a>00053 <span class="preprocessor">#define OVAL_PCTX_ATTR_SENDTIMEOUT 0x0003 </span><span class="comment">/* set send timeout - in miliseconds */</span> <a name="l00054"></a>00054 <span class="preprocessor">#define OVAL_PCTX_ATTR_SCHEME 0x0004 </span><span class="comment">/* set communication scheme */</span> <a name="l00055"></a>00055 <span class="preprocessor">#define OVAL_PCTX_ATTR_DIR 0x0005 </span><span class="comment">/* set directory where the probes are located */</span> <a name="l00056"></a>00056 <span class="preprocessor">#define OVAL_PCTX_ATTR_MODEL 0x0006 </span><span class="comment">/* set definition model - update registered commands is necessary */</span> <a name="l00057"></a>00057 <a name="l00064"></a>00064 <span class="keywordtype">int</span> oval_pctx_setattr(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx, uint32_t attr, ...) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1))); <a name="l00065"></a>00065 <a name="l00071"></a>00071 <span class="keywordtype">int</span> oval_probe_reset(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx, <a class="code" href="group__OVAL.html#ga99498f525c1a0282ef45557fc882f97f" title="Unknown subtypes.">oval_subtype_t</a> subtype) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1))); <a name="l00072"></a>00072 <a name="l00078"></a>00078 <span class="keywordtype">int</span> oval_probe_close(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx, <a class="code" href="group__OVAL.html#ga99498f525c1a0282ef45557fc882f97f" title="Unknown subtypes.">oval_subtype_t</a> subtype) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1))); <a name="l00079"></a>00079 <a name="l00084"></a>00084 struct <a class="code" href="structoval__sysinfo.html" title="General instrumented host description.">oval_sysinfo</a> *oval_probe_sysinf_eval(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1))); <a name="l00085"></a>00085 <a name="l00091"></a>00091 struct <a class="code" href="structoval__syschar.html" title="Characteristics bound to an Oval_object.">oval_syschar</a> *oval_probe_object_eval(<a class="code" href="structoval__pctx.html">oval_pctx_t</a> *pctx, struct <a class="code" href="structoval__object.html" title="An Oval_object instance describes a set of items to look for on an instrumented host...">oval_object</a> *<span class="keywordtype">object</span>) <a class="code" href="struct____attribute____.html">__attribute__</a> ((nonnull(1, 2))); <a name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="preprocessor">#endif </span><span class="comment">/* OVAL_PROBE_H */</span> </pre></div></div> <hr size="1"/><address style="text-align: right;"><small>Generated on 26 Feb 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>