00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <libxml/xmlreader.h>
00032
00033 #include "cce.h"
00034 #include "../common/list.h"
00035 #include "../common/util.h"
00036
00037 #ifndef _CCE_PRIV_H
00038 #define _CCE_PRIV_H
00039
00040 OSCAP_HIDDEN_START;
00041
00042 struct cce {
00043 struct oscap_list *entries;
00044 struct oscap_htable *entry;
00045 };
00046
00047 struct cce_entry {
00048 char *id;
00049 char *description;
00050 struct oscap_list *params;
00051 struct oscap_list *tech_mechs;
00052 struct oscap_list *references;
00053 };
00054
00055 struct cce_reference {
00056 char *source;
00057 char *value;
00058 };
00059
00060 void process_node(xmlTextReaderPtr reader, struct cce *cce);
00061 void process_description(xmlTextReaderPtr reader, struct cce_entry *cce);
00062 void process_parameter(xmlTextReaderPtr reader, struct cce_entry *cce);
00063 void process_tech_mech(xmlTextReaderPtr reader, struct cce_entry *cce);
00064 void process_refs(xmlTextReaderPtr reader, struct cce_entry *cce);
00065
00066 struct cce_entry *cce_entry_new_empty(void);
00067 void cce_reference_free(struct cce_reference *ref);
00068 void cce_entry_free(struct cce_entry *ref);
00069
00070 OSCAP_HIDDEN_END;
00071
00072 #endif