|
Packit |
517ee8 |
/*
|
|
Packit |
517ee8 |
* Copyright 2015 Red Hat Inc., Durham, North Carolina.
|
|
Packit |
517ee8 |
* All Rights Reserved.
|
|
Packit |
517ee8 |
*
|
|
Packit |
517ee8 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
517ee8 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
517ee8 |
* License as published by the Free Software Foundation; either
|
|
Packit |
517ee8 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
517ee8 |
*
|
|
Packit |
517ee8 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
517ee8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
517ee8 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
517ee8 |
* Lesser General Public License for more details.
|
|
Packit |
517ee8 |
*
|
|
Packit |
517ee8 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
517ee8 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
517ee8 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
517ee8 |
*
|
|
Packit |
517ee8 |
* Authors:
|
|
Packit |
517ee8 |
* "Jan Černý" <jcerny@redhat.com>
|
|
Packit |
517ee8 |
*/
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
#ifndef OSCAP_OVAL_STATUS_COUNTER_H_
|
|
Packit |
517ee8 |
#define OSCAP_OVAL_STATUS_COUNTER_H_
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
#include "../common/util.h"
|
|
Packit |
517ee8 |
#include "oval_definitions.h"
|
|
Packit |
517ee8 |
#include "oval_types.h"
|
|
Packit |
517ee8 |
#include "oval_system_characteristics.h"
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
struct oval_status_counter {
|
|
Packit |
517ee8 |
int error_cnt;
|
|
Packit |
517ee8 |
int exists_cnt;
|
|
Packit |
517ee8 |
int does_not_exist_cnt;
|
|
Packit |
517ee8 |
int not_collected_cnt;
|
|
Packit |
517ee8 |
};
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
void oval_status_counter_clear(struct oval_status_counter *counter);
|
|
Packit |
517ee8 |
void oval_status_counter_add_status(struct oval_status_counter *counter, oval_syschar_status_t status);
|
|
Packit |
517ee8 |
oval_result_t oval_status_counter_get_result(struct oval_status_counter *counter, oval_existence_t check_existence);
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
#endif
|