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_IMPL_H_
00032 #define OVAL_RESULTS_IMPL_H_
00033
00034 #include "api/oval_results.h"
00035 #include "oval_definitions_impl.h"
00036 #include "oval_system_characteristics_impl.h"
00037
00038 struct oval_result_system *oval_result_system_new
00039 (struct oval_syschar_model *);
00040 void oval_result_system_free(struct oval_result_system *);
00041 int oval_result_system_parse
00042 (xmlTextReaderPtr , struct oval_parser_context *,
00043 struct oval_syschar_model *,oscap_consumer_func, void*);
00044 xmlNode *oval_result_system_to_dom
00045 (struct oval_result_system *,
00046 struct oval_results_model *,
00047 struct oval_result_directives *,
00048 xmlDocPtr, xmlNode *);
00049
00050 struct oval_result_definition *get_oval_result_definition (struct oval_result_system *, char *);
00051 struct oval_result_definition *get_oval_result_definition_new
00052 (struct oval_result_system *, struct oval_definition *);
00053 struct oval_result_test *get_oval_result_test (struct oval_result_system *, char *);
00054 struct oval_result_test *get_oval_result_test_new
00055 (struct oval_result_system *, struct oval_test *);
00056
00057
00058 struct oval_result_definition *oval_result_definition_new(struct oval_result_system *, char *);
00059 void oval_result_definition_free(struct oval_result_definition *);
00060
00061
00062 int oval_result_definition_parse
00063 (xmlTextReaderPtr , struct oval_parser_context *,struct oval_result_system *,
00064 oscap_consumer_func, void*);
00065 struct oval_result_definition *make_result_definition_from_oval_definition(struct oval_result_system *, struct oval_definition *);
00066 xmlNode *oval_result_definition_to_dom
00067 (struct oval_result_definition *, oval_result_directive_content_t,
00068 xmlDocPtr, xmlNode *);
00069
00070 struct oval_result_test *oval_result_test_new(struct oval_result_system *, char *);
00071 void oval_result_test_free(struct oval_result_test *);
00072 struct oval_result_test *make_result_test_from_oval_test
00073 (struct oval_result_system *system, struct oval_test *oval_test);
00074 int oval_result_test_parse_tag
00075 (xmlTextReaderPtr , struct oval_parser_context *,
00076 struct oval_result_system *,
00077 oscap_consumer_func, void *);
00078 xmlNode *oval_result_test_to_dom
00079 (struct oval_result_test *, xmlDocPtr, xmlNode *);
00080
00081 int oval_result_directives_parse_tag
00082 (xmlTextReaderPtr, struct oval_parser_context *, struct oval_result_directives *);
00083 int oval_result_directives_to_dom
00084 (struct oval_result_directives *, xmlDoc *, xmlNode *);
00085
00086 struct oval_result_item *oval_result_item_new
00087 (struct oval_result_system *, char *);
00088 void oval_result_item_free(struct oval_result_item *);
00089 int oval_result_item_parse_tag
00090 (xmlTextReaderPtr , struct oval_parser_context *,
00091 struct oval_result_system *,
00092 oscap_consumer_func, void*);
00093 xmlNode *oval_result_item_to_dom
00094 (struct oval_result_item *, xmlDocPtr , xmlNode *);
00095
00096 void oval_result_item_set_result(struct oval_result_item *, oval_result_t);
00097 void oval_result_item_add_message(struct oval_result_item *, struct oval_message *);
00098
00099 struct oval_result_test *oval_result_test_new();
00100 void oval_result_test_free(struct oval_result_test *);
00101
00102 void oval_result_test_set_result(struct oval_result_test *, oval_result_t);
00103 void oval_result_test_set_message(struct oval_result_test *, struct oval_message *);
00104 void oval_result_test_add_item(struct oval_result_test *, struct oval_result_item *);
00105 void oval_result_test_add_binding(struct oval_result_test *, struct oval_variable_binding *);
00106
00107
00108 struct oval_result_criteria_node *oval_result_criteria_node_new
00109 (oval_criteria_node_type_t, int, ...);
00110 void oval_result_criteria_node_free(struct oval_result_criteria_node *);
00111 struct oval_result_criteria_node *make_result_criteria_node_from_oval_criteria_node
00112 (struct oval_result_system *, struct oval_criteria_node *);
00113
00114 int oval_result_criteria_node_parse
00115 (xmlTextReaderPtr , struct oval_parser_context *,
00116 struct oval_result_system *, oscap_consumer_func, void*);
00117 xmlNode *oval_result_criteria_node_to_dom
00118 (struct oval_result_criteria_node *, xmlDocPtr, xmlNode *);
00119
00120 void oval_result_criteria_node_set_result(struct oval_result_criteria_node *, oval_result_t);
00121 void oval_result_criteria_node_set_negate(struct oval_result_criteria_node *, bool);
00122 void oval_result_criteria_node_set_operator(struct oval_result_criteria_node *, oval_operator_t);
00123 void oval_result_criteria_node_add_subnode(struct oval_result_criteria_node *, struct oval_result_criteria_node *);
00124 void oval_result_criteria_node_set_test(struct oval_result_criteria_node *, struct oval_result_test *);
00125 void oval_result_criteria_node_set_extends(struct oval_result_criteria_node *, struct oval_result_definition *);
00126
00127 oval_result_t oval_result_parse
00128 (xmlTextReaderPtr, char *, oval_result_t);
00129
00130 #endif