Open SCAP Library

oval_system_characteristics_impl.h

Go to the documentation of this file.
00001 
00008 /*
00009  * Copyright 2009,2010,2011 Red Hat Inc., Durham, North Carolina.
00010  * All Rights Reserved.
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  * Authors:
00027  *      "David Niemoller" <David.Niemoller@g2-inc.com>
00028  *      "Peter Vrabec" <pvrabec@redhat.com>
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 /* sysint */
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 /* sysinfo */
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 /* sysitem */
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 /* syschar */
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 /* sysent */
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 /* syschar_model */
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
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines