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 #include "oval_definitions_impl.h"
00035 #include "oval_system_characteristics_impl.h"
00036 #include "../common/util.h"
00037
00038 OSCAP_HIDDEN_START;
00039
00040 int oval_result_system_parse
00041 (xmlTextReaderPtr, struct oval_parser_context *, struct oval_syschar_model *, oscap_consumer_func, void *);
00042 xmlNode *oval_result_system_to_dom
00043 (struct oval_result_system *, struct oval_results_model *, struct oval_result_directives *, xmlDocPtr, xmlNode *);
00044
00045 struct oval_result_test *get_oval_result_test_new(struct oval_result_system *, struct oval_test *);
00046
00047 int oval_result_definition_parse
00048 (xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_system *, oscap_consumer_func, void *);
00049 struct oval_result_definition *make_result_definition_from_oval_definition(struct oval_result_system *,
00050 struct oval_definition *);
00051 xmlNode *oval_result_definition_to_dom(struct oval_result_definition *, oval_result_directive_content_t, xmlDocPtr,
00052 xmlNode *);
00053
00054 struct oval_result_test *make_result_test_from_oval_test
00055 (struct oval_result_system *system, struct oval_test *oval_test);
00056 int oval_result_test_parse_tag
00057 (xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_system *, oscap_consumer_func, void *);
00058 xmlNode *oval_result_test_to_dom(struct oval_result_test *, xmlDocPtr, xmlNode *);
00059
00060 int oval_result_directives_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_directives *);
00061 int oval_result_directives_to_dom(struct oval_result_directives *, xmlDoc *, xmlNode *);
00062
00063 int oval_result_item_parse_tag
00064 (xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_system *, oscap_consumer_func, void *);
00065 xmlNode *oval_result_item_to_dom(struct oval_result_item *, xmlDocPtr, xmlNode *);
00066
00067 struct oval_result_criteria_node *make_result_criteria_node_from_oval_criteria_node
00068 (struct oval_result_system *, struct oval_criteria_node *);
00069
00070 int oval_result_criteria_node_parse
00071 (xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_system *, oscap_consumer_func, void *);
00072 xmlNode *oval_result_criteria_node_to_dom(struct oval_result_criteria_node *, xmlDocPtr, xmlNode *);
00073
00074 oval_result_t oval_result_parse(xmlTextReaderPtr, char *, oval_result_t);
00075
00076 struct oval_result_definition *oval_result_system_get_new_definition(struct oval_result_system *,
00077 struct oval_definition *);
00078 struct oval_result_test *oval_result_system_get_test(struct oval_result_system *, char *);
00079
00080
00081
00082 struct oresults {
00083 int true_cnt;
00084 int false_cnt;
00085 int unknown_cnt;
00086 int error_cnt;
00087 int noteval_cnt;
00088 int notappl_cnt;
00089 };
00090
00091 int ores_add_res(struct oresults *ores, oval_result_t res);
00092 void ores_clear(struct oresults *ores);
00093 oval_result_t ores_get_result_bychk(struct oresults *ores, oval_check_t check);
00094 oval_result_t ores_get_result_byopr(struct oresults *ores, oval_operator_t op);
00095
00096 OSCAP_HIDDEN_END;
00097
00098 #endif