Debian Codegraph @

src/OVAL/oval_system_characteristics_impl.h

raw symbols SCIP
1 /**
2 * @file oval_system_characteristics_impl.h
3 * \brief Open Vulnerability and Assessment Language
4 *
5 * See more details at http://oval.mitre.org/
6 */
7
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 * Authors:
27 * "David Niemoller" <[email protected]>
28 * "Peter Vrabec" <[email protected]>
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
40 /* sysint */
41 typedef void (*oval_sysint_consumer) (struct oval_sysint *, void *);
42 int oval_sysint_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysint_consumer, void *);
43 void oval_sysint_to_dom(struct oval_sysint *, xmlDoc *, xmlNode *);
44
45 /* sysinfo */
46 void oval_sysinfo_to_dom(struct oval_sysinfo *, xmlDoc *, xmlNode *);
47 int oval_sysinfo_parse_tag(xmlTextReaderPtr reader, struct oval_parser_context *);
48
49 /* sysitem */
50 void oval_sysitem_to_dom(struct oval_sysitem *, xmlDoc *, xmlNode *);
51 int oval_sysitem_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, void *usr);
52
53 /* syschar */
54 void oval_syschar_to_dom(struct oval_syschar *, xmlDoc *, xmlNode *);
55 int oval_syschar_parse_tag(xmlTextReaderPtr, struct oval_parser_context *context, void *);
56 oval_syschar_collection_flag_t oval_syschar_flag_parse(xmlTextReaderPtr, char *, oval_syschar_collection_flag_t);
57 oval_syschar_status_t oval_syschar_status_parse(xmlTextReaderPtr, char *, oval_syschar_status_t);
58 struct oval_syschar_model *oval_syschar_get_model(struct oval_syschar *syschar);
59
60 /* sysent */
61 typedef void (*oval_sysent_consumer) (struct oval_sysent *, void *client);
62 int oval_sysent_parse_tag(xmlTextReaderPtr, struct oval_parser_context *, oval_sysent_consumer, void *);
63 void oval_sysent_to_dom(struct oval_sysent *sysent, xmlDoc * doc, xmlNode * tag_parent);
64 void oval_sysent_to_print(struct oval_sysent *, char *, int);
65
66 /* syschar_model */
67 typedef bool oval_syschar_resolver(struct oval_syschar *, void *);
68 xmlNode *oval_syschar_model_to_dom(struct oval_syschar_model *, xmlDocPtr, xmlNode *, oval_syschar_resolver, void *, bool);
69 void oval_syschar_model_reset(struct oval_syschar_model *model);
70
71 struct oval_syschar *oval_syschar_model_get_new_syschar(struct oval_syschar_model *, struct oval_object *);
72 struct oval_sysitem *oval_syschar_model_get_new_sysitem(struct oval_syschar_model *, const char *id);
73 void oval_syschar_model_add_syschar(struct oval_syschar_model *model, struct oval_syschar *syschar);
74 void oval_syschar_model_add_sysitem(struct oval_syschar_model *model, struct oval_sysitem *sysitem);
75
76 void oval_syschar_model_set_schema(struct oval_syschar_model *model, const char * schema);
77 const char * oval_syschar_model_get_schema(struct oval_syschar_model * model);
78
79 struct oval_syschar_iterator *oval_syschar_iterator_new(struct oval_smc *mapping);
80 int oval_syschar_get_variable_instance_hint(const struct oval_syschar *syschar);
81 void oval_syschar_set_variable_instance_hint(struct oval_syschar *syschar, int variable_instance_hint_in);
82 const char *oval_syschar_get_id(const struct oval_syschar *syschar);
83
84
85 #endif