Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 537b4767ca71616a4bccbb57df0c2eb6 > files > 323

openscap-devel-0.7.4-1.fc16.i686.rpm

<!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.7.4/src/common/public/reporter.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.7.4 -->
<div id="top">
<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>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/pvrabec/project/openscap/openscap-0.7.4/src/common/public/reporter.h</div>  </div>
</div>
<div class="contents">
<a href="reporter_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright 2010 Red Hat Inc., Durham, North Carolina.</span>
<a name="l00003"></a>00003 <span class="comment"> * All Rights Reserved.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00007"></a>00007 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00016"></a>00016 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * Authors:</span>
<a name="l00020"></a>00020 <span class="comment"> *       Lukas Kuklinek &lt;lkuklinek@redhat.com&gt;</span>
<a name="l00021"></a>00021 <span class="comment"> */</span>
<a name="l00022"></a>00022 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef OSCAP_REPORTER_H_</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define OSCAP_REPORTER_H_</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00033"></a>00033 
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="group__Reporters.html#gaa524578d6cdd09a090251f389a42193e">00074</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__Reporters.html#gaa524578d6cdd09a090251f389a42193e" title="Reporter message family.">oscap_reporter_family</a> {
<a name="l00075"></a><a class="code" href="group__Reporters.html#ggaa524578d6cdd09a090251f389a42193ea8c274c61727a2681d75001c14b6f4f4d">00075</a>         <a class="code" href="group__Reporters.html#ggaa524578d6cdd09a090251f389a42193ea8c274c61727a2681d75001c14b6f4f4d" title="libxml codes">OSCAP_REPORTER_FAMILY_XML</a>           = 1,  
<a name="l00076"></a><a class="code" href="group__Reporters.html#ggaa524578d6cdd09a090251f389a42193eac5484ede2ee325d0293c860162ee05f4">00076</a>         <a class="code" href="group__Reporters.html#ggaa524578d6cdd09a090251f389a42193eac5484ede2ee325d0293c860162ee05f4" title="XCCDF codes.">OSCAP_REPORTER_FAMILY_XCCDF</a>         = 2,  
<a name="l00077"></a><a class="code" href="group__Reporters.html#ggaa524578d6cdd09a090251f389a42193eaee165b386f8eac1b908ada0d45943f85">00077</a>         <a class="code" href="group__Reporters.html#ggaa524578d6cdd09a090251f389a42193eaee165b386f8eac1b908ada0d45943f85" title="OVAL codes.">OSCAP_REPORTER_FAMILY_OVAL</a>          = 3,  
<a name="l00078"></a>00078         OSCAP_REPORTER_FAMILY_USER_START    = 1024
<a name="l00079"></a>00079 } <a class="code" href="group__Reporters.html#ga9958de4d24744d816480c94796014c0a" title="Reporter message family.">oscap_reporter_family_t</a>;
<a name="l00080"></a>00080 
<a name="l00082"></a><a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715">00082</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a>;
<a name="l00083"></a>00083 
<a name="l00085"></a>00085 <span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a> <a class="code" href="group__Reporters.html#gab369d5ef0521bb171dca43d5dc7b4636" title="Maximum code.">OSCAP_REPORTER_CODE_MAX</a>;
<a name="l00086"></a>00086 
<a name="l00091"></a>00091 <span class="keyword">struct </span><a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a>;
<a name="l00092"></a>00092 
<a name="l00096"></a><a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3">00096</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3" title="Reporter prototype.">oscap_reporter</a>)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg, <span class="keywordtype">void</span> *arg);
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 
<a name="l00100"></a>00100 <span class="keyword">struct </span><a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *<a class="code" href="group__Reporters.html#ga128b0e1e7e32b808784e64f7915b849b">oscap_reporter_message_new</a>(<span class="keywordtype">void</span>);
<a name="l00102"></a>00102 <span class="keyword">struct </span><a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *<a class="code" href="group__Reporters.html#gacc16aa1839367828f42f45e24e8b08e9">oscap_reporter_message_new_fill</a>(<a class="code" href="group__Reporters.html#ga9958de4d24744d816480c94796014c0a" title="Reporter message family.">oscap_reporter_family_t</a> family, <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>);
<a name="l00104"></a>00104 <span class="keyword">struct </span><a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *<a class="code" href="group__Reporters.html#ga31c86db4139bd327cc8c1503e0677d9e">oscap_reporter_message_new_fmt</a>(<a class="code" href="group__Reporters.html#ga9958de4d24744d816480c94796014c0a" title="Reporter message family.">oscap_reporter_family_t</a> family, <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);
<a name="l00106"></a>00106 <span class="keyword">struct </span><a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *<a class="code" href="group__Reporters.html#ga07b28d63edf853c4c93d4bc49f9ffb42">oscap_reporter_message_clone</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00108"></a>00108 <a class="code" href="group__Reporters.html#ga9958de4d24744d816480c94796014c0a" title="Reporter message family.">oscap_reporter_family_t</a> <a class="code" href="group__Reporters.html#ga3ff942948fe9614c4b38f5f14a328f26">oscap_reporter_message_get_family</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *item);
<a name="l00110"></a>00110 <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a> <a class="code" href="group__Reporters.html#ga1a8ff34a7dfac72b7c9ff73ea5b1d781">oscap_reporter_message_get_code</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *item);
<a name="l00112"></a>00112 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__Reporters.html#ga17e3cb8cb235c34d5c4a6b1052fd63ae">oscap_reporter_message_get_string</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *item);
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__Reporters.html#ga2088ef45d8e8e77759d9e8e83f498bcc">oscap_reporter_message_get_user1str</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00117"></a>00117 <span class="keywordtype">int</span> <a class="code" href="group__Reporters.html#gaedd88a92930d41be0af875d5720294e2">oscap_reporter_message_get_user1num</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00119"></a>00119 <span class="keywordtype">void</span> *<a class="code" href="group__Reporters.html#ga90b8581f5908404e8d0cb7ffca028dd4">oscap_reporter_message_get_user1ptr</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00121"></a>00121 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__Reporters.html#ga6926dbbf42758651b9ddb0b1fdfe80b3">oscap_reporter_message_get_user2str</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00123"></a>00123 <span class="keywordtype">int</span> <a class="code" href="group__Reporters.html#gad8840eb1db5184a5345690c63b4113fb">oscap_reporter_message_get_user2num</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00125"></a>00125 <span class="keywordtype">void</span> *<a class="code" href="group__Reporters.html#ga08eca2b8cb49a1e3f535b314d60382f6">oscap_reporter_message_get_user2ptr</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00127"></a>00127 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__Reporters.html#ga89ca0faf7e28540759389f3469f3cf98">oscap_reporter_message_get_user3str</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00129"></a>00129 <span class="keywordtype">int</span> <a class="code" href="group__Reporters.html#ga899d3ef9a868dbfd2a9ab305ac20aff7">oscap_reporter_message_get_user3num</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00131"></a>00131 <span class="keywordtype">void</span> *<a class="code" href="group__Reporters.html#gac11910bfa402ce779215101223cad7ba">oscap_reporter_message_get_user3ptr</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg);
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 
<a name="l00139"></a>00139 <span class="keywordtype">int</span> oscap_reporter_dispatch(<a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3" title="Reporter prototype.">oscap_reporter</a> reporter, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg, <span class="keywordtype">void</span> *arg);
<a name="l00140"></a>00140 
<a name="l00148"></a>00148 <span class="keywordtype">int</span> oscap_reporter_report(<a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3" title="Reporter prototype.">oscap_reporter</a> reporter, <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg, <span class="keywordtype">void</span> *arg);
<a name="l00149"></a>00149 
<a name="l00156"></a>00156 <span class="keywordtype">int</span> oscap_reporter_report_fmt(<a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3" title="Reporter prototype.">oscap_reporter</a> reporter, <span class="keywordtype">void</span> *arg, <a class="code" href="group__Reporters.html#ga9958de4d24744d816480c94796014c0a" title="Reporter message family.">oscap_reporter_family_t</a> family, <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...);
<a name="l00157"></a>00157 
<a name="l00159"></a>00159 <span class="keywordtype">int</span> <a class="code" href="group__Reporters.html#ga941136eccb6c5caefbbacd4d3d00bd9c" title="File descriptor reporter.">oscap_reporter_fd</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg, <span class="keywordtype">void</span> *arg);
<a name="l00160"></a>00160 
<a name="l00168"></a>00168 <span class="keyword">struct </span><a class="code" href="structoscap__reporter__switch__ctxt.html" title="Switch reporter context.">oscap_reporter_switch_ctxt</a>;
<a name="l00170"></a>00170 <span class="keyword">struct </span><a class="code" href="structoscap__reporter__switch__ctxt.html" title="Switch reporter context.">oscap_reporter_switch_ctxt</a> *<a class="code" href="group__Reporters.html#ga32c125e7483acd9cc85f50e04c27c08f">oscap_reporter_switch_ctxt_new</a>(<span class="keywordtype">void</span>);
<a name="l00172"></a>00172 <span class="keywordtype">void</span> <a class="code" href="group__Reporters.html#ga08ffb77fe23d848820fd693513f4983c">oscap_reporter_switch_ctxt_add_range_reporter</a>(<span class="keyword">struct</span> <a class="code" href="structoscap__reporter__switch__ctxt.html" title="Switch reporter context.">oscap_reporter_switch_ctxt</a> *ctxt, <a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3" title="Reporter prototype.">oscap_reporter</a> reporter, <span class="keywordtype">void</span> *arg,
<a name="l00173"></a>00173                                    <a class="code" href="group__Reporters.html#ga9958de4d24744d816480c94796014c0a" title="Reporter message family.">oscap_reporter_family_t</a> family, <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a> min_code, <a class="code" href="group__Reporters.html#gabea6171ab5d5780073321cfe7687a715" title="Reporter message code type.">oscap_reporter_code_t</a> max_code);
<a name="l00175"></a>00175 <span class="keywordtype">void</span> <a class="code" href="group__Reporters.html#gabc1366141f69ead4afaf683581aab244">oscap_reporter_switch_ctxt_add_family_reporter</a>(<span class="keyword">struct</span> <a class="code" href="structoscap__reporter__switch__ctxt.html" title="Switch reporter context.">oscap_reporter_switch_ctxt</a> *ctxt, <a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3" title="Reporter prototype.">oscap_reporter</a> reporter, <span class="keywordtype">void</span> *arg, <a class="code" href="group__Reporters.html#ga9958de4d24744d816480c94796014c0a" title="Reporter message family.">oscap_reporter_family_t</a> family);
<a name="l00177"></a>00177 <span class="keywordtype">void</span> <a class="code" href="group__Reporters.html#ga2de800ae8f24473496cea3deaa8d5a3e">oscap_reporter_switch_ctxt_add_reporter</a>(<span class="keyword">struct</span> <a class="code" href="structoscap__reporter__switch__ctxt.html" title="Switch reporter context.">oscap_reporter_switch_ctxt</a> *ctxt, <a class="code" href="group__Reporters.html#gada96dbbbb54a7659c3acf1c00a7d7ad3" title="Reporter prototype.">oscap_reporter</a> reporter, <span class="keywordtype">void</span> *arg);
<a name="l00179"></a>00179 <span class="keywordtype">void</span> <a class="code" href="group__Reporters.html#gadca4f613b0bd3fc7f93b1962daa7b24d">oscap_reporter_switch_ctxt_free</a>(<span class="keyword">struct</span> <a class="code" href="structoscap__reporter__switch__ctxt.html" title="Switch reporter context.">oscap_reporter_switch_ctxt</a> *ctxt);
<a name="l00181"></a>00181 <span class="keywordtype">int</span> <a class="code" href="group__Reporters.html#ga6897491bc3503fd8ebcb49707fa00a28">oscap_reporter_switch</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structoscap__reporter__message.html" title="Represents a message to be reported.">oscap_reporter_message</a> *msg, <span class="keywordtype">void</span> *arg);
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 <span class="preprocessor">#endif // OSCAP_REPORTER_H_</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Jul 25 2011 for Open SCAP Library by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>