Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
xccdf_rule_result Struct Reference

Detailed Description

XCCDF rule result.

See Also
xccdf_result

#include <xccdf_benchmark.h>

Public Member Functions

struct xccdf_rule_resultxccdf_rule_result_new (void)
 
struct xccdf_rule_resultxccdf_rule_result_clone (const struct xccdf_rule_result *result)
 
void xccdf_rule_result_free (struct xccdf_rule_result *rr)
 
Getters

Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise.

bool xccdf_rule_result_override (struct xccdf_rule_result *rule_result, xccdf_test_result_type_t new_result, const char *time, const char *authority, struct oscap_text *remark)
 Override the result of rule-result. More...
 
const char * xccdf_rule_result_get_time (const struct xccdf_rule_result *item)
 
xccdf_role_t xccdf_rule_result_get_role (const struct xccdf_rule_result *item)
 
float xccdf_rule_result_get_weight (const struct xccdf_rule_result *item)
 
xccdf_level_t xccdf_rule_result_get_severity (const struct xccdf_rule_result *item)
 
xccdf_test_result_type_t xccdf_rule_result_get_result (const struct xccdf_rule_result *item)
 
const char * xccdf_rule_result_get_version (const struct xccdf_rule_result *item)
 
const char * xccdf_rule_result_get_idref (const struct xccdf_rule_result *item)
 
struct xccdf_ident_iteratorxccdf_rule_result_get_idents (const struct xccdf_rule_result *item)
 
struct xccdf_fix_iteratorxccdf_rule_result_get_fixes (const struct xccdf_rule_result *item)
 
struct xccdf_check_iteratorxccdf_rule_result_get_checks (const struct xccdf_rule_result *item)
 
struct xccdf_override_iteratorxccdf_rule_result_get_overrides (const struct xccdf_rule_result *item)
 
struct xccdf_message_iteratorxccdf_rule_result_get_messages (const struct xccdf_rule_result *item)
 
struct xccdf_instance_iteratorxccdf_rule_result_get_instances (const struct xccdf_rule_result *item)
 
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.

bool xccdf_rule_result_set_time (struct xccdf_rule_result *obj, const char *newval)
 
bool xccdf_rule_result_set_role (struct xccdf_rule_result *obj, xccdf_role_t newval)
 
bool xccdf_rule_result_set_weight (struct xccdf_rule_result *obj, float newval)
 
bool xccdf_rule_result_set_severity (struct xccdf_rule_result *obj, xccdf_level_t newval)
 
bool xccdf_rule_result_set_result (struct xccdf_rule_result *obj, xccdf_test_result_type_t newval)
 
bool xccdf_rule_result_set_version (struct xccdf_rule_result *obj, const char *newval)
 
bool xccdf_rule_result_set_idref (struct xccdf_rule_result *obj, const char *newval)
 
bool xccdf_rule_result_add_ident (struct xccdf_rule_result *obj, struct xccdf_ident *item)
 
bool xccdf_rule_result_add_fix (struct xccdf_rule_result *obj, struct xccdf_fix *item)
 
bool xccdf_rule_result_add_check (struct xccdf_rule_result *obj, struct xccdf_check *item)
 
bool xccdf_rule_result_add_override (struct xccdf_rule_result *obj, struct xccdf_override *item)
 
bool xccdf_rule_result_add_message (struct xccdf_rule_result *obj, struct xccdf_message *item)
 
bool xccdf_rule_result_add_instance (struct xccdf_rule_result *obj, struct xccdf_instance *item)
 

Data Fields

char * idref
 
xccdf_role_t role
 
char * time
 
float weight
 
xccdf_level_t severity
 
xccdf_test_result_type_t result
 
char * version
 
struct oscap_listoverrides
 
struct oscap_listidents
 
struct oscap_listmessages
 
struct oscap_listinstances
 
struct oscap_listfixes
 
struct oscap_listchecks
 

The documentation for this struct was generated from the following files: