00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef OVAL_RESULTS_IMPL_H_
00031 #define OVAL_RESULTS_IMPL_H_
00032
00033 #include "public/oval_results.h"
00034
00035 #include "oval_definitions_impl.h"
00036 #include "oval_system_characteristics_impl.h"
00037
00038 #include "common/util.h"
00039
00040 OSCAP_HIDDEN_START;
00041
00042 int oval_result_system_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, void *);
00043 xmlNode *oval_result_system_to_dom(struct oval_result_system *, struct oval_results_model *, struct oval_directives_model *, xmlDocPtr, xmlNode *);
00044
00045 struct oval_result_test *oval_result_system_get_new_test(struct oval_result_system *, struct oval_test *);
00046
00047 int oval_result_definition_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, void *);
00048 struct oval_result_definition *make_result_definition_from_oval_definition(struct oval_result_system *,
00049 struct oval_definition *);
00050 xmlNode *oval_result_definition_to_dom(struct oval_result_definition *, oval_result_directive_content_t, xmlDocPtr, xmlNode *);
00051
00052 struct oval_result_test *make_result_test_from_oval_test(struct oval_result_system *system, struct oval_test *oval_test);
00053
00054 int oval_result_test_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, void *);
00055 xmlNode *oval_result_test_to_dom(struct oval_result_test *, xmlDocPtr, xmlNode *);
00056
00057
00058 int oval_result_item_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_system *, oscap_consumer_func, void *);
00059 xmlNode *oval_result_item_to_dom(struct oval_result_item *, xmlDocPtr, xmlNode *);
00060
00061 struct oval_result_criteria_node *make_result_criteria_node_from_oval_criteria_node(struct oval_result_system *, struct oval_criteria_node *);
00062
00063 int oval_result_criteria_node_parse(xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_system *, oscap_consumer_func, void *);
00064 xmlNode *oval_result_criteria_node_to_dom(struct oval_result_criteria_node *, xmlDocPtr, xmlNode *);
00065
00066 oval_result_t oval_result_parse(xmlTextReaderPtr, char *, oval_result_t);
00067
00068 struct oval_result_definition *oval_result_system_get_new_definition(struct oval_result_system *,
00069 struct oval_definition *);
00070 struct oval_result_test *oval_result_system_get_test(struct oval_result_system *, char *);
00071
00072 struct oresults {
00073 int true_cnt;
00074 int false_cnt;
00075 int unknown_cnt;
00076 int error_cnt;
00077 int noteval_cnt;
00078 int notappl_cnt;
00079 };
00080
00081 int ores_add_res(struct oresults *ores, oval_result_t res);
00082 void ores_clear(struct oresults *ores);
00083 oval_result_t ores_get_result_bychk(struct oresults *ores, oval_check_t check);
00084 oval_result_t ores_get_result_byopr(struct oresults *ores, oval_operator_t op);
00085
00086 void oval_results_model_add_system(struct oval_results_model *, struct oval_result_system *);
00087
00088 OSCAP_HIDDEN_END;
00089
00090 #endif