Open SCAP Library
oval_directives.h
Go to the documentation of this file.
1 
15 /*
16  * Copyright 2011 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 "oval_types.h"
41 
46 typedef enum {
51 
52 
58 
62 struct oval_directives_model *oval_directives_model_new(void);
66 void oval_directives_model_free(struct oval_directives_model *);
70 int oval_directives_model_import(struct oval_directives_model *, char *);
74 struct oval_generator *oval_directives_model_get_generator(struct oval_directives_model *);
78 struct oval_result_directives *oval_directives_model_get_defdirs(struct oval_directives_model *);
82 struct oval_result_directives *oval_directives_model_get_classdir(struct oval_directives_model *, oval_definition_class_t);
86 struct oval_result_directives *oval_directives_model_get_new_classdir(struct oval_directives_model *, oval_definition_class_t);
90 int oval_directives_model_export(struct oval_directives_model *, const char *);
91 
92 
93 
107 void oval_result_directives_free(struct oval_result_directives *);
112 void oval_result_directives_set_reported(struct oval_result_directives *, int flag, bool val);
121 void oval_result_directives_set_included(struct oval_result_directives *, bool);
125 bool oval_result_directives_get_reported(struct oval_result_directives *, oval_result_t);
129 bool oval_result_directives_get_included(struct oval_result_directives *);
133 oval_result_directive_content_t oval_result_directives_get_content(struct oval_result_directives *, oval_result_t);
134 
135 #endif /* OVAL_DIRECTIVES_H_ */
136 
137