/home/pvrabec/project/openscap/openscap-0.6.0/src/CPE/cpedict_priv.h File Reference
Interface to Common Platform Enumeration (CPE) Dictionary.
More...
#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include <stdlib.h>
#include "cpeuri.h"
#include "../common/public/oscap.h"
#include "../common/util.h"
#include "../common/elements.h"
Go to the source code of this file.
Detailed Description
Interface to Common Platform Enumeration (CPE) Dictionary.
See more details at http://nvd.nist.gov/cpe.cfm
Function Documentation
void cpe_dict_export |
( |
const struct cpe_dict_model * |
dict, |
|
|
xmlTextWriterPtr |
writer | |
|
) |
| | |
Internal export function for CPE dictionary model.
- Parameters:
-
| dict | CPE dictionary |
| writer | xmlTextWriterPtr representing XML model |
void cpe_dict_model_export_xml |
( |
const struct cpe_dict_model * |
dict, |
|
|
const char * |
file | |
|
) |
| | |
Export function for CPE dictionary model.
- Parameters:
-
| dict | CPE dictionary structure |
| target | OSCAP exporting target |
struct cpe_dict_model* cpe_dict_model_parse |
( |
xmlTextReaderPtr |
reader |
) |
[read] |
Load new CPE dictionary from XML node.
- Parameters:
-
| node | file name of dictionary to import |
- Returns:
- new dictionary
- Return values:
-
struct cpe_dict_model* cpe_dict_model_parse_xml |
( |
const char * |
file |
) |
[read] |
Function to parse XML to CPE dictionary model.
- Parameters:
-
| source | Structure of name and encoding of importing XML file |
void cpe_generator_export |
( |
const struct cpe_generator * |
generator, |
|
|
xmlTextWriterPtr |
writer | |
|
) |
| | |
Exporting function for CPE generator - information of XML document.
- Parameters:
-
| generator | CPE generator structure |
| writer | xmlTextWriterPtr representing XML model |
struct cpe_generator* cpe_generator_parse |
( |
xmlTextReaderPtr |
reader |
) |
[read] |
Parse generator part of CPE dictionary XML file.
- Parameters:
-
| reader | xmlTextReaderPtr representing XML model |
- Returns:
- new structure cpe_generator
void cpe_item_export |
( |
const struct cpe_item * |
item, |
|
|
xmlTextWriterPtr |
writer | |
|
) |
| | |
Exporting function for CPE item.
- Parameters:
-
| item | CPE item structure |
| writer | xmlTextWriterPtr representing XML model |
struct cpe_item* cpe_item_parse |
( |
xmlTextReaderPtr |
reader |
) |
[read] |
New dictionary item from XML.
- Parameters:
-
- Returns:
- new dictionary item
- Return values:
-
void cpe_vendor_export |
( |
const struct cpe_vendor * |
vendor, |
|
|
xmlTextWriterPtr |
writer | |
|
) |
| | |
Exporting function for CPE vendor.
- Parameters:
-
| vendor | CPE vendor structure |
| writer | xmlTextWriterPtr representing XML model |
struct cpe_vendor* cpe_vendor_parse |
( |
xmlTextReaderPtr |
reader |
) |
[read] |
Parsing function to parse vendors of CPE dictionary.
- Parameters:
-
| reader | xmlTextReaderPtr representing XML model |
- Returns:
- new structure cpe_vendor