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

Detailed Description

XCCDF score.

See Also
xccdf_result

#include <xccdf_benchmark.h>

Public Member Functions

struct xccdf_scorexccdf_score_new (void)
 
struct xccdf_scorexccdf_score_clone (const struct xccdf_score *score)
 
void xccdf_score_free (struct xccdf_score *score)
 
Getters

Return value is pointer to structure's member.

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

xccdf_numeric xccdf_score_get_maximum (const struct xccdf_score *item)
 
xccdf_numeric xccdf_score_get_score (const struct xccdf_score *item)
 
const char * xccdf_score_get_system (const struct xccdf_score *item)
 
Setters

For lists use add functions.

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

bool xccdf_score_set_maximum (struct xccdf_score *obj, xccdf_numeric newval)
 
bool xccdf_score_set_score (struct xccdf_score *obj, xccdf_numeric newval)
 
bool xccdf_score_set_system (struct xccdf_score *obj, const char *newval)
 

Data Fields

xccdf_numeric maximum
 
xccdf_numeric score
 
char * system
 

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