|
Open SCAP Library
|
XCCDF target fact. More...
#include <xccdf_benchmark.h>
Public Member Functions | |
| struct xccdf_target_fact * | xccdf_target_fact_new (void) |
| struct xccdf_target_fact * | xccdf_target_fact_clone (const struct xccdf_target_fact *tf) |
| void | xccdf_target_fact_free (struct xccdf_target_fact *fact) |
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_value_type_t | xccdf_target_fact_get_type (const struct xccdf_target_fact *item) |
| const char * | xccdf_target_fact_get_value (const struct xccdf_target_fact *item) |
| const char * | xccdf_target_fact_get_name (const struct xccdf_target_fact *item) |
Setters | |
For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller. | |
| bool | xccdf_target_fact_set_string (struct xccdf_target_fact *fact, const char *str) |
| bool | xccdf_target_fact_set_number (struct xccdf_target_fact *fact, xccdf_numeric val) |
| bool | xccdf_target_fact_set_boolean (struct xccdf_target_fact *fact, bool val) |
| bool | xccdf_target_fact_set_name (struct xccdf_target_fact *obj, const char *newval) |
Data Fields | |
| xccdf_value_type_t | type |
| char * | name |
| char * | value |
XCCDF target fact.
1.8.10