cve_reference Struct Reference
[Private membersCVE]

Structure holding CVE reference data. More...

#include <cve_priv.h>

Data Fields

struct xml_metadata xml
char * value
char * href
char * type
char * source

Related Functions

(Note that these are not member functions.)



Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cve_reference_export (const struct cve_reference *refer, xmlTextWriterPtr writer)
 Export CVE reference to XML file.
Get functions

Functions for getting attributes from CVE model structures.

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 * cve_reference_get_value (const struct cve_reference *ref)
 Get CVE reference values.
const char * cve_reference_get_href (const struct cve_reference *ref)
 Get CVE reference href.
const char * cve_reference_get_type (const struct cve_reference *ref)
 Get CVE reference type.
const char * cve_reference_get_source (const struct cve_reference *ref)
 Get CVE reference source.
Set functions

Set functions assign values to members of structures except lists.

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



bool cve_reference_set_value (struct cve_reference *reference, const char *new_value)
 Set value of CVE reference.
bool cve_reference_set_href (struct cve_reference *reference, const char *new_href)
 Set href of CVE reference.
bool cve_reference_set_type (struct cve_reference *reference, const char *new_type)
 Set type of CVE reference.
bool cve_reference_set_source (struct cve_reference *reference, const char *new_source)
 Set source of CVE reference.
New functions

Constructors of CVE model structures.

Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller.



struct cve_referencecve_reference_new (void)
 New CVE reference.
Free functions

Destructors of CVE model structures.

Functions free structures with all members recursively. For simple deletion of entity use remove functions.



void cve_reference_free (struct cve_reference *ref)
 Free CVE reference.

Detailed Description

Structure holding CVE reference data.


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

Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1