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

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_selectxccdf_select_clone (const struct xccdf_select *select)
 
OSCAP_API struct xccdf_selectxccdf_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_listremarks
 

Detailed Description

XCCDF select option usen in the profile.


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