Open SCAP Library
/home/pvrabec/project/openscap/openscap-0.8.0/src/OVAL/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_definitions_impl.h"
00036 #include "../common/util.h"
00037 
00038 OSCAP_HIDDEN_START;
00039 
00040 /* sysint */
00041 typedef void (*oval_sysint_consumer) (struct oval_sysint *, void *);
00042 int oval_sysint_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysint_consumer, void *);
00043 void oval_sysint_to_dom(struct oval_sysint *, xmlDoc *, xmlNode *);
00044 
00045 /* sysinfo */
00046 void oval_sysinfo_to_dom(struct oval_sysinfo *, xmlDoc *, xmlNode *);
00047 int oval_sysinfo_parse_tag(xmlTextReaderPtr reader, struct oval_parser_context *);
00048 
00049 /* sysitem */
00050 void oval_sysitem_to_dom(struct oval_sysitem *, xmlDoc *, xmlNode *);
00051 int oval_sysitem_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, void *usr);
00052 
00053 /* syschar */
00054 void oval_syschar_to_dom(struct oval_syschar *, xmlDoc *, xmlNode *);
00055 int oval_syschar_parse_tag(xmlTextReaderPtr, struct oval_parser_context *context, void *);
00056 oval_syschar_collection_flag_t oval_syschar_flag_parse(xmlTextReaderPtr, char *, oval_syschar_collection_flag_t);
00057 oval_syschar_status_t oval_syschar_status_parse(xmlTextReaderPtr, char *, oval_syschar_status_t);
00058 struct oval_syschar_model *oval_syschar_get_model(struct oval_syschar *syschar);
00059 
00060 /* sysent */
00061 typedef void (*oval_sysent_consumer) (struct oval_sysent *, void *client);
00062 int oval_sysent_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysent_consumer, void *);
00063 void oval_sysent_to_dom(struct oval_sysent *sysent, xmlDoc * doc, xmlNode * tag_parent);
00064 void oval_sysent_to_print(struct oval_sysent *, char *, int);
00065 
00066 /* syschar_model */
00067 typedef bool oval_syschar_resolver(struct oval_syschar *, void *);
00068 xmlNode *oval_syschar_model_to_dom(struct oval_syschar_model *, xmlDocPtr, xmlNode *, oval_syschar_resolver, void *);
00069 void oval_syschar_model_reset(struct oval_syschar_model *model);
00070 
00071 struct oval_syschar *oval_syschar_model_get_new_syschar(struct oval_syschar_model *, struct oval_object *);
00072 struct oval_sysitem *oval_syschar_model_get_new_sysitem(struct oval_syschar_model *, const char *id);
00073 void oval_syschar_model_add_syschar(struct oval_syschar_model *model, struct oval_syschar *syschar);
00074 void oval_syschar_model_add_sysitem(struct oval_syschar_model *model, struct oval_sysitem *sysitem);
00075 
00076 void oval_syschar_model_set_schema(struct oval_syschar_model *model, const char * schema);
00077 const char * oval_syschar_model_get_schema(struct oval_syschar_model * model);
00078 
00079 OSCAP_HIDDEN_END;
00080 
00081 #endif