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

Detailed Description

Can be either <target-id-ref> or some other element.

See Also
xccdf_result
Note
XCCDF 1.2+ only

#include <xccdf_benchmark.h>

Public Member Functions

struct xccdf_target_identifierxccdf_target_identifier_new (void)
 
struct xccdf_target_identifierxccdf_target_identifier_clone (const struct xccdf_target_identifier *ti)
 
void xccdf_target_identifier_free (struct xccdf_target_identifier *ti)
 
Getters

Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise.

void * xccdf_target_identifier_get_xml_node (const struct xccdf_target_identifier *item)
 
const char * xccdf_target_identifier_get_system (const struct xccdf_target_identifier *item)
 
const char * xccdf_target_identifier_get_href (const struct xccdf_target_identifier *item)
 
const char * xccdf_target_identifier_get_name (const struct xccdf_target_identifier *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_identifier_set_xml_node (struct xccdf_target_identifier *ti, void *node)
 
bool xccdf_target_identifier_set_system (struct xccdf_target_identifier *ti, const char *newval)
 
bool xccdf_target_identifier_set_href (struct xccdf_target_identifier *ti, const char *newval)
 
bool xccdf_target_identifier_set_name (struct xccdf_target_identifier *ti, const char *newval)
 

Data Fields

bool any_element
 
xmlNodePtr element
 
char * system
 
char * href
 
char * name
 

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