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

Detailed Description

CPE dictionary item reference.

#include <cpe_dict.h>

Public Member Functions

void cpe_reference_free (struct cpe_reference *ref)
 
struct cpe_referencecpe_reference_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.

const char * cpe_reference_get_href (const struct cpe_reference *item)
 cpe_reference functions to get href of reference More...
 
const char * cpe_reference_get_content (const struct cpe_reference *item)
 cpe_reference functions to get content of reference More...
 
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.

bool cpe_reference_set_href (struct cpe_reference *reference, const char *new_href)
 
bool cpe_reference_set_content (struct cpe_reference *reference, const char *new_content)
 

Data Fields

char * href
 
char * content
 

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