Open SCAP Library

oval_system_characteristics_impl.h
Go to the documentation of this file.
1
8 /*
9 * Copyright 2009,2010,2011 Red Hat Inc., Durham, North Carolina.
10 * All Rights Reserved.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Authors:
27 * "David Niemoller" <David.Niemoller@g2-inc.com>
28 * "Peter Vrabec" <pvrabec@redhat.com>
29 */
30
31 #ifndef OVAL_SYSCHAR_IMPL
32 #define OVAL_SYSCHAR_IMPL
33
34 #include "public/oval_system_characteristics.h"
35 #include "oval_parser_impl.h"
36 #include "adt/oval_smc_impl.h"
37 #include "../common/util.h"
38
39 OSCAP_HIDDEN_START;
40
41 /* sysint */
42 typedef void (*oval_sysint_consumer) (struct oval_sysint *, void *);
43 int oval_sysint_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysint_consumer, void *);
44 void oval_sysint_to_dom(struct oval_sysint *, xmlDoc *, xmlNode *);
45
46 /* sysinfo */
47 void oval_sysinfo_to_dom(struct oval_sysinfo *, xmlDoc *, xmlNode *);
48 int oval_sysinfo_parse_tag(xmlTextReaderPtr reader, struct oval_parser_context *);
49
50 /* sysitem */
51 void oval_sysitem_to_dom(struct oval_sysitem *, xmlDoc *, xmlNode *);
52 int oval_sysitem_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, void *usr);
53
54 /* syschar */
55 void oval_syschar_to_dom(struct oval_syschar *, xmlDoc *, xmlNode *);
56 int oval_syschar_parse_tag(xmlTextReaderPtr, struct oval_parser_context *context, void *);
57 oval_syschar_collection_flag_t oval_syschar_flag_parse(xmlTextReaderPtr, char *, oval_syschar_collection_flag_t);
58 oval_syschar_status_t oval_syschar_status_parse(xmlTextReaderPtr, char *, oval_syschar_status_t);
59 struct oval_syschar_model *oval_syschar_get_model(struct oval_syschar *syschar);
60
61 /* sysent */
62 typedef void (*oval_sysent_consumer) (struct oval_sysent *, void *client);
63 int oval_sysent_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysent_consumer, void *);
64 void oval_sysent_to_dom(struct oval_sysent *sysent, xmlDoc * doc, xmlNode * tag_parent);
65 void oval_sysent_to_print(struct oval_sysent *, char *, int);
66
67 /* syschar_model */
68 typedef bool oval_syschar_resolver(struct oval_syschar *, void *);
69 xmlNode *oval_syschar_model_to_dom(struct oval_syschar_model *, xmlDocPtr, xmlNode *, oval_syschar_resolver, void *, bool);
70 void oval_syschar_model_reset(struct oval_syschar_model *model);
71
72 struct oval_syschar *oval_syschar_model_get_new_syschar(struct oval_syschar_model *, struct oval_object *);
73 struct oval_sysitem *oval_syschar_model_get_new_sysitem(struct oval_syschar_model *, const char *id);
74 void oval_syschar_model_add_syschar(struct oval_syschar_model *model, struct oval_syschar *syschar);
75 void oval_syschar_model_add_sysitem(struct oval_syschar_model *model, struct oval_sysitem *sysitem);
76
77 void oval_syschar_model_set_schema(struct oval_syschar_model *model, const char * schema);
78 const char * oval_syschar_model_get_schema(struct oval_syschar_model * model);
79
80 struct oval_syschar_iterator *oval_syschar_iterator_new(struct oval_smc *mapping);
81 int oval_syschar_get_variable_instance_hint(const struct oval_syschar *syschar);
82 void oval_syschar_set_variable_instance_hint(struct oval_syschar *syschar, int variable_instance_hint_in);
83 const char *oval_syschar_get_id(const struct oval_syschar *syschar);
84
85 OSCAP_HIDDEN_END;
86
87 #endif
oval_syschar_model
OVAL System Characteristics model.
Definition: oval_sysModel.c:54
oval_sysinfo
General instrumented host description.
Definition: oval_sysInfo.c:45
oval_syschar_status_t
oval_syschar_status_t
System characteristics status.
Definition: oval_system_characteristics.h:60
oval_sysitem
Each instance of Oval_sysitem represents one item.
Definition: oval_sysItem.c:45
oval_system_characteristics.h
oval_sysent
Definition: oval_sysEnt.c:48
oval_sysint
Network interface description.
Definition: oval_sysInterface.c:45
oval_syschar_collection_flag_t
oval_syschar_collection_flag_t
System characteristics result flag.
Definition: oval_system_characteristics.h:49
oval_syschar
Characteristics bound to an Oval_object.
Definition: oval_syschar.c:48
oval_parser_impl.h
Open Vulnerability and Assessment Language.
oval_parser_context
Definition: oval_parser_impl.h:45
oval_object
An Oval_object instance describes a set of items to look for on an instrumented host platform...
Definition: oval_object.c:46
oval_syschar_iterator
Definition: oval_system_characteristics.h:121