cpe_vendor Struct Reference
[Private membersCPE Dictionary]

Structure with information about vendor. More...

#include <cpedict_priv.h>

Related Functions

(Note that these are not member functions.)



Parse functions

Functions for parsing structures from XML.

Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller.



struct cpe_vendorcpe_vendor_parse (xmlTextReaderPtr reader)
 Parsing function to parse vendors of CPE dictionary.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cpe_vendor_export (const struct cpe_vendor *vendor, xmlTextWriterPtr writer)
 Exporting function for CPE vendor.
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 * cpe_vendor_get_value (const struct cpe_vendor *item)
 cpe_vendor functions to get vendor value
struct oscap_title_iteratorcpe_vendor_get_titles (const struct cpe_vendor *item)
 cpe_vendor functions to get vendor titles
struct cpe_product_iteratorcpe_vendor_get_products (const struct cpe_vendor *item)
 cpe_vendor functions to get vendor products
Free functions

Destructors of CVE model structures.

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



void cpe_vendor_free (struct cpe_vendor *vendor)
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 cpe_vendorcpe_vendor_new (void)
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 cpe_vendor_set_value (struct cpe_vendor *vendor, const char *new_value)
Add functions

Functions to add member to list.

Return value is true if added succesfuly or false in case of error.



bool cpe_vendor_add_title (struct cpe_vendor *vendor, struct oscap_title *new_title)
bool cpe_vendor_add_product (struct cpe_vendor *vendor, struct cpe_product *new_product)

Detailed Description

Structure with information about vendor.


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