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_AGENT_API_IMPL_H_
00031 #define OVAL_AGENT_API_IMPL_H_
00032
00033 #include "public/oval_agent_api.h"
00034 #include "oval_definitions_impl.h"
00035 #include "../common/util.h"
00036
00037 OSCAP_HIDDEN_START;
00038
00039 #define OVAL_COMMON_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-common-5"
00040 #define OVAL_SYSCHAR_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"
00041 #define OVAL_RESULTS_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-results-5"
00042 #define OVAL_DEFINITIONS_NAMESPACE BAD_CAST "http://oval.mitre.org/XMLSchema/oval-definitions-5"
00043 #define OVAL_DIGSIG_NAMESPACE BAD_CAST "http://www.w3.org/2000/09/xmldsig#"
00044
00045 struct oval_definition *oval_definition_get_new(struct oval_definition_model *, char *);
00046
00047 typedef bool oval_definitions_resolver(struct oval_definition *, void *);
00048
00049 xmlNode *oval_definitions_to_dom
00050 (struct oval_definition_model *definition_model, xmlDocPtr doc, xmlNode * parent,
00051 oval_definitions_resolver resolver, void *user_arg);
00052
00053 struct oval_test *oval_test_get_new(struct oval_definition_model *, char *);
00054 struct oval_object *oval_object_get_new(struct oval_definition_model *, char *);
00055 struct oval_state *oval_state_get_new(struct oval_definition_model *, char *);
00056 struct oval_variable *oval_variable_get_new(struct oval_definition_model *, char *, oval_variable_type_t type);
00057
00058 struct oval_definition *oval_definition_clone
00059 (struct oval_definition_model *new_model, struct oval_definition *old_definition);
00060 struct oval_test *oval_test_clone(struct oval_definition_model *new_model, struct oval_test *old_test);
00061 struct oval_object *oval_object_clone(struct oval_definition_model *new_model, struct oval_object *old_object);
00062 struct oval_state *oval_state_clone(struct oval_definition_model *new_model, struct oval_state *old_state);
00063 struct oval_variable *oval_variable_clone(struct oval_definition_model *new_model, struct oval_variable *old_variable);
00064
00065 struct oval_syschar *oval_syschar_get_new(struct oval_syschar_model *, struct oval_object *);
00066 struct oval_syschar_item *oval_syschar_item_get_new(struct oval_syschar_model *, char *);
00067 struct oval_sysdata *oval_sysdata_get_new(struct oval_syschar_model *model, char *id);
00068
00069 typedef bool oval_syschar_resolver(struct oval_syschar *, void *);
00070
00071 xmlNode *oval_syschar_model_to_dom(struct oval_syschar_model *, xmlDocPtr, xmlNode *, oval_syschar_resolver, void *);
00072
00073 OSCAP_HIDDEN_END;
00074
00075 #endif