00001
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
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