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_SYSCHAR_IMPL
00032 #define OVAL_SYSCHAR_IMPL
00033
00034 #include "public/oval_system_characteristics.h"
00035 #include "oval_parser_impl.h"
00036 #include "adt/oval_smc_impl.h"
00037 #include "../common/util.h"
00038
00039 OSCAP_HIDDEN_START;
00040
00041
00042 typedef void (*oval_sysint_consumer) (struct oval_sysint *, void *);
00043 int oval_sysint_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysint_consumer, void *);
00044 void oval_sysint_to_dom(struct oval_sysint *, xmlDoc *, xmlNode *);
00045
00046
00047 void oval_sysinfo_to_dom(struct oval_sysinfo *, xmlDoc *, xmlNode *);
00048 int oval_sysinfo_parse_tag(xmlTextReaderPtr reader, struct oval_parser_context *);
00049
00050
00051 void oval_sysitem_to_dom(struct oval_sysitem *, xmlDoc *, xmlNode *);
00052 int oval_sysitem_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, void *usr);
00053
00054
00055 void oval_syschar_to_dom(struct oval_syschar *, xmlDoc *, xmlNode *);
00056 int oval_syschar_parse_tag(xmlTextReaderPtr, struct oval_parser_context *context, void *);
00057 oval_syschar_collection_flag_t oval_syschar_flag_parse(xmlTextReaderPtr, char *, oval_syschar_collection_flag_t);
00058 oval_syschar_status_t oval_syschar_status_parse(xmlTextReaderPtr, char *, oval_syschar_status_t);
00059 struct oval_syschar_model *oval_syschar_get_model(struct oval_syschar *syschar);
00060
00061
00062 typedef void (*oval_sysent_consumer) (struct oval_sysent *, void *client);
00063 int oval_sysent_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysent_consumer, void *);
00064 void oval_sysent_to_dom(struct oval_sysent *sysent, xmlDoc * doc, xmlNode * tag_parent);
00065 void oval_sysent_to_print(struct oval_sysent *, char *, int);
00066
00067
00068 typedef bool oval_syschar_resolver(struct oval_syschar *, void *);
00069 xmlNode *oval_syschar_model_to_dom(struct oval_syschar_model *, xmlDocPtr, xmlNode *, oval_syschar_resolver, void *, bool);
00070 void oval_syschar_model_reset(struct oval_syschar_model *model);
00071
00072 struct oval_syschar *oval_syschar_model_get_new_syschar(struct oval_syschar_model *, struct oval_object *);
00073 struct oval_sysitem *oval_syschar_model_get_new_sysitem(struct oval_syschar_model *, const char *id);
00074 void oval_syschar_model_add_syschar(struct oval_syschar_model *model, struct oval_syschar *syschar);
00075 void oval_syschar_model_add_sysitem(struct oval_syschar_model *model, struct oval_sysitem *sysitem);
00076
00077 void oval_syschar_model_set_schema(struct oval_syschar_model *model, const char * schema);
00078 const char * oval_syschar_model_get_schema(struct oval_syschar_model * model);
00079
00080 struct oval_syschar_iterator *oval_syschar_iterator_new(struct oval_smc *mapping);
00081 int oval_syschar_get_variable_instance_hint(const struct oval_syschar *syschar);
00082 void oval_syschar_set_variable_instance_hint(struct oval_syschar *syschar, int variable_instance_hint_in);
00083 const char *oval_syschar_get_id(const struct oval_syschar *syschar);
00084
00085 OSCAP_HIDDEN_END;
00086
00087 #endif