CCE


Data Structures

struct  cce
struct  list_cstring
struct  list_refs

Files

file  cce.h
 Interface to Common Configuration Enumeration (CCE).
file  cce_priv.h
 Interface to Common Configuration Enumeration (CCE) - internal definitions.
file  list_cstring.h
 Interface to Common Configuration Enumeration (CCE) - list of strings.
file  list_refs.h
 Interface to Common Configuration Enumeration (CCE) - list of references.

Functions

void cce_init (struct cce *cce)
 Initialize cce structure.
void cce_clear (struct cce *cce)
 Clear cce structure.
bool cce_validate (const char *filename)
 Vlaidate CCE XML file.
void cce_parse (char *docname, struct cce *cce, char *id)
 Parse CCE XML file.
void process_node (xmlTextReaderPtr reader, struct cce *cce, char *id)
void process_description (xmlTextReaderPtr reader, struct cce *cce)
void process_parameter (xmlTextReaderPtr reader, struct cce *cce)
void process_tech_mech (xmlTextReaderPtr reader, struct cce *cce)
void process_refs (xmlTextReaderPtr reader, struct cce *cce)
void list_cstring_add (struct list_cstring *list, char *)
void list_cstring_clear (struct list_cstring *list)
void list_refs_add (struct list_refs *list, char *source, char *value)
void list_refs_clear (struct list_refs *list)

Variables

char * cce::description
struct list_cstring * cce::parameters
struct list_cstring * cce::technicalmechanisms
struct list_refs * cce::references
char * list_cstring::value
char * list_refs::source
char * list_refs::value

Function Documentation

void cce_clear ( struct cce *  cce  ) 

Clear cce structure.

Deinitializes CCE structure and releases used resources.

Parameters:
cce pointer to target structure

void cce_init ( struct cce *  cce  ) 

Initialize cce structure.

Creates valid empty CCE structure.

Parameters:
cce pointer to a structure to be initialized

void cce_parse ( char *  docname,
struct cce *  cce,
char *  id 
)

Parse CCE XML file.

Parse CCE XML and store constents of entry with given ID into cce structure.

Parameters:
docname name of the XML file to be processed
cce CCE struct where a result will be stored
id CCE ID of entry which should be extracted

bool cce_validate ( const char *  filename  ) 

Vlaidate CCE XML file.

Parameters:
filename file to be validated
Returns:
result of validation (true / false)


Generated on Thu Apr 30 13:45:39 2009 for Open SCAP Library by  doxygen 1.5.7.1