Open SCAP Library: result_scoring_priv.h Source File

Open SCAP Library

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

- File List
- Globals

result_scoring_priv.h
1 /*
2 * Copyright 2014 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 */
20 #ifndef OSCAP_XCCDF_RESULT_SCORING_H
21 #define OSCAP_XCCDF_RESULT_SCORING_H
22
23 #ifdef HAVE_CONFIG_H
24 #include <config.h>
25 #endif
26
27 #include <stdlib.h>
28 #include <string.h>
29
30 #include "common/public/oscap.h"
31 #include "common/util.h"
32 #include "public/xccdf_benchmark.h"
33
34 OSCAP_HIDDEN_START;
35
43 struct xccdf_score *xccdf_result_calculate_score(struct xccdf_result *test_result, struct xccdf_item *benchmark, const char *score_system);
44
45 OSCAP_HIDDEN_END;
46 #endif
oscap.h
General OpenScap functions and types.
xccdf_score
XCCDF score.
Definition: item.h:370
xccdf_result::xccdf_result_calculate_score
struct xccdf_score * xccdf_result_calculate_score(struct xccdf_result *test_result, struct xccdf_item *benchmark, const char *score_system)
Calculate new XCCDF Score for given xccdf:TestResult.
Definition: result_scoring.c:245
xccdf_result
Actual results of running a XCCDF test or profile.
Definition: xccdf_benchmark.h:223
xccdf_benchmark.h
Open-scap XCCDF library interface.
xccdf_item
A base class for XCCDF items.
Definition: item.h:221