Open SCAP Library

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 OSCAP_HIDDEN_START;
32
33 struct oval_status_counter {
34 int error_cnt;
35 int exists_cnt;
36 int does_not_exist_cnt;
37 int not_collected_cnt;
38 };
39
40 void oval_status_counter_clear(struct oval_status_counter *counter);
41 void oval_status_counter_add_status(struct oval_status_counter *counter, oval_syschar_status_t status);
42 oval_result_t oval_status_counter_get_result(struct oval_status_counter *counter, oval_existence_t check_existence);
43
44 OSCAP_HIDDEN_END;
45
46 #endif
oval_types.h
oval_syschar_status_t
oval_syschar_status_t
System characteristics status.
Definition: oval_system_characteristics.h:60
oval_existence_t
oval_existence_t
Existence check enumeration.
Definition: oval_definitions.h:103
oval_result_t
oval_result_t
Result values for the evaluation of an OVAL Definition or an OVAL Test.
Definition: oval_types.h:327
oval_system_characteristics.h
oval_status_counter
Definition: oval_status_counter.h:33
oval_definitions.h