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_H_
00032 #define OVAL_RESULTS_H_
00033
00034 #include "oval_definitions.h"
00035 #include "oval_system_characteristics.h"
00036
00037 typedef enum {
00038 OVAL_RESULT_TRUE,
00039 OVAL_RESULT_FALSE,
00040 OVAL_RESULT_UNKNOWN,
00041 OVAL_RESULT_ERROR,
00042 OVAL_RESULT_NOT_EVALUATED,
00043 OVAL_RESULT_NOT_APPLICABLE
00044 } oval_result_enum;
00045
00046 struct oval_result_item;
00047 struct oval_iterator_result_item;
00048
00049 struct oval_result_test;
00050 struct oval_iterator_result_test;
00051
00052 struct oval_result_criteria_node;
00053 struct oval_iterator_result_criteria_node;
00054
00055 struct oval_result_directives;
00056
00057 struct oval_result;
00058 struct oval_iterator_result;
00059
00060 int oval_iterator_result_item_has_more(struct oval_iterator_result_item *);
00061 struct oval_result_item *oval_iterator_result_item_next(struct
00062 oval_iterator_result_item
00063 *);
00064
00065 struct oval_sysdata *oval_result_item_sysdata(struct oval_result_item *);
00066 oval_result_enum oval_result_item_result(struct oval_result_item *);
00067 char *oval_result_item_message(struct oval_result_item *);
00068
00069 int oval_iterator_result_test_has_more(struct oval_iterator_result_test *);
00070 struct oval_result_test *oval_iterator_result_test_next(struct
00071 oval_iterator_result_test
00072 *);
00073
00074 struct oval_test *oval_result_test_test(struct oval_result_test *);
00075 oval_check_enum oval_result_test_check(struct oval_result_test *);
00076 oval_result_enum oval_result_test_result(struct oval_result_test *);
00077 char *oval_result_test_message(struct oval_result_test *);
00078 struct oval_iterator_result_item *oval_result_test_items(struct oval_result_test
00079 *);
00080
00081 int oval_iterator_result_criteria_node_has_more(struct
00082 oval_iterator_result_criteria_node
00083 *);
00084 struct oval_result_criteria_node *oval_iterator_result_criteria_node_next(struct
00085 oval_iterator_result_criteria_node
00086 *);
00087
00088 oval_criteria_node_type_enum oval_result_criteria_node_type(struct
00089 oval_result_criteria_node
00090 *);
00091 oval_result_enum oval_result_criteria_node_result(struct
00092 oval_result_criteria_node *);
00093 oval_operator_enum oval_result_criteria_node_operator(struct oval_result_criteria_node *);
00094 struct oval_iterator_criteria_node *oval_result_criteria_node_subnodes(struct oval_result_criteria_node *);
00095 struct oval_result_test *oval_result_criteria_node_test(struct oval_result_criteria_node *);
00096 struct oval_result *oval_result_criteria_node_extends(struct oval_result_criteria_node *);
00097
00098 int oval_result_directives_definition_true(struct oval_result_directives *);
00099 int oval_result_directives_definition_false(struct oval_result_directives *);
00100 int oval_result_directives_definition_unknown(struct oval_result_directives *);
00101 int oval_result_directives_definition_error(struct oval_result_directives *);
00102 int oval_result_directives_definition_not_evaluated(struct
00103 oval_result_directives *);
00104 int oval_result_directives_definition_not_applicable(struct
00105 oval_result_directives *);
00106
00107 int oval_iterator_result_has_more(struct oval_iterator_result *);
00108 struct oval_result *oval_iterator_result_next(struct oval_iterator_result *);
00109
00110 struct oval_definition *oval_result_definition(struct oval_result *);
00111 oval_result_enum oval_result_result(struct oval_result *);
00112 char *oval_result_message(struct oval_result *);
00113 struct oval_result_directives *oval_result_directives(struct oval_result *);
00114 struct oval_result_criteria_node *oval_result_criteria(struct oval_result *);
00115
00116 #endif