File: error_8h_source.html

package info (click to toggle)
openscap 0.5.12-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 27,052 kB
  • ctags: 21,075
  • sloc: xml: 82,351; ansic: 52,101; sh: 17,802; makefile: 748; perl: 442; cpp: 117; python: 110
file content (101 lines) | stat: -rw-r--r-- 10,445 bytes parent folder | download
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
<!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/common/public/error.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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;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&nbsp;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/common/public/error.h</h1><a href="error_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 2009 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 
<a name="l00041"></a>00041 <span class="preprocessor">#pragma once</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#ifndef OSCAP_ERROR_H</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#define OSCAP_ERROR_H</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00047"></a>00047 
<a name="l00049"></a><a class="code" href="group__ERRORS.html#gaaddebbc97e12a87b46b37d236660deb9">00049</a> <span class="keyword">typedef</span> uint16_t <a class="code" href="group__ERRORS.html#gaaddebbc97e12a87b46b37d236660deb9" title="Error family type.">oscap_errfamily_t</a>;
<a name="l00051"></a><a class="code" href="group__ERRORS.html#ga200ca968e978cd3f3020f3eaa1e4d18b">00051</a> <span class="keyword">typedef</span> uint16_t <a class="code" href="group__ERRORS.html#ga200ca968e978cd3f3020f3eaa1e4d18b" title="Error code type.">oscap_errcode_t</a>;
<a name="l00052"></a>00052 
<a name="l00057"></a><a class="code" href="group__ERRORS.html#ga2a4b222f295b167554e471b040639383">00057</a> <span class="preprocessor">#define OSCAP_EFAMILY_NONE     0        </span>
<a name="l00058"></a><a class="code" href="group__ERRORS.html#gacc53d2370c80b6ed73177e50cadd9dff">00058</a> <span class="preprocessor">#define OSCAP_EFAMILY_GLIBC    1        </span>
<a name="l00059"></a><a class="code" href="group__ERRORS.html#ga5c221a396c86b253134dcf2cdd8fffc6">00059</a> <span class="preprocessor">#define OSCAP_EFAMILY_XML      2        </span>
<a name="l00060"></a><a class="code" href="group__ERRORS.html#ga063ef25dbff56281ad8b88bd3e5637a2">00060</a> <span class="preprocessor">#define OSCAP_EFAMILY_OSCAP    3        </span>
<a name="l00061"></a><a class="code" href="group__ERRORS.html#gac0e81243524424435f8099c768fd3ab3">00061</a> <span class="preprocessor">#define OSCAP_EFAMILY_OVAL     4        </span>
<a name="l00062"></a><a class="code" href="group__ERRORS.html#gaef8f195999b3b733a1dc88b7f9bc8800">00062</a> <span class="preprocessor">#define OSCAP_EFAMILY_XCCDF    5        </span>
<a name="l00069"></a><a class="code" href="group__ERRORS.html#gaae500549b229e017c725e9966cd2a2c4">00069</a> <span class="preprocessor">#define OSCAP_ENONE         0   </span>
<a name="l00070"></a><a class="code" href="group__ERRORS.html#ga7f49cf2c3395080d9e20eb4929f1e4c1">00070</a> <span class="preprocessor">#define OSCAP_EXMLELEM      1   </span>
<a name="l00071"></a><a class="code" href="group__ERRORS.html#gaa703884800f0698cec4b4c962c2dbceb">00071</a> <span class="preprocessor">#define OSCAP_EINVARG       2   </span>
<a name="l00072"></a><a class="code" href="group__ERRORS.html#gaaa2f59e51ab637af202c9147f5b61acc">00072</a> <span class="preprocessor">#define OSCAP_ENOTIMPL      254 </span>
<a name="l00079"></a>00079 <span class="preprocessor">#define OVAL_EOVALINT        1</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBECONTEXT   255</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBEINIT      256</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBECONN      257</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBENOTSUPP   258</span>
<a name="l00084"></a>00084 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBEOBJINVAL  259</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBEITEMINVAL 260</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBENODATA    261</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBECLOSE     262</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBESEND      263</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBERECV      264</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor">#define OVAL_EPROBEUNKNOWN   511</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span>
<a name="l00097"></a><a class="code" href="group__ERRORS.html#gaf38d689e40599e73b994ae58bdbcb7fe">00097</a> <span class="preprocessor">#define XCCDF_EREFIDCONFLICT  1   </span>
<a name="l00098"></a><a class="code" href="group__ERRORS.html#gaebbbb00f85f735c289bfaf8ebc57d991">00098</a> <span class="preprocessor">#define XCCDF_EREFGROUPATTR   2   </span>
<a name="l00099"></a><a class="code" href="group__ERRORS.html#gac29a7f4c454c9fa5a983828198685862">00099</a> <span class="preprocessor">#define XCCDF_EUNKNOWNTYPE    3   </span>
<a name="l00100"></a><a class="code" href="group__ERRORS.html#ga8fedddb59a3b9744a0532e2f5ef38917">00100</a> <span class="preprocessor">#define XCCDF_EUNKNOWNCB      4   </span>
<a name="l00101"></a><a class="code" href="group__ERRORS.html#ga69e64c67bfd9a55d3c962c8dca2b9418">00101</a> <span class="preprocessor">#define XCCDF_EBADID          5   </span>
<a name="l00108"></a>00108 <span class="preprocessor">void oscap_clearerr(void);</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span>
<a name="l00113"></a>00113 <span class="keywordtype">bool</span> <a class="code" href="group__ERRORS.html#ga6250756dc15760ad37288410b1117433" title="Check for an error.">oscap_err</a>(<span class="keywordtype">void</span>);
<a name="l00114"></a>00114 
<a name="l00118"></a>00118 <a class="code" href="group__ERRORS.html#gaaddebbc97e12a87b46b37d236660deb9" title="Error family type.">oscap_errfamily_t</a> <a class="code" href="group__ERRORS.html#gaf5a130197519ab79f452a592c327c89b" title="Get last error family.">oscap_err_family</a>(<span class="keywordtype">void</span>);
<a name="l00119"></a>00119 
<a name="l00123"></a>00123 <a class="code" href="group__ERRORS.html#ga200ca968e978cd3f3020f3eaa1e4d18b" title="Error code type.">oscap_errcode_t</a> <a class="code" href="group__ERRORS.html#ga7a04a1e9253a5097bf25c1520ab75c58" title="Get last error code.">oscap_err_code</a>(<span class="keywordtype">void</span>);
<a name="l00124"></a>00124 
<a name="l00128"></a>00128 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__ERRORS.html#ga40156d16cfcddd2596f56b9fcc5f752f" title="Get last error description.">oscap_err_desc</a>(<span class="keywordtype">void</span>);
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 <span class="preprocessor">#endif                          </span><span class="comment">/* OSCAP_ERROR_H */</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on 30 Jun 2010 for Open SCAP Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>