/home/brq/plautrba/devel/src/openscap.git/openscap-0.8.2/src/CPE/cpelang_priv.h File Reference
Interface to Common Platform Enumeration (CPE) Language.
More...
#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include "cpelang.h"
#include "../common/util.h"
#include "../common/list.h"
#include "../common/elements.h"
#include "../common/public/oscap.h"
Go to the source code of this file.
Detailed Description
Interface to Common Platform Enumeration (CPE) Language.
See more details at http://nvd.nist.gov/cpe.cfm
Function Documentation
void cpe_lang_export |
( |
const struct cpe_lang_model * |
spec, |
|
|
xmlTextWriterPtr |
writer | |
|
) |
| | |
Function for export CPE language top element.
- Parameters:
-
| writer | xmlTextWriterPtr structure representing XML model |
| spec | CPE language model structure |
void cpe_lang_model_export_xml |
( |
const struct cpe_lang_model * |
spec, |
|
|
const char * |
file | |
|
) |
| | |
Function for export CPE language model to XML.
- Parameters:
-
| target | structure with exporting information such filename and encoding |
| spec | CPE language model structure |
struct cpe_lang_model* cpe_lang_model_parse |
( |
xmlTextReaderPtr |
reader |
) |
[read] |
Parse function for CPE Lang model.
- Parameters:
-
| reader | xmlTextReaderPtr structure representing XML model |
struct cpe_lang_model* cpe_lang_model_parse_xml |
( |
const char * |
file |
) |
[read] |
Function for parsing XML CPE language file.
- Parameters:
-
| source | structure of import source with filename and encoding |
void cpe_platform_export |
( |
const struct cpe_platform * |
platform, |
|
|
xmlTextWriterPtr |
writer | |
|
) |
| | |
Function for export CPE platform element.
- Parameters:
-
| writer | xmlTextWriterPtr structure representing XML model |
| platform | CPE platform structure |
struct cpe_platform* cpe_platform_parse |
( |
xmlTextReaderPtr |
reader |
) |
[read] |
Parse CPE platform structure.
- Parameters:
-
| reader | xmlTextReaderPtr structure representing XML model |
- Returns:
- cpe_platform structure with CPE platform item
void cpe_testexpr_export |
( |
const struct cpe_testexpr * |
expr, |
|
|
xmlTextWriterPtr |
writer | |
|
) |
| | |
Function for export CPE test expression element.
- Parameters:
-
| writer | xmlTextWriterPtr structure representing XML model |
| expr | CPE test expression structure |
struct cpe_testexpr* cpe_testexpr_parse |
( |
xmlTextReaderPtr |
reader |
) |
[read] |
Parse CPE test expression structure.
- Parameters:
-
| reader | xmlTextReaderPtr structure representing XML model |
- Returns:
- cpe_testexpr structure with CPE test expression item