Open SCAP Library: oval_directives.h Source File

Open SCAP Library

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

- File List
- Globals

oval_directives.h
Go to the documentation of this file.
1
15 /*
16 * Copyright 2011--2014 Red Hat Inc., Durham, North Carolina.
17 * All Rights Reserved.
18 *
19 * This library is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU Lesser General Public
21 * License as published by the Free Software Foundation; either
22 * version 2.1 of the License, or (at your option) any later version.
23 *
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
28 *
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 *
33 * Authors:
34 * "David Niemoller" <David.Niemoller@g2-inc.com>
35 */
36
37 #ifndef OVAL_DIRECTIVES_H_
38 #define OVAL_DIRECTIVES_H_
39
40 #include "oscap.h"
41 #include "oscap_source.h"
42 #include "oval_types.h"
43
48 typedef enum {
49 OVAL_DIRECTIVE_CONTENT_UNKNOWN = 0,
50 OVAL_DIRECTIVE_CONTENT_THIN = 1,
51 OVAL_DIRECTIVE_CONTENT_FULL = 2
52 } oval_result_directive_content_t;
53
54
59 struct oval_directives_model;
60
64 struct oval_directives_model *oval_directives_model_new(void);
68 void oval_directives_model_free(struct oval_directives_model *);
69
74 int oval_directives_model_import_source(struct oval_directives_model *model, struct oscap_source *source);
75
81 OSCAP_DEPRECATED(int oval_directives_model_import(struct oval_directives_model *, char *));
82
86 struct oval_generator *oval_directives_model_get_generator(struct oval_directives_model *);
90 struct oval_result_directives *oval_directives_model_get_defdirs(struct oval_directives_model *);
94 struct oval_result_directives *oval_directives_model_get_classdir(struct oval_directives_model *, oval_definition_class_t);
98 struct oval_result_directives *oval_directives_model_get_new_classdir(struct oval_directives_model *, oval_definition_class_t);
102 int oval_directives_model_export(struct oval_directives_model *, const char *);
103
104
105
110 struct oval_result_directives;
115 struct oval_result_directives *oval_result_directives_new(void);
119 void oval_result_directives_free(struct oval_result_directives *);
124 void oval_result_directives_set_reported(struct oval_result_directives *, int flag, bool val);
129 void oval_result_directives_set_content(struct oval_result_directives *, int flag, oval_result_directive_content_t);
133 void oval_result_directives_set_included(struct oval_result_directives *, bool);
137 bool oval_result_directives_get_reported(struct oval_result_directives *, oval_result_t);
141 bool oval_result_directives_get_included(struct oval_result_directives *);
145 oval_result_directive_content_t oval_result_directives_get_content(struct oval_result_directives *, oval_result_t);
146
147 #endif /* OVAL_DIRECTIVES_H_ */
148
oscap.h
General OpenScap functions and types.
oval_directives_model
This structure holds instance of OVAL Directives.
oval_types.h
oval_result_directives::oval_result_directives_set_reported
void oval_result_directives_set_reported(struct oval_result_directives *, int flag, bool val)
Set (or unset) result types that are intended to be reported.
OSCAP_DEPRECATED
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition: oscap.h:50
OVAL_DIRECTIVE_CONTENT_UNKNOWN
Undefined value.
Definition: oval_directives.h:49
oval_result_directive_content_t
oval_result_directive_content_t
Values for the directives controlling the expected content of the results file.
Definition: oval_directives.h:48
oval_directives_model::oval_directives_model_import_source
int oval_directives_model_import_source(struct oval_directives_model *model, struct oscap_source *source)
Import the data from oscap_source to the directives model.
oval_result_directives::oval_result_directives_set_content
void oval_result_directives_set_content(struct oval_result_directives *, int flag, oval_result_directive_content_t)
Configure the depth of infomation.
OVAL_DIRECTIVE_CONTENT_FULL
Very detailed information will be provided allowing in-depth reports to be generated from the results...
Definition: oval_directives.h:51
oscap_source
Definition: oscap_source.c:62
oval_result_directives
This structure holds instance of either OVAL Default Directives or OVAL Class directives.
OVAL_DIRECTIVE_CONTENT_THIN
Only the minimal amount of information will be provided.
Definition: oval_directives.h:50
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_definition_class_t
oval_definition_class_t
Definition: oval_types.h:353
oval_result_directives::oval_result_directives_new
struct oval_result_directives * oval_result_directives_new(void)
Create new OVAL Results Directives instance.
oval_generator
Definition: oval_generator.c:44
oval_directives_model::oval_directives_model_import
int oval_directives_model_import(struct oval_directives_model *, char *)