00001 #ifndef OVAL_RESULTS_IMPL_H_
00002 #define OVAL_RESULTS_IMPL_H_
00003 #include <liboval/oval_results.h>
00004 #include "oval_definitions_impl.h"
00005 #include "oval_system_characteristics_impl.h"
00006
00007 void set_oval_result_directives_definition_true (struct oval_result_directives_s*, int);
00008 void set_oval_result_directives_definition_false (struct oval_result_directives_s*, int);
00009 void set_oval_result_directives_definition_unknown (struct oval_result_directives_s*, int);
00010 void set_oval_result_directives_definition_error (struct oval_result_directives_s*, int);
00011 void set_oval_result_directives_definition_not_evaluated (struct oval_result_directives_s*, int);
00012 void set_oval_result_directives_definition_not_applicable(struct oval_result_directives_s*, int);
00013
00014 struct oval_result_item_s*oval_result_item_new();
00015 void oval_result_item_free(struct oval_result_item_s*);
00016
00017 void set_oval_result_item_sysdata(struct oval_result_item_s*, struct oval_sysdata_s*);
00018 void set_oval_result_item_result (struct oval_result_item_s*, oval_result_enum );
00019 void set_oval_result_item_message(struct oval_result_item_s*, char*);
00020
00021 struct oval_result_test_s *oval_result_test_new();
00022 void oval_result_test_free(struct oval_result_test_s*);
00023
00024 void set_oval_result_test_test (struct oval_result_test_s*, struct oval_test_s*);
00025 void set_oval_result_test_check (struct oval_result_test_s*, oval_check_enum );
00026 void set_oval_result_test_result (struct oval_result_test_s*, oval_result_enum );
00027 void set_oval_result_test_message(struct oval_result_test_s*, char*);
00028 void add_oval_result_test_items (struct oval_result_test_s*, struct oval_result_item_s*);
00029
00030 struct oval_result_criteria_node_s *oval_result_criteria_node_new();
00031 void oval_result_criteria_node_free(struct oval_result_criteria_node_s*);
00032
00033 void set_oval_result_criteria_node_type (struct oval_result_criteria_node_s*, oval_criteria_node_type_enum );
00034 void set_oval_result_criteria_node_result (struct oval_result_criteria_node_s*, oval_result_enum );
00035 void set_oval_result_criteria_node_operator(struct oval_result_criteria_node_s*, oval_operator_enum );
00036 void add_oval_result_criteria_node_subnode (struct oval_result_criteria_node_s*, struct oval_criteria_node_s*);
00037 void set_oval_result_criteria_node_test (struct oval_result_criteria_node_s*, struct oval_result_test_s*);
00038 void set_oval_result_criteria_node_extends (struct oval_result_criteria_node_s*, struct oval_result_s*);
00039
00040 struct oval_result_s *oval_result_new();
00041 void oval_result_free(struct oval_result_s*);
00042
00043 void set_oval_result_definition(struct oval_result_s*, struct oval_definition_s*);
00044 void set_oval_result_result (struct oval_result_s*, oval_result_enum );
00045 void set_oval_result_message (struct oval_result_s*, char*);
00046 void set_oval_result_directives(struct oval_result_s*, struct oval_result_directives_s*);
00047 void set_oval_result_criteria (struct oval_result_s*, struct oval_result_criteria_node_s*);
00048
00049 #endif