00001
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef XCCDF_H_
00035 #define XCCDF_H_
00036
00037 #include <stdbool.h>
00038 #include <time.h>
00039 #include "oscap.h"
00040
00041
00042
00043
00044
00053 typedef enum {
00054 XCCDF_BENCHMARK = 0x0100,
00055 XCCDF_PROFILE = 0x0200,
00056 XCCDF_RESULT = 0x0400,
00057 XCCDF_RULE = 0x1000,
00058 XCCDF_GROUP = 0x2000,
00059 XCCDF_VALUE = 0x4000,
00060
00062 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP,
00064 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE,
00066 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT,
00067 } xccdf_type_t;
00068
00070 typedef enum {
00071 XCCDF_IFACE_HINT_NONE,
00072 XCCDF_IFACE_HINT_CHOICE,
00073 XCCDF_IFACE_HINT_TEXTLINE,
00074 XCCDF_IFACE_HINT_TEXT,
00075 XCCDF_IFACE_HINT_DATE,
00076 XCCDF_IFACE_HINT_DATETIME,
00077 } xccdf_interface_hint_t;
00078
00080 typedef enum {
00081 XCCDF_STATUS_NOT_SPECIFIED,
00082 XCCDF_STATUS_ACCEPTED,
00083 XCCDF_STATUS_DEPRECATED,
00084 XCCDF_STATUS_DRAFT,
00085 XCCDF_STATUS_INCOMPLETE,
00086 XCCDF_STATUS_INTERIM
00087 } xccdf_status_type_t;
00088
00090 typedef enum {
00091 XCCDF_TYPE_NUMBER = 1,
00092 XCCDF_TYPE_STRING,
00093 XCCDF_TYPE_BOOLEAN,
00094 } xccdf_value_type_t;
00095
00097 typedef enum {
00098 XCCDF_OPERATOR_EQUALS = 1,
00099 XCCDF_OPERATOR_NOT_EQUAL,
00100 XCCDF_OPERATOR_GREATER,
00101 XCCDF_OPERATOR_GREATER_EQUAL,
00102 XCCDF_OPERATOR_LESS,
00103 XCCDF_OPERATOR_LESS_EQUAL,
00104 XCCDF_OPERATOR_PATTERN_MATCH
00105 } xccdf_operator_t;
00106
00108 typedef enum {
00109 XCCDF_OPERATOR_AND = 0x0002,
00110 XCCDF_OPERATOR_OR = 0x0003,
00111 XCCDF_OPERATOR_NOT = 0x0100,
00112 XCCDF_OPERATOR_NAND = XCCDF_OPERATOR_AND | XCCDF_OPERATOR_NOT,
00113 XCCDF_OPERATOR_NOR = XCCDF_OPERATOR_OR | XCCDF_OPERATOR_NOT,
00114 XCCDF_OPERATOR_MASK = 0x00ff
00115 } xccdf_bool_operator_t;
00116
00118 typedef enum {
00119 XCCDF_UNKNOWN = 1,
00120 XCCDF_INFO,
00121 XCCDF_LOW,
00122 XCCDF_MEDIUM,
00123 XCCDF_HIGH
00124 } xccdf_level_t;
00125
00127 typedef enum {
00128 XCCDF_MSG_INFO = XCCDF_INFO,
00129 XCCDF_MSG_WARNING = XCCDF_LOW,
00130 XCCDF_MSG_ERROR = XCCDF_HIGH,
00131 } xccdf_message_severity_t;
00132
00134 typedef enum {
00135 XCCDF_ROLE_FULL = 1,
00136 XCCDF_ROLE_UNSCORED,
00137 XCCDF_ROLE_UNCHECKED
00138 } xccdf_role_t;
00139
00141 typedef enum {
00142 XCCDF_WARNING_NOT_SPECIFIED,
00143 XCCDF_WARNING_GENERAL = 1,
00144 XCCDF_WARNING_FUNCTIONALITY,
00145 XCCDF_WARNING_PERFORMANCE,
00146 XCCDF_WARNING_HARDWARE,
00147 XCCDF_WARNING_LEGAL,
00148 XCCDF_WARNING_REGULATORY,
00149 XCCDF_WARNING_MANAGEMENT,
00150 XCCDF_WARNING_AUDIT,
00151 XCCDF_WARNING_DEPENDENCY
00152 } xccdf_warning_category_t;
00153
00155 typedef enum {
00156 XCCDF_STRATEGY_UNKNOWN = 0,
00157 XCCDF_STRATEGY_CONFIGURE,
00158 XCCDF_STRATEGY_DISABLE,
00159 XCCDF_STRATEGY_ENABLE,
00160 XCCDF_STRATEGY_PATCH,
00161 XCCDF_STRATEGY_POLICY,
00162 XCCDF_STRATEGY_RESTRICT,
00163 XCCDF_STRATEGY_UPDATE,
00164 XCCDF_STRATEGY_COMBINATION
00165 } xccdf_strategy_t;
00166
00168 typedef enum {
00169 XCCDF_RESULT_PASS = 1,
00170 XCCDF_RESULT_FAIL,
00171 XCCDF_RESULT_ERROR,
00172 XCCDF_RESULT_UNKNOWN,
00173 XCCDF_RESULT_NOT_APPLICABLE,
00174 XCCDF_RESULT_NOT_CHECKED,
00175 XCCDF_RESULT_NOT_SELECTED,
00176 XCCDF_RESULT_INFORMATIONAL,
00177 XCCDF_RESULT_FIXED
00178 } xccdf_test_result_type_t;
00179
00180
00181
00182
00183
00187 typedef float xccdf_numeric;
00188
00193 struct xccdf_benchmark;
00194
00199 struct xccdf_profile;
00200
00205 struct xccdf_item;
00206
00211 struct xccdf_rule;
00212
00217 struct xccdf_group;
00218
00223 struct xccdf_value;
00224
00229 struct xccdf_result;
00230
00231
00232
00233
00234
00239 struct xccdf_notice;
00240
00245 struct xccdf_status;
00246
00251 struct xccdf_model;
00252
00257 struct xccdf_warning;
00258
00263 struct xccdf_select;
00264
00269 struct xccdf_setvalue;
00270
00275 struct xccdf_refine_value;
00276
00281 struct xccdf_refine_rule;
00282
00287 struct xccdf_ident;
00288
00293 struct xccdf_check;
00298 struct xccdf_check_content_ref;
00299
00304 struct xccdf_profile_note;
00305
00311 struct xccdf_check_import;
00312
00318 struct xccdf_check_export;
00319
00325 struct xccdf_fix;
00326
00332 struct xccdf_fixtext;
00333
00341 struct xccdf_value_instance;
00342
00348 struct xccdf_identity;
00349
00355 struct xccdf_instance;
00356
00362 struct xccdf_message;
00363
00369 struct xccdf_override;
00370
00376 struct xccdf_rule_result;
00377
00383 struct xccdf_score;
00384
00390 struct xccdf_target_fact;
00391
00397 struct xccdf_plain_text;
00398
00404 struct xccdf_item_iterator;
00405
00411 struct xccdf_notice_iterator;
00412
00418 struct xccdf_status_iterator;
00419
00425 struct xccdf_identity_iterator;
00426
00432 struct xccdf_model_iterator;
00433
00439 struct xccdf_result_iterator;
00440
00446 struct xccdf_profile_iterator;
00447
00453 struct xccdf_select_iterator;
00454
00460 struct xccdf_value_iterator;
00461
00467 struct xccdf_setvalue_iterator;
00468
00473 struct xccdf_refine_value_iterator;
00474
00480 struct xccdf_refine_rule_iterator;
00481
00487 struct xccdf_ident_iterator;
00488
00494 struct xccdf_check_iterator;
00495
00501 struct xccdf_profile_note_iterator;
00502
00508 struct xccdf_fixtext_iterator;
00509
00515 struct xccdf_check_content_ref_iterator;
00516
00522 struct xccdf_check_import_iterator;
00523
00529 struct xccdf_fix_iterator;
00530
00536 struct xccdf_check_export_iterator;
00537
00543 struct xccdf_warning_iterator;
00544
00550 struct xccdf_instance_iterator;
00551
00557 struct xccdf_message_iterator;
00558
00564 struct xccdf_override_iterator;
00565
00571 struct xccdf_rule_result_iterator;
00572
00578 struct xccdf_value_instance_iterator;
00579
00585 struct xccdf_score_iterator;
00586
00592 struct xccdf_target_fact_iterator;
00593
00599 struct xccdf_plain_text_iterator;
00600
00601
00602
00604 void xccdf_item_free(struct xccdf_item *item);
00605
00607 struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item);
00608
00615 struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
00616
00623 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
00624
00631 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
00632
00639 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
00640
00647 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
00648
00655 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
00656
00664 struct xccdf_benchmark* xccdf_benchmark_import(const char *file);
00665
00672 int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file);
00673
00678 void xccdf_result_fill_sysinfo(struct xccdf_result *result);
00679
00686 int xccdf_result_export(struct xccdf_result *result, const char *file);
00687
00694 bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark);
00695
00697 struct xccdf_benchmark *xccdf_benchmark_new(void);
00699 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
00701 struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
00703 struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark );
00704
00710 const char * xccdf_benchmark_supported(void);
00711
00713 struct xccdf_profile *xccdf_profile_new(void);
00715 void xccdf_profile_free(struct xccdf_item *prof);
00717 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
00719 struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile);
00720
00722 struct xccdf_rule *xccdf_rule_new(void);
00724 void xccdf_rule_free(struct xccdf_item *rule);
00726 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
00728 struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule);
00729
00731 struct xccdf_group *xccdf_group_new(void);
00733 void xccdf_group_free(struct xccdf_item *group);
00735 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
00737 struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group);
00738
00740 struct xccdf_value *xccdf_value_new(xccdf_value_type_t type);
00742 void xccdf_value_free(struct xccdf_item *val);
00744 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
00746 struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value);
00747
00749 struct xccdf_status *xccdf_status_new(void);
00751 struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status);
00753 struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
00755 void xccdf_status_free(struct xccdf_status *status);
00757 struct xccdf_notice *xccdf_notice_new(void);
00759 void xccdf_notice_free(struct xccdf_notice *notice);
00761 struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice);
00762
00764 struct xccdf_model *xccdf_model_new(void);
00766 struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model);
00768 void xccdf_model_free(struct xccdf_model *model);
00769
00771 struct xccdf_ident *xccdf_ident_new(void);
00773 struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
00775 struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident);
00777 void xccdf_ident_free(struct xccdf_ident *ident);
00778
00779
00781 struct xccdf_check *xccdf_check_new(void);
00783 void xccdf_check_free(struct xccdf_check *check);
00784
00786 struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check);
00788 struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import);
00790 struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export);
00792 struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref);
00793
00795 struct xccdf_check_content_ref *xccdf_check_content_ref_new(void);
00797 void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref);
00798
00800 struct xccdf_profile_note *xccdf_profile_note_new(void);
00802 void xccdf_profile_note_free(struct xccdf_profile_note *note);
00803
00805 struct xccdf_check_import *xccdf_check_import_new(void);
00807 void xccdf_check_import_free(struct xccdf_check_import *item);
00808
00810 struct xccdf_check_export *xccdf_check_export_new(void);
00812 void xccdf_check_export_free(struct xccdf_check_export *item);
00813
00815 struct xccdf_fix *xccdf_fix_new(void);
00817 struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix);
00819 void xccdf_fix_free(struct xccdf_fix *item);
00820
00822 struct xccdf_fixtext *xccdf_fixtext_new(void);
00824 struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext);
00826 void xccdf_fixtext_free(struct xccdf_fixtext *item);
00827
00829 void xccdf_select_free(struct xccdf_select *sel);
00831 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
00833 struct xccdf_select *xccdf_select_new(void);
00834
00836 struct xccdf_warning *xccdf_warning_new(void);
00838 struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning);
00840 void xccdf_warning_free(struct xccdf_warning * warn);
00841
00843 void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
00844
00846 void xccdf_refine_value_free(struct xccdf_refine_value *rv);
00847
00848 void xccdf_setvalue_free(struct xccdf_setvalue *sv);
00849
00854 void xccdf_cleanup(void);
00855
00861 struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id);
00862
00868 struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
00869
00875 struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id);
00876
00878 struct xccdf_plain_text *xccdf_plain_text_new(void);
00880 struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
00882 void xccdf_plain_text_free(struct xccdf_plain_text *plain);
00884 struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt);
00885
00887 struct xccdf_result *xccdf_result_new(void);
00889 void xccdf_result_free(struct xccdf_result *item);
00891 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
00893 struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result);
00894
00896 struct xccdf_rule_result *xccdf_rule_result_new(void);
00898 struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result);
00900 void xccdf_rule_result_free(struct xccdf_rule_result *rr);
00901
00903 struct xccdf_identity *xccdf_identity_new(void);
00905 struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity);
00907 void xccdf_identity_free(struct xccdf_identity *identity);
00908
00910 struct xccdf_score *xccdf_score_new(void);
00912 struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score);
00914 void xccdf_score_free(struct xccdf_score *score);
00915
00917 struct xccdf_override *xccdf_override_new(void);
00919 struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override);
00921 void xccdf_override_free(struct xccdf_override *oride);
00922
00924 struct xccdf_message *xccdf_message_new(void);
00926 struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message);
00928 void xccdf_message_free(struct xccdf_message *msg);
00929
00931 struct xccdf_target_fact *xccdf_target_fact_new(void);
00933 struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf);
00935 void xccdf_target_fact_free(struct xccdf_target_fact *fact);
00936
00938 struct xccdf_instance *xccdf_instance_new(void);
00940 struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance);
00942 void xccdf_instance_free(struct xccdf_instance *inst);
00943
00944
00945
00946
00947
00948
00949
00950
00955
00956
00958 struct oscap_string_iterator *xccdf_value_instance_get_choices(const struct xccdf_value_instance *item);
00959
00960
00970 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
00975 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
00980 void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
00985 void xccdf_item_iterator_reset(struct xccdf_item_iterator *it);
00986
00987
00992 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
00997 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
01002 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
01007 void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it);
01008
01009
01014 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
01019 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
01024 void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
01029 void xccdf_status_iterator_reset(struct xccdf_status_iterator *it);
01030
01031
01036 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
01041 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
01046 void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
01051 void xccdf_model_iterator_reset(struct xccdf_model_iterator *it);
01052
01053
01058 struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
01063 bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
01068 void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
01073 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
01074
01075
01080 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it);
01085 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
01090 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
01095 void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it);
01096
01097
01102 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
01107 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
01112 void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
01117 void xccdf_select_iterator_reset(struct xccdf_select_iterator *it);
01118
01119
01124 struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it);
01129 bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it);
01134 void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
01139 void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it);
01140
01141
01146 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it);
01151 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it);
01156 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it);
01161 void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it);
01162
01163
01168 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it);
01173 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it);
01178 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it);
01183 void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it);
01184
01185
01190 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
01195 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
01200 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
01205 void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it);
01206
01207
01212 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
01217 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
01222 void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
01227 void xccdf_check_iterator_reset(struct xccdf_check_iterator *it);
01228
01229
01234 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it);
01239 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it);
01244 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it);
01249 void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it);
01250
01251
01256 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it);
01261 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it);
01266 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it);
01271 void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it);
01272
01273
01278 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it);
01283 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it);
01288 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it);
01293 void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it);
01294
01295
01300 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it);
01305 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it);
01310 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it);
01315 void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it);
01316
01317
01322 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
01327 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
01332 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
01337 void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it);
01338
01339
01344 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it);
01349 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
01354 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
01359 void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it);
01360
01361
01366 struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it);
01371 bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
01376 void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
01377
01378
01383 struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it);
01388 bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it);
01393 void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
01398 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
01399
01400
01405 struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it);
01410 bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
01415 void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
01420 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
01421
01422
01427 struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it);
01432 bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it);
01437 void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
01442 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
01443
01444
01449 struct xccdf_identity *xccdf_identity_iterator_next(struct xccdf_identity_iterator *it);
01454 bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it);
01459 void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it);
01464 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
01465
01466
01471 struct xccdf_rule_result *xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it);
01476 bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it);
01481 void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it);
01486 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
01487
01488
01493 struct xccdf_value_instance *xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it);
01498 bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it);
01503 void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it);
01508 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
01509
01510
01515 struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it);
01520 bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it);
01525 void xccdf_score_iterator_free(struct xccdf_score_iterator *it);
01530 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
01531
01532
01537 struct xccdf_target_fact *xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it);
01542 bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it);
01547 void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it);
01552 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
01553
01554
01559 struct xccdf_plain_text *xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it);
01564 bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it);
01569 void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it);
01574 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
01575
01576
01581 struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it);
01586 bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it);
01591 void xccdf_value_iterator_free(struct xccdf_value_iterator *it);
01596 void xccdf_value_iterator_reset(struct xccdf_value_iterator *it);
01597
01598
01599
01600
01601
01612 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
01616 const char *xccdf_item_get_id(const struct xccdf_item *item);
01620 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
01624 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
01628 const char *xccdf_item_get_version(const struct xccdf_item *item);
01632 const char *xccdf_item_get_extends(const struct xccdf_item *item);
01636 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
01640 struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
01644 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
01648 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
01652 xccdf_status_type_t xccdf_item_get_current_status(const struct xccdf_item *item);
01656 bool xccdf_item_get_hidden(const struct xccdf_item *item);
01660 bool xccdf_item_get_selected(const struct xccdf_item *item);
01664 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
01668 bool xccdf_item_get_abstract(const struct xccdf_item *item);
01672 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
01676 const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id);
01680 struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id);
01681
01687 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
01688
01692 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
01696 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
01700 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
01704 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
01708 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
01712 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
01716 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
01720 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
01724 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
01728 const char *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
01732 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
01736 struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
01740 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
01744 xccdf_status_type_t xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
01748 struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
01752 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
01756 struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
01758 bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval);
01760 const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item);
01761
01769 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
01770
01778 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
01779
01785 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
01786
01792 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
01793
01799 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
01800
01808 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
01809
01813 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
01817 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
01821 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
01825 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
01829 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
01833 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
01837 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
01841 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
01845 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
01849 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
01853 struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
01857 xccdf_status_type_t xccdf_profile_get_status_current(const struct xccdf_profile *profile);
01861
01865 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
01869 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
01873 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
01877 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
01878
01884 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
01885
01889 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
01893 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
01897 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
01901 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
01905 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
01909 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
01913 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
01917 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
01921 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
01925 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
01929 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
01933 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
01937 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
01941 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
01945 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
01949 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
01953 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
01957 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
01961 struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
01965 xccdf_status_type_t xccdf_rule_get_status_current(const struct xccdf_rule *rule);
01969 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
01973 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
01977 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
01981 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
01985 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
01989 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
01993 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
01997 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
02001 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
02005 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
02006
02007
02008
02009
02010
02011
02012 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
02013
02021 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group);
02022
02024 struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group);
02025
02027 const char *xccdf_group_get_id(const struct xccdf_group *group);
02029 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
02031 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
02033 const char *xccdf_group_get_version(const struct xccdf_group *group);
02035 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
02037 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
02039 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
02041 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
02043 float xccdf_group_get_weight(const struct xccdf_group *group);
02045 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
02047 const char *xccdf_group_get_extends(const struct xccdf_group *group);
02049 bool xccdf_group_get_abstract(const struct xccdf_group *group);
02051 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
02053 bool xccdf_group_get_hidden(const struct xccdf_group *group);
02055 bool xccdf_group_get_selected(const struct xccdf_group *group);
02057 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
02059 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
02061 struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
02063 xccdf_status_type_t xccdf_group_get_status_current(const struct xccdf_group *group);
02065 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
02067 struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
02068
02070 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
02072 const char *xccdf_value_get_id(const struct xccdf_value *value);
02074 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
02076 const char *xccdf_value_get_extends(const struct xccdf_value *value);
02078 bool xccdf_value_get_abstract(const struct xccdf_value *value);
02080 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
02082 bool xccdf_value_get_hidden(const struct xccdf_value *value);
02084 bool xccdf_value_get_interactive(const struct xccdf_value *value);
02086 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
02088 struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
02090 xccdf_status_type_t xccdf_value_get_status_current(const struct xccdf_value *value);
02092 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
02094 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
02096 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
02098 struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector);
02100 bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance);
02102 struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item);
02103
02104
02106 void xccdf_value_instance_free(struct xccdf_value_instance *inst);
02108 struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val);
02110 const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item);
02112 bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval);
02114 xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item);
02116 bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item);
02118 bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval);
02120 bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst);
02122 bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval);
02124 xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst);
02126 bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02128 const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst);
02130 bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval);
02132 bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst);
02134 bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval);
02136 xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst);
02138 bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02140 const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst);
02142 bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval);
02144 xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst);
02146 bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02148 xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst);
02150 bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02152 const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst);
02154 bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval);
02156 const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val);
02157
02163 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
02164
02165
02167 time_t xccdf_status_get_date(const struct xccdf_status *status);
02169 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
02171 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
02173 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
02175 const char *xccdf_model_get_system(const struct xccdf_model *model);
02177
02179 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
02181 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
02183 const char *xccdf_check_get_id(const struct xccdf_check *check);
02184
02190 bool xccdf_check_get_complex(const struct xccdf_check *check);
02191
02197 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
02199 const char *xccdf_check_get_system(const struct xccdf_check *check);
02201 const char *xccdf_check_get_selector(const struct xccdf_check *check);
02203 const char *xccdf_check_get_content(const struct xccdf_check *check);
02205
02211 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
02212
02214 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
02216 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
02218 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
02220 struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
02222 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
02224 const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item);
02226 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
02228 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
02230 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
02231
02233 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
02235 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
02237 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
02239 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
02241 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
02243 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
02245 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
02247 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
02249 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
02251 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
02253 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
02255 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
02257 const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
02259 struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext);
02261 const char *xccdf_value_get_version(const struct xccdf_value *value);
02263 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
02265 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
02267 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
02269 time_t xccdf_value_get_version_time(const struct xccdf_value *value);
02271 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
02273 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
02275 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
02276
02278 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
02280 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
02282 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
02284 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
02286 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
02288 time_t xccdf_item_get_version_time(const struct xccdf_item *item);
02290 float xccdf_item_get_weight(const struct xccdf_item *item);
02292 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
02294 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
02295
02297 struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
02299 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
02301 time_t xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
02302
02304 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
02306 time_t xccdf_profile_get_version_time(const struct xccdf_profile *profile);
02308 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
02309
02311 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
02313 time_t xccdf_rule_get_version_time(const struct xccdf_rule *rule);
02315 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
02316
02318 time_t xccdf_group_get_version_time(const struct xccdf_group *group);
02320 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
02322 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
02323
02325 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
02327 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
02329 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
02330
02332 bool xccdf_select_get_selected(const struct xccdf_select *select);
02334 const char *xccdf_select_get_item(const struct xccdf_select *select);
02336 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
02337
02339 xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
02341 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
02343 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
02345 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
02347 xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
02349 xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr);
02351 struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
02353 xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item);
02354 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
02356 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
02358 xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv);
02360 struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
02362 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
02364 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
02365
02367 const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
02369 const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
02370
02372 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
02374 const char *xccdf_result_get_id(const struct xccdf_result *item);
02376 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
02378 const char *xccdf_result_get_version(const struct xccdf_result *item);
02380 struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
02382 struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
02384 const char *xccdf_result_get_test_system(const struct xccdf_result *item);
02386 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
02388 const char *xccdf_result_get_profile(const struct xccdf_result *item);
02390 struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
02392 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
02394 struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
02396 struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
02398 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
02400 struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
02402 struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
02404 struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
02406 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
02408 time_t xccdf_result_get_start_time(const struct xccdf_result *item);
02410 time_t xccdf_result_get_end_time(const struct xccdf_result *item);
02411
02413 time_t xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
02415 xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
02417 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
02419 xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
02421 xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item);
02423 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
02425 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
02427 struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
02429 struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
02431 struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
02433 struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
02435 struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
02437 struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
02439 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
02441 bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
02443 const char *xccdf_identity_get_name(const struct xccdf_identity *item);
02445 xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
02447 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
02449 const char *xccdf_score_get_system(const struct xccdf_score *item);
02451 time_t xccdf_override_get_time(const struct xccdf_override *item);
02453 xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item);
02455 xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item);
02457 const char *xccdf_override_get_authority(const struct xccdf_override *item);
02459 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
02461 xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item);
02463 const char *xccdf_message_get_content(const struct xccdf_message *item);
02465 xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item);
02467 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
02469 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
02471 const char *xccdf_instance_get_context(const struct xccdf_instance *item);
02473 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
02475 const char *xccdf_instance_get_content(const struct xccdf_instance *item);
02476
02477
02478
02479
02480
02481
02489
02490 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
02492 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
02494 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
02496 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
02498 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
02500 bool xccdf_item_set_version_time(struct xccdf_item *item, time_t newval);
02502 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
02504 bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
02506 bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
02508 bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
02510 bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
02511
02513 bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
02514
02516 bool xccdf_benchmark_set_metadata(struct xccdf_benchmark *item, const char *newval);
02518 bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
02520 bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
02522 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
02524 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
02526 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, time_t newval);
02528 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
02529
02531 bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
02533 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
02535 bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
02537 bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
02539 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
02541 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
02543 bool xccdf_profile_set_version_time(struct xccdf_profile *item, time_t newval);
02545 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
02546
02548 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
02550 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
02552 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
02554 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
02556 bool xccdf_rule_set_version_time(struct xccdf_rule *item, time_t newval);
02558 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
02560 bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
02562 bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
02564 bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
02566 bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
02568 bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
02570
02572 bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
02574 bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
02576 bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
02577
02579 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
02581 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
02583 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
02585 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
02587 bool xccdf_group_set_version_time(struct xccdf_group *item, time_t newval);
02589 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
02591 bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
02593 bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
02595 bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
02597 bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
02598
02600 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
02602 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
02604 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
02606 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
02608 bool xccdf_value_set_version_time(struct xccdf_value *item, time_t newval);
02610 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
02612 bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
02614 bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
02616 bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
02618 bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
02620 bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper);
02622 bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval);
02623
02625 bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
02627 bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
02628
02630 bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
02632 bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
02633
02635 bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
02636
02638 bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
02640 bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
02642 bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
02644 bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
02646 bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
02647
02649 bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
02651 bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
02652
02654 bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
02656 bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
02657
02659 bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
02661 bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval);
02663 bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
02664
02666 bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
02668 bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
02669
02671 bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
02673 bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
02675 bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
02677 bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
02679 bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
02681 bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
02683 bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
02685 bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
02686
02688 bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval);
02690 bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
02692 bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
02694 bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
02696 bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval);
02698 bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
02699
02701 bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
02703 bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
02704
02706 bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval);
02708 bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
02710 struct xccdf_refine_rule *xccdf_refine_rule_new(void);
02711
02713 struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule);
02715 bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
02717 bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
02719 bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval);
02721 bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval);
02723 bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval);
02724
02726 struct xccdf_refine_value *xccdf_refine_value_new(void);
02728 struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value);
02730 bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
02732 bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
02734 bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval);
02735
02737 struct xccdf_setvalue *xccdf_setvalue_new(void);
02739 struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value);
02741 bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
02743 bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
02745 bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
02747 bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
02748
02750 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
02752 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
02754 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
02756 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
02758 bool xccdf_result_set_start_time(struct xccdf_result *item, time_t newval);
02760 bool xccdf_result_set_end_time(struct xccdf_result *item, time_t newval);
02762 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
02764 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, time_t newval);
02766 bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
02768 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
02770 bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
02772 bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
02774 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
02776 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
02777
02779 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
02781 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
02783 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
02784
02786 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
02788 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
02790 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
02791
02793 bool xccdf_override_set_time(struct xccdf_override *obj, time_t newval);
02795 bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02797 bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02799 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
02801 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
02802
02804 bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
02806 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
02807
02809 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
02811 bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
02813 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
02815 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
02816
02818 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
02820 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
02822 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
02823
02824
02825 void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id);
02826
02827 void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys);
02828
02830 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
02831
02833 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
02835 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
02837 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval);
02839 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
02841 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
02843 bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
02845
02847 bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
02849 bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
02851 bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
02853 bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
02855 bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
02857 bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
02859 bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
02861 bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
02863 bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
02864
02866 bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
02868 bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
02870 bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
02872 bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
02873
02875 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
02877 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
02879 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval);
02881 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
02883 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
02884
02886 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
02888 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
02890 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
02892 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
02894 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval);
02896 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
02898 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
02900 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
02902 bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
02904 bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
02906 bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
02908 bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
02910 bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
02911
02913 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
02915 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
02917 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
02919 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
02921 bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval);
02923 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
02925 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
02927 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
02929 bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
02931 bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
02933 bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
02935 bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
02936
02938 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
02940 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
02942 bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval);
02944 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
02946 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
02948 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
02949
02951 bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
02953 bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
02955 bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
02957 bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
02959 bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
02961 bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
02963 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
02965 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
02967 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
02969 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
02971 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
02973 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
02975 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
02977 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
02979 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
02981 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
02983 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
02985 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
02987 bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
02989 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
02991 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
02993 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
02995 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
02997 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
02999 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
03001 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
03003 bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval);
03005 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
03007 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
03009 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
03011 bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
03012
03014 bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires);
03016 bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires);
03018 bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires);
03020 bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts);
03022 bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts);
03024 bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts);
03025
03026
03027
03028
03029
03030
03032 void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it);
03034 void xccdf_model_iterator_remove(struct xccdf_model_iterator *it);
03036 void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it);
03038 void xccdf_item_iterator_remove(struct xccdf_item_iterator *it);
03040 void xccdf_status_iterator_remove(struct xccdf_status_iterator *it);
03042 void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it);
03044 void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it);
03046 void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it);
03048 void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it);
03050 void xccdf_select_iterator_remove(struct xccdf_select_iterator *it);
03052 void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it);
03054 void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it);
03056 void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it);
03058 void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it);
03060 void xccdf_check_iterator_remove(struct xccdf_check_iterator *it);
03062 void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it);
03064 void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it);
03066 void xccdf_value_iterator_remove(struct xccdf_value_iterator *it);
03068 void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it);
03070 void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it);
03072 void xccdf_result_iterator_remove(struct xccdf_result_iterator *it);
03074 void xccdf_override_iterator_remove(struct xccdf_override_iterator *it);
03076 void xccdf_message_iterator_remove(struct xccdf_message_iterator *it);
03078 void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it);
03080 void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it);
03082 void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it);
03084 void xccdf_score_iterator_remove(struct xccdf_score_iterator *it);
03086 void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it);
03088 void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it);
03089
03090
03091
03093 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
03095 void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it);
03097 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
03099 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
03101 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
03103 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
03105 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
03107 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
03109 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
03111 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
03113 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
03114
03115
03116
03117
03119 typedef enum xccdf_subst_type {
03120 XCCDF_SUBST_NONE,
03121 XCCDF_SUBST_SUB,
03122 XCCDF_SUBST_LINK,
03123 XCCDF_SUBST_INSTANCE
03124 } xccdf_subst_type_t;
03125
03134 typedef char*(*xccdf_substitution_func)(xccdf_subst_type_t type, const char *id, void *arg);
03135
03136
03145 char* oscap_text_xccdf_substitute(const char *text, xccdf_substitution_func cb, void *arg);
03146
03147
03148
03149
03150 #endif