Open SCAP Library
|
XCCDF select option usen in the profile. More...
#include <xccdf_benchmark.h>
Public Member Functions | |
OSCAP_API void | xccdf_select_free (struct xccdf_select *sel) |
OSCAP_API struct xccdf_select * | xccdf_select_clone (const struct xccdf_select *select) |
OSCAP_API struct xccdf_select * | xccdf_select_new (void) |
Getters | |
Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise. | |
OSCAP_API bool | xccdf_select_get_selected (const struct xccdf_select *select) |
OSCAP_API const char * | xccdf_select_get_item (const struct xccdf_select *select) |
OSCAP_API struct oscap_text_iterator * | xccdf_select_get_remarks (const struct xccdf_select *select) |
Setters | |
For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller. | |
OSCAP_API bool | xccdf_select_set_item (struct xccdf_select *obj, const char *newval) |
OSCAP_API bool | xccdf_select_set_selected (struct xccdf_select *obj, bool newval) |
OSCAP_API bool | xccdf_select_add_remark (struct xccdf_select *obj, struct oscap_text *item) |
Data Fields | |
char * | item |
bool | selected |
struct oscap_list * | remarks |
XCCDF select option usen in the profile.