Open SCAP Library
|
XCCDF instance. More...
#include <xccdf_benchmark.h>
Public Member Functions | |
OSCAP_API struct xccdf_instance * | xccdf_instance_new (void) |
OSCAP_API struct xccdf_instance * | xccdf_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 |
XCCDF instance.