cpe_platform Struct Reference
[Private membersCPE Language]

Single platform representation in CPE language. More...

#include <cpelang_priv.h>

Data Fields

struct xml_metadata xml
struct oscap_listtitles
char * id
char * remark
struct cpe_testexpr expr

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_platformcpe_platform_parse (xmlTextReaderPtr reader)
 Parse CPE platform structure.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cpe_platform_export (const struct cpe_platform *platform, xmlTextWriterPtr writer)
 Function for export CPE platform element.
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.



const char * cpe_platform_get_id (const struct cpe_platform *item)
 cpe_platform functions to get id
const char * cpe_platform_get_remark (const struct cpe_platform *item)
 cpe_platform functions to get remark
struct oscap_title_iteratorcpe_platform_get_titles (const struct cpe_platform *item)
 cpe_platform functions to get titles
struct cpe_testexprcpe_platform_get_expr (const struct cpe_platform *item)
 cpe_platform functions to get test expression
Add functions

Get XML namespace from CPE lang model

Functions to add member to list. Return value is true if added succesfuly or false in case of error.



bool cpe_platform_add_title (struct cpe_platform *platform, struct oscap_title *title)
 Add title to platform.
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_platformcpe_platform_new (void)
 Constructor of CPE Platform.
Set functions

Set functions assign values to members of structures except lists.

For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller.



bool cpe_platform_set_id (struct cpe_platform *platform, const char *new_id)
 Set ID of CPE platform.
bool cpe_platform_set_remark (struct cpe_platform *platform, const char *new_remark)
 Set remark of CPE platform.
Free functions

Destructors of CVE model structures.

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



void cpe_platform_free (struct cpe_platform *platform)
 Free function of CPE Platform.

Detailed Description

Single platform representation in CPE language.


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