Open SCAP Library
src
OVAL
results
oval_status_counter.h
1
/*
2
* Copyright 2015 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
* Authors:
20
* "Jan Černý" <jcerny@redhat.com>
21
*/
22
23
#ifndef OSCAP_OVAL_STATUS_COUNTER_H_
24
#define OSCAP_OVAL_STATUS_COUNTER_H_
25
26
#include "../common/util.h"
27
#include "
oval_definitions.h
"
28
#include "
oval_types.h
"
29
#include "
oval_system_characteristics.h
"
30
31
32
struct
oval_status_counter
{
33
int
error_cnt;
34
int
exists_cnt;
35
int
does_not_exist_cnt;
36
int
not_collected_cnt;
37
};
38
39
void
oval_status_counter_clear(
struct
oval_status_counter
*counter);
40
void
oval_status_counter_add_status(
struct
oval_status_counter
*counter,
oval_syschar_status_t
status);
41
oval_result_t
oval_status_counter_get_result(
struct
oval_status_counter
*counter,
oval_existence_t
check_existence);
42
43
44
#endif
oval_definitions.h
oval_types.h
oval_syschar_status_t
oval_syschar_status_t
System characteristics status.
Definition:
oval_system_characteristics.h:61
oval_system_characteristics.h
oval_result_t
oval_result_t
Definition:
oval_types.h:349
oval_existence_t
oval_existence_t
Existence check enumeration.
Definition:
oval_definitions.h:103
oval_status_counter
Definition:
oval_status_counter.h:32
Generated by
1.8.17