Open SCAP Library: oscap_error.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

oscap_error.h
Go to the documentation of this file.
1 /*
2 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
41 #pragma once
42 #ifndef OSCAP_ERROR_H
43 #define OSCAP_ERROR_H
44
45 #include <stdint.h>
46 #include <stdbool.h>
47
49 typedef uint16_t oscap_errfamily_t;
50
55 #define OSCAP_EFAMILY_NONE 0
56 #define OSCAP_EFAMILY_GLIBC 1
57 #define OSCAP_EFAMILY_XML 2
58 #define OSCAP_EFAMILY_OSCAP 3
59 #define OSCAP_EFAMILY_OVAL 4
60 #define OSCAP_EFAMILY_XCCDF 5
61 #define OSCAP_EFAMILY_SCE 6
62 #define OSCAP_EFAMILY_NET 7
68 void oscap_clearerr(void);
69
73 bool oscap_err(void);
74
78 oscap_errfamily_t oscap_err_family(void);
79
83 const char *oscap_err_desc(void);
84
93 char *oscap_err_get_full_error(void);
94
97 #endif /* OSCAP_ERROR_H */
oscap_err_desc
const char * oscap_err_desc(void)
Get last error description.
Definition: error.c:157
oscap_err_get_full_error
char * oscap_err_get_full_error(void)
Get the full description for all the errors which has occured in this thread since the last call of t...
Definition: error.c:169
oscap_err
bool oscap_err(void)
Check for an error.
Definition: error.c:138
oscap_errfamily_t
uint16_t oscap_errfamily_t
Error family type.
Definition: oscap_error.h:49
oscap_err_family
oscap_errfamily_t oscap_err_family(void)
Get last error family.
Definition: error.c:145