cpe_dict_model Struct Reference
[Private membersCPE Dictionary]

Structure representing a CPE dictionary. More...

#include <cpedict_priv.h>

Data Fields

struct oscap_listxmlns
struct xml_metadata xml
struct oscap_listitems
struct oscap_listvendors
struct cpe_generatorgenerator

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_dict_modelcpe_dict_model_parse_xml (const struct oscap_import_source *source)
 Function to parse XML to CPE dictionary model.
struct cpe_dict_modelcpe_dict_model_parse (xmlTextReaderPtr reader)
 Load new CPE dictionary from XML node.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cpe_dict_model_export_xml (const struct cpe_dict_model *dict, const struct oscap_export_target *target)
 Export function for CPE dictionary model.
void cpe_dict_export (const struct cpe_dict_model *dict, xmlTextWriterPtr writer)
 Internal export function for CPE dictionary model.
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_item_iteratorcpe_dict_model_get_items (const struct cpe_dict_model *item)
 cpe_dict_model functions to get CPE items
struct cpe_vendor_iteratorcpe_dict_model_get_vendors (const struct cpe_dict_model *item)
 cpe_dict_model functions to get vendors
struct xml_metadata_iteratorcpe_dict_model_get_xmlns (const struct cpe_dict_model *model)
 Get XML namespace from CPE dict model.
Free functions

Destructors of CVE model structures.

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



void cpe_dict_model_free (struct cpe_dict_model *dict)
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_dict_modelcpe_dict_model_new (void)
Add functions

Functions to add member to list.

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



bool cpe_dict_model_add_vendor (struct cpe_dict_model *dict, struct cpe_vendor *new_vendor)
bool cpe_dict_model_add_xml (struct cpe_dict_model *model, struct xml_metadata *xml)
 Add XML namespace to CPE dict model.
Other functions



void cpe_dict_model_export (const struct cpe_dict_model *dict, const struct oscap_export_target *target)
 Write the dict_model to a file.
struct cpe_dict_modelcpe_dict_model_import (const struct oscap_import_source *source)
 Load new CPE dictionary from file.
bool cpe_name_match_dict (struct cpe_name *cpe, struct cpe_dict_model *dict)
 Verify wether given CPE is known according to specified dictionary.
bool cpe_name_match_dict_str (const char *cpe, struct cpe_dict_model *dict)
 Verify if CPE given by string is known according to specified dictionary.

Detailed Description

Structure representing a CPE dictionary.


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