Open SCAP Library

unused.h
1 /*
2 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors:
20 * Lukas Kuklinek <lkuklinek@redhat.com>
21 */
22
23 #pragma once
24
25 #ifndef OPENSCAP_XCCDF_UNUSED_H_
26 #define OPENSCAP_XCCDF_UNUSED_H_
27
28 OSCAP_HIDDEN_START;
29
30 // Prototypes to supress compiler warnings
31 // these funcs are automatically generated but useless
32 struct xccdf_warning_iterator *xccdf_profile_get_warnings(const struct xccdf_profile *profile);
33 const char *xccdf_benchmark_get_extends(const struct xccdf_benchmark *);
34 bool xccdf_benchmark_get_hidden(const struct xccdf_benchmark *benchmark);
35 bool xccdf_benchmark_get_selected(const struct xccdf_benchmark *benchmark);
36 bool xccdf_benchmark_get_multiple(const struct xccdf_benchmark *benchmark);
37 bool xccdf_benchmark_get_prohibit_changes(const struct xccdf_benchmark *benchmark);
38 bool xccdf_benchmark_get_abstract(const struct xccdf_benchmark *benchmark);
39 bool xccdf_benchmark_get_interactive(const struct xccdf_benchmark *benchmark);
40 bool xccdf_benchmark_set_selected(struct xccdf_benchmark *item, bool newval);
41 bool xccdf_benchmark_set_abstract(struct xccdf_benchmark *item, bool newval);
42 bool xccdf_benchmark_set_hidden(struct xccdf_benchmark *item, bool newval);
43 bool xccdf_benchmark_set_interactive(struct xccdf_benchmark *item, bool newval);
44 bool xccdf_benchmark_set_multiple(struct xccdf_benchmark *item, bool newval);
45 bool xccdf_benchmark_set_prohibit_changes(struct xccdf_benchmark *item, bool newval);
46 bool xccdf_group_get_resolved(const struct xccdf_group *group);
47 bool xccdf_group_get_multiple(const struct xccdf_group *group);
48 bool xccdf_group_get_interactive(const struct xccdf_group *group);
49 bool xccdf_group_set_resolved(struct xccdf_group *item, bool newval);
50 bool xccdf_group_set_interactive(struct xccdf_group *item, bool newval);
51 bool xccdf_group_set_multiple(struct xccdf_group *item, bool newval);
52 bool xccdf_rule_set_resolved(struct xccdf_rule *item, bool newval);
53 bool xccdf_rule_get_resolved(const struct xccdf_rule *rule);
54 bool xccdf_rule_get_interactive(const struct xccdf_rule *rule);
55 bool xccdf_value_get_multiple(const struct xccdf_value *value);
56 bool xccdf_value_set_resolved(struct xccdf_value *item, bool newval);
57 bool xccdf_value_set_selected(struct xccdf_value *item, bool newval);
58 bool xccdf_value_get_resolved(const struct xccdf_value *value);
59 bool xccdf_value_get_selected(const struct xccdf_value *value);
60 bool xccdf_profile_get_resolved(const struct xccdf_profile *profile);
61 bool xccdf_profile_get_hidden(const struct xccdf_profile *profile);
62 bool xccdf_profile_get_selected(const struct xccdf_profile *profile);
63 bool xccdf_profile_get_multiple(const struct xccdf_profile *profile);
64 bool xccdf_profile_get_interactive(const struct xccdf_profile *profile);
65 bool xccdf_profile_set_resolved(struct xccdf_profile *item, bool newval);
66 bool xccdf_profile_set_selected(struct xccdf_profile *item, bool newval);
67 bool xccdf_profile_set_hidden(struct xccdf_profile *item, bool newval);
68 bool xccdf_profile_set_interactive(struct xccdf_profile *item, bool newval);
69 bool xccdf_profile_set_multiple(struct xccdf_profile *item, bool newval);
70 struct xccdf_item *xccdf_profile_get_parent(const struct xccdf_profile *profile);
71 struct oscap_text_iterator *xccdf_benchmark_get_question(const struct xccdf_benchmark *benchmark);
72 const char *xccdf_profile_get_cluster_id(const struct xccdf_profile *profile);
73 const char *xccdf_benchmark_get_cluster_id(const struct xccdf_benchmark *benchmark);
74 struct oscap_text_iterator *xccdf_profile_get_rationale(const struct xccdf_profile *profile);
75 struct oscap_text_iterator *xccdf_benchmark_get_rationale(const struct xccdf_benchmark *benchmark);
76 struct oscap_text_iterator *xccdf_value_get_rationale(const struct xccdf_value *value);
77 struct oscap_text_iterator *xccdf_profile_get_question(const struct xccdf_profile *profile);
78 struct oscap_string_iterator *xccdf_value_get_platforms(const struct xccdf_value *value);
79 struct xccdf_benchmark *xccdf_benchmark_get_benchmark(const struct xccdf_benchmark *benchmark);
80 struct xccdf_item *xccdf_benchmark_get_parent(const struct xccdf_benchmark *benchmark);
81 float xccdf_profile_get_weight(const struct xccdf_profile *profile);
82 float xccdf_benchmark_get_weight(const struct xccdf_benchmark *benchmark);
83 float xccdf_value_get_weight(const struct xccdf_value *value);
84 struct oscap_text_iterator *xccdf_result_get_question(const struct xccdf_result *item);
85 struct oscap_text_iterator *xccdf_result_get_rationale(const struct xccdf_result *item);
86 struct oscap_text_iterator *xccdf_result_get_description(const struct xccdf_result *item);
87 struct oscap_reference_iterator *xccdf_result_get_references(const struct xccdf_result *item);
88 struct xccdf_warning_iterator *xccdf_result_get_warnings(const struct xccdf_result *item);
89 const char *xccdf_result_get_cluster_id(const struct xccdf_result *item);
90 const char *xccdf_result_get_version_update(const struct xccdf_result *item);
91 const char *xccdf_result_get_version_time(const struct xccdf_result *item);
92 float xccdf_result_get_weight(const struct xccdf_result *item);
93 struct xccdf_item *xccdf_result_get_parent(const struct xccdf_result *item);
94 const char *xccdf_result_get_extends(const struct xccdf_result *item);
95 bool xccdf_result_get_resolved(const struct xccdf_result *item);
96 bool xccdf_result_get_hidden(const struct xccdf_result *item);
97 bool xccdf_result_get_selected(const struct xccdf_result *item);
98 bool xccdf_result_get_multiple(const struct xccdf_result *item);
99 bool xccdf_result_get_prohibit_changes(const struct xccdf_result *item);
100 bool xccdf_result_get_abstract(const struct xccdf_result *item);
101 bool xccdf_result_get_interactive(const struct xccdf_result *item);
102 bool xccdf_result_set_abstract(struct xccdf_result *item, bool newval);
103 bool xccdf_result_set_hidden(struct xccdf_result *item, bool newval);
104 bool xccdf_result_set_interactive(struct xccdf_result *item, bool newval);
105 bool xccdf_result_set_multiple(struct xccdf_result *item, bool newval);
106 bool xccdf_result_set_prohibit_changes(struct xccdf_result *item, bool newval);
107 bool xccdf_result_set_resolved(struct xccdf_result *item, bool newval);
108 bool xccdf_result_set_selected(struct xccdf_result *item, bool newval);
109 bool xccdf_item_get_resolved(const struct xccdf_item *item);
110 bool xccdf_item_get_multiple(const struct xccdf_item *item);
111 bool xccdf_item_set_multiple(struct xccdf_item *item, bool newval);
112 bool xccdf_item_set_resolved(struct xccdf_item *item, bool newval);
113 bool xccdf_benchmark_set_weight(struct xccdf_benchmark *item, xccdf_numeric newval);
114 bool xccdf_profile_set_weight(struct xccdf_profile *item, xccdf_numeric newval);
115 bool xccdf_value_set_weight(struct xccdf_value *item, xccdf_numeric newval);
116 bool xccdf_result_set_weight(struct xccdf_result *item, xccdf_numeric newval);
117 bool xccdf_result_set_cluster_id(struct xccdf_result *item, const char *newval);
118 bool xccdf_result_set_extends(struct xccdf_result *item, const char *newval);
119 bool xccdf_result_set_version_time(struct xccdf_result *item, const char *newval);
120 bool xccdf_result_set_version_update(struct xccdf_result *item, const char *newval);
121 bool xccdf_profile_set_cluster_id(struct xccdf_profile *item, const char *newval);
122 bool xccdf_benchmark_set_cluster_id(struct xccdf_benchmark *item, const char *newval);
123 bool xccdf_benchmark_set_extends(struct xccdf_benchmark *item, const char *newval);
124 bool xccdf_benchmark_add_question(struct xccdf_benchmark *item, struct oscap_text *newval);
125 bool xccdf_benchmark_add_rationale(struct xccdf_benchmark *item, struct oscap_text *newval);
126 bool xccdf_benchmark_add_warning(struct xccdf_benchmark *item, struct xccdf_warning *newval);
127 bool xccdf_profile_add_question(struct xccdf_profile *item, struct oscap_text *newval);
128 bool xccdf_profile_add_rationale(struct xccdf_profile *item, struct oscap_text *newval);
129 bool xccdf_profile_add_warning(struct xccdf_profile *item, struct xccdf_warning *newval);
130 bool xccdf_value_add_rationale(struct xccdf_value *item, struct oscap_text *newval);
131 bool xccdf_value_add_platform(struct xccdf_value *item, const char *newval);
132 bool xccdf_result_add_description(struct xccdf_result *item, struct oscap_text *newval);
133 bool xccdf_result_add_platform(struct xccdf_result *item, const char *newval);
134 bool xccdf_result_add_question(struct xccdf_result *item, struct oscap_text *newval);
135 bool xccdf_result_add_rationale(struct xccdf_result *item, struct oscap_text *newval);
136 bool xccdf_result_add_reference(struct xccdf_result *item, struct oscap_reference *newval);
137 bool xccdf_result_add_status(struct xccdf_result *item, struct xccdf_status *newval);
138 bool xccdf_result_add_dc_status(struct xccdf_result *item, struct oscap_reference *newval);
139 bool xccdf_result_add_warning(struct xccdf_result *item, struct xccdf_warning *newval);
140 bool xccdf_rule_set_interactive(struct xccdf_rule *item, bool newval);
141 bool xccdf_item_get_interactive(const struct xccdf_item *item);
142 bool xccdf_item_set_interactive(struct xccdf_item *item, bool newval);
143
144 OSCAP_HIDDEN_END;
145
146 #endif
xccdf_benchmark
Top level XCCDF structure containing profiles, rules, values and results.
oscap_text_iterator
Internationalized string iterator.
xccdf_value
XCCDF Value allows test parametrization or capturing output of tests.
Definition: xccdf_benchmark.h:226
xccdf_group
XCCDF rule group.
Definition: xccdf_benchmark.h:220
xccdf_result
Actual results of running a XCCDF test or profile.
Definition: xccdf_benchmark.h:232
xccdf_warning_iterator
Warning iterator.
Definition: xccdf_benchmark.h:560
oscap_reference
Definition: reference_priv.h:35
xccdf_status
XCCDF item status.
Definition: item.h:244
xccdf_rule
XCCDF rule defines a test execution.
Definition: xccdf_benchmark.h:214
oscap_text
Representation of internationalizable character strings.
Definition: text_priv.h:47
oscap_string_iterator
String iterator.
xccdf_profile
XCCDF profile is a set of tests and their settings in a compact package.
Definition: xccdf_benchmark.h:202
xccdf_numeric
float xccdf_numeric
Type of a numerical content for a XCCDF value.
Definition: xccdf_benchmark.h:196
xccdf_warning
XCCDF warning.
Definition: item.h:234
xccdf_item
A base class for XCCDF items.
Definition: item.h:221