Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
cpelang_priv.h File Reference

Detailed Description

Interface to Common Platform Enumeration (CPE) Language.

See more details at http://nvd.nist.gov/cpe.cfm

#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include "cpe_lang.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.

Data Structures

struct  cpe_testexpr
 CPE language boolean expression. More...
 

Functions

struct cpe_lang_modelcpe_lang_model_parse (xmlTextReaderPtr reader)
 Parse function for CPE Lang model. More...
 
struct cpe_platformcpe_platform_parse (xmlTextReaderPtr reader)
 Parse CPE platform structure. More...
 
struct cpe_testexprcpe_testexpr_parse (xmlTextReaderPtr reader)
 Parse CPE test expression structure. More...
 
void cpe_lang_model_export_xml (const struct cpe_lang_model *spec, const char *file)
 Function for export CPE language model to XML. More...
 
void cpe_lang_export (const struct cpe_lang_model *spec, xmlTextWriterPtr writer)
 Function for export CPE language top element. More...
 
void cpe_platform_export (const struct cpe_platform *platform, xmlTextWriterPtr writer)
 Function for export CPE platform element. More...
 
void cpe_testexpr_export (const struct cpe_testexpr *expr, xmlTextWriterPtr writer)
 Function for export CPE test expression element. More...
 
char * cpe_lang_model_detect_version_priv (xmlTextReader *reader)
 

Function Documentation

void cpe_lang_export ( const struct cpe_lang_model spec,
xmlTextWriterPtr  writer 
)

Function for export CPE language top element.

Parameters
writerxmlTextWriterPtr structure representing XML model
specCPE 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
specCPE language model structure
filefilename
struct cpe_lang_model* cpe_lang_model_parse ( xmlTextReaderPtr  reader)

Parse function for CPE Lang model.

Parameters
readerxmlTextReaderPtr structure representing XML model
void cpe_platform_export ( const struct cpe_platform platform,
xmlTextWriterPtr  writer 
)

Function for export CPE platform element.

Parameters
writerxmlTextWriterPtr structure representing XML model
platformCPE platform structure
struct cpe_platform* cpe_platform_parse ( xmlTextReaderPtr  reader)

Parse CPE platform structure.

Parameters
readerxmlTextReaderPtr 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
writerxmlTextWriterPtr structure representing XML model
exprCPE test expression structure
struct cpe_testexpr* cpe_testexpr_parse ( xmlTextReaderPtr  reader)

Parse CPE test expression structure.

Parameters
readerxmlTextReaderPtr structure representing XML model
Returns
cpe_testexpr structure with CPE test expression item