Open SCAP Library

oval_directives.h

Go to the documentation of this file.
00001 
00015 /*
00016  * Copyright 2011--2014 Red Hat Inc., Durham, North Carolina.
00017  * All Rights Reserved.
00018  *
00019  * This library is free software; you can redistribute it and/or
00020  * modify it under the terms of the GNU Lesser General Public
00021  * License as published by the Free Software Foundation; either
00022  * version 2.1 of the License, or (at your option) any later version.
00023  *
00024  * This library is distributed in the hope that it will be useful,
00025  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00026  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00027  * Lesser General Public License for more details.
00028  *
00029  * You should have received a copy of the GNU Lesser General Public
00030  * License along with this library; if not, write to the Free Software
00031  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00032  *
00033  * Authors:
00034  *      "David Niemoller" <David.Niemoller@g2-inc.com>
00035  */
00036 
00037 #ifndef OVAL_DIRECTIVES_H_
00038 #define OVAL_DIRECTIVES_H_
00039 
00040 #include "oscap.h"
00041 #include "oscap_source.h"
00042 #include "oval_types.h"
00043 
00048 typedef enum {
00049         OVAL_DIRECTIVE_CONTENT_UNKNOWN = 0, 
00050         OVAL_DIRECTIVE_CONTENT_THIN = 1,    
00051         OVAL_DIRECTIVE_CONTENT_FULL = 2     
00052 } oval_result_directive_content_t;
00053 
00054 
00059 struct oval_directives_model;
00060 
00064 struct oval_directives_model *oval_directives_model_new(void);
00068 void oval_directives_model_free(struct oval_directives_model *);
00069 
00074 int oval_directives_model_import_source(struct oval_directives_model *model, struct oscap_source *source);
00075 
00081 OSCAP_DEPRECATED(int oval_directives_model_import(struct oval_directives_model *, char *));
00082 
00086 struct oval_generator *oval_directives_model_get_generator(struct oval_directives_model *);
00090 struct oval_result_directives *oval_directives_model_get_defdirs(struct oval_directives_model *);
00094 struct oval_result_directives *oval_directives_model_get_classdir(struct oval_directives_model *, oval_definition_class_t);
00098 struct oval_result_directives *oval_directives_model_get_new_classdir(struct oval_directives_model *, oval_definition_class_t);
00102 int oval_directives_model_export(struct oval_directives_model *, const char *);
00103 
00104 
00105 
00110 struct oval_result_directives;
00115 struct oval_result_directives *oval_result_directives_new(void);
00119 void oval_result_directives_free(struct oval_result_directives *);
00124 void oval_result_directives_set_reported(struct oval_result_directives *, int flag, bool val);
00129 void oval_result_directives_set_content(struct oval_result_directives *, int flag, oval_result_directive_content_t);
00133 void oval_result_directives_set_included(struct oval_result_directives *, bool);
00137 bool oval_result_directives_get_reported(struct oval_result_directives *, oval_result_t);
00141 bool oval_result_directives_get_included(struct oval_result_directives *);
00145 oval_result_directive_content_t oval_result_directives_get_content(struct oval_result_directives *, oval_result_t);
00146 
00147 #endif                          /* OVAL_DIRECTIVES_H_ */
00148 
00149 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines