Loading...
Searching...
No Matches
oval_directives.h
Go to the documentation of this file.
/*
* Copyright 2011--2014 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* "David Niemoller" <David.Niemoller@g2-inc.com>
*/
#ifndef OVAL_DIRECTIVES_H_
#define OVAL_DIRECTIVES_H_
#include "oscap.h"
#include "oscap_source.h"
#include "oval_types.h"
#include "oscap_export.h"
typedef enum {
OVAL_DIRECTIVE_CONTENT_UNKNOWN = 0,
OVAL_DIRECTIVE_CONTENT_THIN = 1,
OVAL_DIRECTIVE_CONTENT_FULL = 2
} oval_result_directive_content_t;
struct oval_directives_model;
OSCAP_API struct oval_directives_model *oval_directives_model_new(void);
OSCAP_API void oval_directives_model_free(struct oval_directives_model *);
OSCAP_API int oval_directives_model_import_source(struct oval_directives_model *model, struct oscap_source *source);
OSCAP_API struct oval_generator *oval_directives_model_get_generator(struct oval_directives_model *);
OSCAP_API struct oval_result_directives *oval_directives_model_get_defdirs(struct oval_directives_model *);
OSCAP_API struct oval_result_directives *oval_directives_model_get_classdir(struct oval_directives_model *, oval_definition_class_t);
OSCAP_API struct oval_result_directives *oval_directives_model_get_new_classdir(struct oval_directives_model *, oval_definition_class_t);
OSCAP_API int oval_directives_model_export(struct oval_directives_model *, const char *);
struct oval_result_directives;
OSCAP_API struct oval_result_directives *oval_result_directives_new(void);
OSCAP_API void oval_result_directives_free(struct oval_result_directives *);
OSCAP_API void oval_result_directives_set_reported(struct oval_result_directives *, int flag, bool val);
OSCAP_API void oval_result_directives_set_content(struct oval_result_directives *, int flag, oval_result_directive_content_t);
OSCAP_API void oval_result_directives_set_included(struct oval_result_directives *, bool);
OSCAP_API bool oval_result_directives_get_reported(struct oval_result_directives *, oval_result_t);
OSCAP_API bool oval_result_directives_get_included(struct oval_result_directives *);
OSCAP_API oval_result_directive_content_t oval_result_directives_get_content(struct oval_result_directives *, oval_result_t);
#endif /* OVAL_DIRECTIVES_H_ */
oval_result_directives::oval_result_directives_new
OSCAP_API struct oval_result_directives * oval_result_directives_new(void)
Create new OVAL Results Directives instance.
oval_result_directives::oval_result_directives_set_content
OSCAP_API void oval_result_directives_set_content(struct oval_result_directives *, int flag, oval_result_directive_content_t)
Configure the depth of infomation.
oval_result_directives::oval_result_directives_set_reported
OSCAP_API 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.
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:49
oval_directives_model::oval_directives_model_import_source
OSCAP_API 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_DIRECTIVE_CONTENT_THIN
@ OVAL_DIRECTIVE_CONTENT_THIN
Only the minimal amount of information will be provided.
Definition oval_directives.h:51
OVAL_DIRECTIVE_CONTENT_FULL
@ OVAL_DIRECTIVE_CONTENT_FULL
Very detailed information will be provided allowing in-depth reports to be generated from the results...
Definition oval_directives.h:52
OVAL_DIRECTIVE_CONTENT_UNKNOWN
@ OVAL_DIRECTIVE_CONTENT_UNKNOWN
Undefined value.
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:445
oscap.h
General OpenScap functions and types.
oval_types.h
oval_definition_class_t
oval_definition_class_t
Definition oval_types.h:471
oscap_source
Definition oscap_source.c:66
oval_directives_model
This structure holds instance of OVAL Directives.
oval_generator
Definition oval_generator.c:47
oval_result_directives
This structure holds instance of either OVAL Default Directives or OVAL Class directives.