cpe_item Struct Reference
[Private membersCPE Dictionary]

Structure representing single CPE dictionary item. More...

#include <cpedict_priv.h>

Data Fields

struct xml_metadata xml
struct cpe_namename
struct oscap_listtitles
struct cpe_namedeprecated
char * deprecation_date
struct oscap_listreferences
struct oscap_listchecks
struct oscap_listnotes
struct cpe_item_metadatametadata

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_itemcpe_item_parse (xmlTextReaderPtr reader)
 New dictionary item from XML.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cpe_item_export (const struct cpe_item *item, xmlTextWriterPtr writer)
 Exporting function for CPE item.
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.



struct cpe_namecpe_item_get_name (const struct cpe_item *item)
 cpe_item functions to get variable member name
struct cpe_namecpe_item_get_deprecated (const struct cpe_item *item)
 cpe_item functions to get variable member deprecated
const char * cpe_item_get_deprecation_date (const struct cpe_item *item)
 cpe_item functions to get variable member date
struct cpe_item_metadatacpe_item_get_metadata (const struct cpe_item *item)
 cpe_item functions to get metadata of cpe_item
struct cpe_reference_iteratorcpe_item_get_references (const struct cpe_item *item)
 cpe_item functions to get CPE references
struct cpe_check_iteratorcpe_item_get_checks (const struct cpe_item *item)
 cpe_item functions to get CPE checks
struct oscap_title_iteratorcpe_item_get_titles (const struct cpe_item *item)
 cpe_item functions to get CPE titles
struct oscap_title_iteratorcpe_item_get_notes (const struct cpe_item *item)
 cpe_item functions to get CPE notes
Free functions

Destructors of CVE model structures.

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



void cpe_item_free (struct cpe_item *item)
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_itemcpe_item_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_item_set_deprecation_date (struct cpe_item *item, const char *new_deprecation_date)
Add functions

Functions to add member to list.

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



bool cpe_item_add_reference (struct cpe_item *item, struct cpe_reference *new_reference)
bool cpe_item_add_check (struct cpe_item *item, struct cpe_check *new_check)
bool cpe_item_add_title (struct cpe_item *item, struct oscap_title *new_title)
bool cpe_item_add_note (struct cpe_item *item, struct oscap_title *new_title)
Remove functions

Functions removing member elements from CPE data structures.



void cpe_item_iterator_remove (struct cpe_item_iterator *it)

Detailed Description

Structure representing single CPE dictionary item.


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