Data Structures | |
struct | cpe_check |
Structure representing single CPE check. More... | |
struct | cpe_reference |
CPE dictionary item reference. More... | |
struct | cpe_item |
Structure representing single CPE dictionary item. More... | |
struct | cpe_dict_model |
Structure representing a CPE dictionary. More... | |
struct | cpe_item_metadata |
Structure representing metadata of CPE item. More... | |
struct | cpe_generator |
Structure with information about document. More... | |
struct | cpe_vendor |
Structure with information about vendor. More... | |
struct | cpe_product |
Product of some vendor. More... | |
struct | cpe_version |
Version of product. More... | |
struct | cpe_update |
Update of product version. More... | |
struct | cpe_edition |
Edition of product update. More... | |
struct | cpe_language |
Language of product edition. More... | |
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_model * | cpe_dict_model::cpe_dict_model_parse_xml (const struct oscap_import_source *source) |
Function to parse XML to CPE dictionary model. | |
struct cpe_generator * | cpe_generator::cpe_generator_parse (xmlTextReaderPtr reader) |
Parse generator part of CPE dictionary XML file. | |
struct cpe_item * | cpe_item::cpe_item_parse (xmlTextReaderPtr reader) |
New dictionary item from XML. | |
struct cpe_vendor * | cpe_vendor::cpe_vendor_parse (xmlTextReaderPtr reader) |
Parsing function to parse vendors of CPE dictionary. | |
struct cpe_dict_model * | cpe_dict_model::cpe_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::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_model::cpe_dict_export (const struct cpe_dict_model *dict, xmlTextWriterPtr writer) |
Internal export function for CPE dictionary model. | |
void | cpe_generator::cpe_generator_export (const struct cpe_generator *generator, xmlTextWriterPtr writer) |
Exporting function for CPE generator - information of XML document. | |
void | cpe_item::cpe_item_export (const struct cpe_item *item, xmlTextWriterPtr writer) |
Exporting function for CPE item. | |
void | cpe_vendor::cpe_vendor_export (const struct cpe_vendor *vendor, xmlTextWriterPtr writer) |
Exporting function for CPE vendor. |
void cpe_dict_export | ( | const struct cpe_dict_model * | dict, | |
xmlTextWriterPtr | writer | |||
) | [related, inherited] |
Internal export function for CPE dictionary model.
dict | CPE dictionary | |
writer | xmlTextWriterPtr representing XML model |
void cpe_dict_model_export_xml | ( | const struct cpe_dict_model * | dict, | |
const struct oscap_export_target * | target | |||
) | [related, inherited] |
Export function for CPE dictionary model.
dict | CPE dictionary structure | |
target | OSCAP exporting target |
struct cpe_dict_model * cpe_dict_model_parse | ( | xmlTextReaderPtr | reader | ) | [related, inherited] |
Load new CPE dictionary from XML node.
node | file name of dictionary to import |
NULL | on failure |
struct cpe_dict_model * cpe_dict_model_parse_xml | ( | const struct oscap_import_source * | source | ) | [related, inherited] |
Function to parse XML to CPE dictionary model.
source | Structure of name and encoding of importing XML file |
void cpe_generator_export | ( | const struct cpe_generator * | generator, | |
xmlTextWriterPtr | writer | |||
) | [related, inherited] |
Exporting function for CPE generator - information of XML document.
generator | CPE generator structure | |
writer | xmlTextWriterPtr representing XML model |
struct cpe_generator * cpe_generator_parse | ( | xmlTextReaderPtr | reader | ) | [related, inherited] |
Parse generator part of CPE dictionary XML file.
reader | xmlTextReaderPtr representing XML model |
void cpe_item_export | ( | const struct cpe_item * | item, | |
xmlTextWriterPtr | writer | |||
) | [related, inherited] |
Exporting function for CPE item.
item | CPE item structure | |
writer | xmlTextWriterPtr representing XML model |
struct cpe_item * cpe_item_parse | ( | xmlTextReaderPtr | reader | ) | [related, inherited] |
New dictionary item from XML.
node | cpe-item node |
NULL | on failure |
void cpe_vendor_export | ( | const struct cpe_vendor * | vendor, | |
xmlTextWriterPtr | writer | |||
) | [related, inherited] |
Exporting function for CPE vendor.
vendor | CPE vendor structure | |
writer | xmlTextWriterPtr representing XML model |
struct cpe_vendor * cpe_vendor_parse | ( | xmlTextReaderPtr | reader | ) | [related, inherited] |
Parsing function to parse vendors of CPE dictionary.
reader | xmlTextReaderPtr representing XML model |