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

XCCDF instance. More...

#include <xccdf_benchmark.h>

Public Member Functions

OSCAP_API struct xccdf_instancexccdf_instance_new (void)
 
OSCAP_API struct xccdf_instancexccdf_instance_clone (const struct xccdf_instance *instance)
 
OSCAP_API void xccdf_instance_free (struct xccdf_instance *inst)
 
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 const char * xccdf_instance_get_context (const struct xccdf_instance *item)
 
OSCAP_API const char * xccdf_instance_get_parent_context (const struct xccdf_instance *item)
 
OSCAP_API const char * xccdf_instance_get_content (const struct xccdf_instance *item)
 
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_instance_set_context (struct xccdf_instance *obj, const char *newval)
 
OSCAP_API bool xccdf_instance_set_parent_context (struct xccdf_instance *obj, const char *newval)
 
OSCAP_API bool xccdf_instance_set_content (struct xccdf_instance *obj, const char *newval)
 

Data Fields

char * context
 
char * parent_context
 
char * content
 

Detailed Description

XCCDF instance.

See Also
xccdf_rule_result

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