00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef OVAL_RESULTS_IMPL_H_
00032 #define OVAL_RESULTS_IMPL_H_
00033
00034 #include "api/oval_results.h"
00035 #include "oval_definitions_impl.h"
00036 #include "oval_system_characteristics_impl.h"
00037
00038 void set_oval_result_directives_definition_true(struct oval_result_directives *,
00039 int);
00040 void set_oval_result_directives_definition_false(struct oval_result_directives
00041 *, int);
00042 void set_oval_result_directives_definition_unknown(struct oval_result_directives
00043 *, int);
00044 void set_oval_result_directives_definition_error(struct oval_result_directives
00045 *, int);
00046 void set_oval_result_directives_definition_not_evaluated(struct
00047 oval_result_directives
00048 *, int);
00049 void set_oval_result_directives_definition_not_applicable(struct
00050 oval_result_directives
00051 *, int);
00052
00053 struct oval_result_item *oval_result_item_new();
00054 void oval_result_item_free(struct oval_result_item *);
00055
00056 void set_oval_result_item_sysdata(struct oval_result_item *,
00057 struct oval_sysdata *);
00058 void set_oval_result_item_result(struct oval_result_item *, oval_result_enum);
00059 void set_oval_result_item_message(struct oval_result_item *, char *);
00060
00061 struct oval_result_test *oval_result_test_new();
00062 void oval_result_test_free(struct oval_result_test *);
00063
00064 void set_oval_result_test_test(struct oval_result_test *, struct oval_test *);
00065 void set_oval_result_test_check(struct oval_result_test *, oval_check_enum);
00066 void set_oval_result_test_result(struct oval_result_test *, oval_result_enum);
00067 void set_oval_result_test_message(struct oval_result_test *, char *);
00068 void add_oval_result_test_items(struct oval_result_test *,
00069 struct oval_result_item *);
00070
00071 struct oval_result_criteria_node *oval_result_criteria_node_new();
00072 void oval_result_criteria_node_free(struct oval_result_criteria_node *);
00073
00074 void set_oval_result_criteria_node_type(struct oval_result_criteria_node *,
00075 oval_criteria_node_type_enum);
00076 void set_oval_result_criteria_node_result(struct oval_result_criteria_node *,
00077 oval_result_enum);
00078 void set_oval_result_criteria_node_operator(struct oval_result_criteria_node *, oval_operator_enum);
00079 void add_oval_result_criteria_node_subnode(struct oval_result_criteria_node *, struct oval_criteria_node *);
00080 void set_oval_result_criteria_node_test(struct oval_result_criteria_node *, struct oval_result_test *);
00081 void set_oval_result_criteria_node_extends(struct oval_result_criteria_node *, struct oval_result *);
00082
00083 struct oval_result *oval_result_new();
00084 void oval_result_free(struct oval_result *);
00085
00086 void set_oval_result_definition(struct oval_result *, struct oval_definition *);
00087 void set_oval_result_result(struct oval_result *, oval_result_enum);
00088 void set_oval_result_message(struct oval_result *, char *);
00089 void set_oval_result_directives(struct oval_result *,
00090 struct oval_result_directives *);
00091 void set_oval_result_criteria(struct oval_result *,
00092 struct oval_result_criteria_node *);
00093
00094 #endif