Open SCAP Library
|
00001 00008 /* 00009 * Copyright 2009 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 */ 00029 00030 #ifndef OVAL_SYSCHAR_IMPL 00031 #define OVAL_SYSCHAR_IMPL 00032 00033 #include "public/oval_system_characteristics.h" 00034 #include "oval_definitions_impl.h" 00035 #include "../common/util.h" 00036 00037 OSCAP_HIDDEN_START; 00038 00039 extern const char NAMESPACE_OVALSYS[]; 00040 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_print(struct oval_sysint *, char *, int); 00044 void oval_sysint_to_dom(struct oval_sysint *, xmlDoc *, xmlNode *); 00045 00046 void oval_sysinfo_to_print(struct oval_sysinfo *, char *, int); 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 void oval_sysitem_to_print(struct oval_sysitem *, char *, int); 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 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 00059 typedef void (*oval_sysent_consumer) (struct oval_sysent *, void *client); 00060 int oval_sysent_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysent_consumer, void *); 00061 void oval_sysent_to_dom(struct oval_sysent *sysent, xmlDoc * doc, xmlNode * tag_parent); 00062 void oval_sysent_to_print(struct oval_sysent *, char *, int); 00063 00064 struct oval_syschar_model *oval_syschar_get_model(struct oval_syschar *syschar); 00065 00066 void oval_syschar_model_add_syschar(struct oval_syschar_model *model, struct oval_syschar *syschar); 00067 void oval_syschar_model_add_sysitem(struct oval_syschar_model *model, struct oval_sysitem *sysitem); 00068 00069 OSCAP_HIDDEN_END; 00070 00071 #endif