00001 #ifndef OVAL_RESULTS_H_
00002 #define OVAL_RESULTS_H_
00003 #include <liboval/oval_definitions.h>
00004 #include <liboval/oval_system_characteristics.h>
00005
00006 typedef enum{
00007 OVAL_RESULT_TRUE,
00008 OVAL_RESULT_FALSE,
00009 OVAL_RESULT_UNKNOWN,
00010 OVAL_RESULT_ERROR,
00011 OVAL_RESULT_NOT_EVALUATED,
00012 OVAL_RESULT_NOT_APPLICABLE
00013 } oval_result_enum;
00014
00015 struct oval_result_item_s;
00016 struct oval_iterator_result_item_s;
00017
00018 struct oval_result_test_s;
00019 struct oval_iterator_result_test_s;
00020
00021 struct oval_result_criteria_node_s;
00022 struct oval_iterator_result_criteria_node_s;
00023
00024 struct oval_result_directives_s;
00025
00026 struct oval_result_s;
00027 struct oval_iterator_result_s;
00028
00029 int oval_iterator_result_item_has_more (struct oval_iterator_result_item_s*);
00030 struct oval_result_item_s *oval_iterator_result_item_next(struct oval_iterator_result_item_s*);
00031
00032 struct oval_sysdata_s *oval_result_item_sysdata (struct oval_result_item_s*);
00033 oval_result_enum oval_result_item_result (struct oval_result_item_s*);
00034 char *oval_result_item_message (struct oval_result_item_s*);
00035
00036 int oval_iterator_result_test_has_more (struct oval_iterator_result_test_s*);
00037 struct oval_result_test_s *oval_iterator_result_test_next (struct oval_iterator_result_test_s*);
00038
00039 struct oval_test_s *oval_result_test_test (struct oval_result_test_s*);
00040 oval_check_enum oval_result_test_check (struct oval_result_test_s*);
00041 oval_result_enum oval_result_test_result (struct oval_result_test_s*);
00042 char *oval_result_test_message (struct oval_result_test_s*);
00043 struct oval_iterator_result_item_s *oval_result_test_items(struct oval_result_test_s*);
00044
00045 int oval_iterator_result_criteria_node_has_more (struct oval_iterator_result_criteria_node_s*);
00046 struct oval_result_criteria_node_s *oval_iterator_result_criteria_node_next(struct oval_iterator_result_criteria_node_s*);
00047
00048 oval_criteria_node_type_enum oval_result_criteria_node_type (struct oval_result_criteria_node_s*);
00049 oval_result_enum oval_result_criteria_node_result (struct oval_result_criteria_node_s*);
00050 oval_operator_enum oval_result_criteria_node_operator (struct oval_result_criteria_node_s*);
00051 struct oval_iterator_criteria_node_s *oval_result_criteria_node_subnodes(struct oval_result_criteria_node_s*);
00052 struct oval_result_test_s *oval_result_criteria_node_test (struct oval_result_criteria_node_s*);
00053 struct oval_result_s *oval_result_criteria_node_extends (struct oval_result_criteria_node_s*);
00054
00055 int oval_result_directives_definition_true (struct oval_result_directives_s*);
00056 int oval_result_directives_definition_false (struct oval_result_directives_s*);
00057 int oval_result_directives_definition_unknown (struct oval_result_directives_s*);
00058 int oval_result_directives_definition_error (struct oval_result_directives_s*);
00059 int oval_result_directives_definition_not_evaluated (struct oval_result_directives_s*);
00060 int oval_result_directives_definition_not_applicable(struct oval_result_directives_s*);
00061
00062 int oval_iterator_result_has_more (struct oval_iterator_result_s*);
00063 struct oval_result_s *oval_iterator_result_next(struct oval_iterator_result_s*);
00064
00065 struct oval_definition_s *oval_result_definition (struct oval_result_s*);
00066 oval_result_enum oval_result_result (struct oval_result_s*);
00067 char *oval_result_message (struct oval_result_s*);
00068 struct oval_result_directives_s *oval_result_directives (struct oval_result_s*);
00069 struct oval_result_criteria_node_s *oval_result_criteria (struct oval_result_s*);
00070
00071 #endif