/usr/include/openscap/oval_directives.h is in libopenscap-dev 1.0.9-1+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | /**
* @addtogroup OVAL
* @{
* @addtogroup OVALDIR
* Interface for Directives model
* @{
*
* @file
*
* @author "Peter Vrabec" <pvrabec@redhat.com>
*
*
*/
/*
* Copyright 2011 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* "David Niemoller" <David.Niemoller@g2-inc.com>
*/
#ifndef OVAL_DIRECTIVES_H_
#define OVAL_DIRECTIVES_H_
#include "oval_types.h"
/**
* @typedef oval_result_directive_content_t
* Values for the directives controlling the expected content of the results file
*/
typedef enum {
OVAL_DIRECTIVE_CONTENT_UNKNOWN = 0, /**< Undefined value */
OVAL_DIRECTIVE_CONTENT_THIN = 1, /**< Only the minimal amount of information will be provided. */
OVAL_DIRECTIVE_CONTENT_FULL = 2 /**< Very detailed information will be provided allowing in-depth reports to be generated from the results. */
} oval_result_directive_content_t;
/**
* @struct oval_directives_model
* This structure holds instance of OVAL Directives.
*/
struct oval_directives_model;
/**
* @memberof oval_directives_model
*/
struct oval_directives_model *oval_directives_model_new(void);
/**
* @memberof oval_directives_model
*/
void oval_directives_model_free(struct oval_directives_model *);
/**
* @memberof oval_directives_model
*/
int oval_directives_model_import(struct oval_directives_model *, char *);
/**
* @memberof oval_directives_model
*/
struct oval_generator *oval_directives_model_get_generator(struct oval_directives_model *);
/**
* @memberof oval_directives_model
*/
struct oval_result_directives *oval_directives_model_get_defdirs(struct oval_directives_model *);
/**
* @memberof oval_directives_model
*/
struct oval_result_directives *oval_directives_model_get_classdir(struct oval_directives_model *, oval_definition_class_t);
/**
* @memberof oval_directives_model
*/
struct oval_result_directives *oval_directives_model_get_new_classdir(struct oval_directives_model *, oval_definition_class_t);
/**
* @memberof oval_directives_model
*/
int oval_directives_model_export(struct oval_directives_model *, const char *);
/**
* @struct oval_result_directives
* This structure holds instance of either OVAL Default Directives or OVAL Class directives.
*/
struct oval_result_directives;
/**
* Create new OVAL Results Directives instance. Directives are setup to report FULL result by default.
* @memberof oval_result_directives
*/
struct oval_result_directives *oval_result_directives_new(void);
/**
* @memberof oval_result_directives
*/
void oval_result_directives_free(struct oval_result_directives *);
/**
* Set (or unset) result types that are intended to be reported. Functions does not override previous settings.
* @memberof oval_result_directives
*/
void oval_result_directives_set_reported(struct oval_result_directives *, int flag, bool val);
/**
* Configure the depth of infomation.
* @memberof oval_result_directives
*/
void oval_result_directives_set_content(struct oval_result_directives *, int flag, oval_result_directive_content_t);
/**
* @memberof oval_result_directives
*/
void oval_result_directives_set_included(struct oval_result_directives *, bool);
/**
* @memberof oval_result_directives
*/
bool oval_result_directives_get_reported(struct oval_result_directives *, oval_result_t);
/**
* @memberof oval_result_directives
*/
bool oval_result_directives_get_included(struct oval_result_directives *);
/**
* @memberof oval_result_directives
*/
oval_result_directive_content_t oval_result_directives_get_content(struct oval_result_directives *, oval_result_t);
#endif /* OVAL_DIRECTIVES_H_ */
/// @}
/// @}
|