| 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | * Authors: |
| 20 | * Lukas Kuklinek <[email protected]> |
| 21 | */ |
| 22 | |
| 23 | #pragma once |
| 24 | |
| 25 | #ifndef OPENSCAP_XCCDF_UNUSED_H_ |
| 26 | #define OPENSCAP_XCCDF_UNUSED_H_ |
| 27 | |
| 28 | |
| 29 | // Prototypes to supress compiler warnings |
| 30 | // these funcs are automatically generated but useless |
| 31 | struct xccdf_warning_iterator *xccdf_profile_get_warnings(const struct xccdf_profile *profile); |
| 32 | const char *xccdf_benchmark_get_extends(const struct xccdf_benchmark *); |
| 33 | bool xccdf_benchmark_get_hidden(const struct xccdf_benchmark *benchmark); |
| 34 | bool xccdf_benchmark_get_selected(const struct xccdf_benchmark *benchmark); |
| 35 | bool xccdf_benchmark_get_multiple(const struct xccdf_benchmark *benchmark); |
| 36 | bool xccdf_benchmark_get_prohibit_changes(const struct xccdf_benchmark *benchmark); |
| 37 | bool xccdf_benchmark_get_abstract(const struct xccdf_benchmark *benchmark); |
| 38 | bool xccdf_benchmark_get_interactive(const struct xccdf_benchmark *benchmark); |
| 39 | bool xccdf_benchmark_set_selected(struct xccdf_benchmark *item, bool newval); |
| 40 | bool xccdf_benchmark_set_abstract(struct xccdf_benchmark *item, bool newval); |
| 41 | bool xccdf_benchmark_set_hidden(struct xccdf_benchmark *item, bool newval); |
| 42 | bool xccdf_benchmark_set_interactive(struct xccdf_benchmark *item, bool newval); |
| 43 | bool xccdf_benchmark_set_multiple(struct xccdf_benchmark *item, bool newval); |
| 44 | bool xccdf_benchmark_set_prohibit_changes(struct xccdf_benchmark *item, bool newval); |
| 45 | bool xccdf_group_get_resolved(const struct xccdf_group *group); |
| 46 | bool xccdf_group_get_multiple(const struct xccdf_group *group); |
| 47 | bool xccdf_group_get_interactive(const struct xccdf_group *group); |
| 48 | bool xccdf_group_set_resolved(struct xccdf_group *item, bool newval); |
| 49 | bool xccdf_group_set_interactive(struct xccdf_group *item, bool newval); |
| 50 | bool xccdf_group_set_multiple(struct xccdf_group *item, bool newval); |
| 51 | bool xccdf_rule_set_resolved(struct xccdf_rule *item, bool newval); |
| 52 | bool xccdf_rule_get_resolved(const struct xccdf_rule *rule); |
| 53 | bool xccdf_rule_get_interactive(const struct xccdf_rule *rule); |
| 54 | bool xccdf_value_get_multiple(const struct xccdf_value *value); |
| 55 | bool xccdf_value_set_resolved(struct xccdf_value *item, bool newval); |
| 56 | bool xccdf_value_set_selected(struct xccdf_value *item, bool newval); |
| 57 | bool xccdf_value_get_resolved(const struct xccdf_value *value); |
| 58 | bool xccdf_value_get_selected(const struct xccdf_value *value); |
| 59 | bool xccdf_profile_get_resolved(const struct xccdf_profile *profile); |
| 60 | bool xccdf_profile_get_hidden(const struct xccdf_profile *profile); |
| 61 | bool xccdf_profile_get_selected(const struct xccdf_profile *profile); |
| 62 | bool xccdf_profile_get_multiple(const struct xccdf_profile *profile); |
| 63 | bool xccdf_profile_get_interactive(const struct xccdf_profile *profile); |
| 64 | bool xccdf_profile_set_resolved(struct xccdf_profile *item, bool newval); |
| 65 | bool xccdf_profile_set_selected(struct xccdf_profile *item, bool newval); |
| 66 | bool xccdf_profile_set_hidden(struct xccdf_profile *item, bool newval); |
| 67 | bool xccdf_profile_set_interactive(struct xccdf_profile *item, bool newval); |
| 68 | bool xccdf_profile_set_multiple(struct xccdf_profile *item, bool newval); |
| 69 | struct xccdf_item *xccdf_profile_get_parent(const struct xccdf_profile *profile); |
| 70 | struct oscap_text_iterator *xccdf_benchmark_get_question(const struct xccdf_benchmark *benchmark); |
| 71 | const char *xccdf_profile_get_cluster_id(const struct xccdf_profile *profile); |
| 72 | const char *xccdf_benchmark_get_cluster_id(const struct xccdf_benchmark *benchmark); |
| 73 | struct oscap_text_iterator *xccdf_profile_get_rationale(const struct xccdf_profile *profile); |
| 74 | struct oscap_text_iterator *xccdf_benchmark_get_rationale(const struct xccdf_benchmark *benchmark); |
| 75 | struct oscap_text_iterator *xccdf_value_get_rationale(const struct xccdf_value *value); |
| 76 | struct oscap_text_iterator *xccdf_profile_get_question(const struct xccdf_profile *profile); |
| 77 | struct oscap_string_iterator *xccdf_value_get_platforms(const struct xccdf_value *value); |
| 78 | struct xccdf_benchmark *xccdf_benchmark_get_benchmark(const struct xccdf_benchmark *benchmark); |
| 79 | struct xccdf_item *xccdf_benchmark_get_parent(const struct xccdf_benchmark *benchmark); |
| 80 | float xccdf_profile_get_weight(const struct xccdf_profile *profile); |
| 81 | float xccdf_benchmark_get_weight(const struct xccdf_benchmark *benchmark); |
| 82 | float xccdf_value_get_weight(const struct xccdf_value *value); |
| 83 | struct oscap_text_iterator *xccdf_result_get_question(const struct xccdf_result *item); |
| 84 | struct oscap_text_iterator *xccdf_result_get_rationale(const struct xccdf_result *item); |
| 85 | struct oscap_text_iterator *xccdf_result_get_description(const struct xccdf_result *item); |
| 86 | struct oscap_reference_iterator *xccdf_result_get_references(const struct xccdf_result *item); |
| 87 | struct xccdf_warning_iterator *xccdf_result_get_warnings(const struct xccdf_result *item); |
| 88 | const char *xccdf_result_get_cluster_id(const struct xccdf_result *item); |
| 89 | const char *xccdf_result_get_version_update(const struct xccdf_result *item); |
| 90 | const char *xccdf_result_get_version_time(const struct xccdf_result *item); |
| 91 | float xccdf_result_get_weight(const struct xccdf_result *item); |
| 92 | struct xccdf_item *xccdf_result_get_parent(const struct xccdf_result *item); |
| 93 | const char *xccdf_result_get_extends(const struct xccdf_result *item); |
| 94 | bool xccdf_result_get_resolved(const struct xccdf_result *item); |
| 95 | bool xccdf_result_get_hidden(const struct xccdf_result *item); |
| 96 | bool xccdf_result_get_selected(const struct xccdf_result *item); |
| 97 | bool xccdf_result_get_multiple(const struct xccdf_result *item); |
| 98 | bool xccdf_result_get_prohibit_changes(const struct xccdf_result *item); |
| 99 | bool xccdf_result_get_abstract(const struct xccdf_result *item); |
| 100 | bool xccdf_result_get_interactive(const struct xccdf_result *item); |
| 101 | bool xccdf_result_set_abstract(struct xccdf_result *item, bool newval); |
| 102 | bool xccdf_result_set_hidden(struct xccdf_result *item, bool newval); |
| 103 | bool xccdf_result_set_interactive(struct xccdf_result *item, bool newval); |
| 104 | bool xccdf_result_set_multiple(struct xccdf_result *item, bool newval); |
| 105 | bool xccdf_result_set_prohibit_changes(struct xccdf_result *item, bool newval); |
| 106 | bool xccdf_result_set_resolved(struct xccdf_result *item, bool newval); |
| 107 | bool xccdf_result_set_selected(struct xccdf_result *item, bool newval); |
| 108 | bool xccdf_item_get_resolved(const struct xccdf_item *item); |
| 109 | bool xccdf_item_get_multiple(const struct xccdf_item *item); |
| 110 | bool xccdf_item_set_multiple(struct xccdf_item *item, bool newval); |
| 111 | bool xccdf_item_set_resolved(struct xccdf_item *item, bool newval); |
| 112 | bool xccdf_benchmark_set_weight(struct xccdf_benchmark *item, xccdf_numeric newval); |
| 113 | bool xccdf_profile_set_weight(struct xccdf_profile *item, xccdf_numeric newval); |
| 114 | bool xccdf_value_set_weight(struct xccdf_value *item, xccdf_numeric newval); |
| 115 | bool xccdf_result_set_weight(struct xccdf_result *item, xccdf_numeric newval); |
| 116 | bool xccdf_result_set_cluster_id(struct xccdf_result *item, const char *newval); |
| 117 | bool xccdf_result_set_extends(struct xccdf_result *item, const char *newval); |
| 118 | bool xccdf_result_set_version_time(struct xccdf_result *item, const char *newval); |
| 119 | bool xccdf_result_set_version_update(struct xccdf_result *item, const char *newval); |
| 120 | bool xccdf_profile_set_cluster_id(struct xccdf_profile *item, const char *newval); |
| 121 | bool xccdf_benchmark_set_cluster_id(struct xccdf_benchmark *item, const char *newval); |
| 122 | bool xccdf_benchmark_set_extends(struct xccdf_benchmark *item, const char *newval); |
| 123 | bool xccdf_benchmark_add_question(struct xccdf_benchmark *item, struct oscap_text *newval); |
| 124 | bool xccdf_benchmark_add_rationale(struct xccdf_benchmark *item, struct oscap_text *newval); |
| 125 | bool xccdf_benchmark_add_warning(struct xccdf_benchmark *item, struct xccdf_warning *newval); |
| 126 | bool xccdf_profile_add_question(struct xccdf_profile *item, struct oscap_text *newval); |
| 127 | bool xccdf_profile_add_rationale(struct xccdf_profile *item, struct oscap_text *newval); |
| 128 | bool xccdf_profile_add_warning(struct xccdf_profile *item, struct xccdf_warning *newval); |
| 129 | bool xccdf_value_add_rationale(struct xccdf_value *item, struct oscap_text *newval); |
| 130 | bool xccdf_value_add_platform(struct xccdf_value *item, const char *newval); |
| 131 | bool xccdf_result_add_description(struct xccdf_result *item, struct oscap_text *newval); |
| 132 | bool xccdf_result_add_platform(struct xccdf_result *item, const char *newval); |
| 133 | bool xccdf_result_add_question(struct xccdf_result *item, struct oscap_text *newval); |
| 134 | bool xccdf_result_add_rationale(struct xccdf_result *item, struct oscap_text *newval); |
| 135 | bool xccdf_result_add_reference(struct xccdf_result *item, struct oscap_reference *newval); |
| 136 | bool xccdf_result_add_status(struct xccdf_result *item, struct xccdf_status *newval); |
| 137 | bool xccdf_result_add_dc_status(struct xccdf_result *item, struct oscap_reference *newval); |
| 138 | bool xccdf_result_add_warning(struct xccdf_result *item, struct xccdf_warning *newval); |
| 139 | bool xccdf_rule_set_interactive(struct xccdf_rule *item, bool newval); |
| 140 | bool xccdf_item_get_interactive(const struct xccdf_item *item); |
| 141 | bool xccdf_item_set_interactive(struct xccdf_item *item, bool newval); |
| 142 | |
| 143 | |
| 144 | #endif |