Open SCAP Library
src
CCE
cce_priv.h
1
/*
2
* @file cce_priv.h
3
* \brief Interface to Common Configuration Enumeration (CCE) - internal definitions.
4
*
5
* See more details at http://cce.mitre.org/
6
*/
7
8
/*
9
* Copyright 2008-2009 Red Hat Inc., Durham, North Carolina.
10
* All Rights Reserved.
11
*
12
* This library is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU Lesser General Public
14
* License as published by the Free Software Foundation; either
15
* version 2.1 of the License, or (at your option) any later version.
16
*
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public
23
* License along with this library; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
*
26
* Authors:
27
* Lukas Kuklinek <lkuklinek@redhat.com>
28
* Riley C. Porter <Riley.Porter@g2-inc.com>
29
*/
30
31
#include <libxml/xmlreader.h>
32
33
#include "
cce.h
"
34
#include "../common/list.h"
35
#include "../common/util.h"
36
37
#ifndef _CCE_PRIV_H
38
#define _CCE_PRIV_H
39
40
41
struct
cce
{
42
struct
oscap_list
*entries;
43
struct
oscap_htable
*entry;
44
};
45
46
struct
cce_entry
{
47
char
*id;
48
char
*description;
49
struct
oscap_list
*params;
// list of C-strings
50
struct
oscap_list
*tech_mechs;
// list of C-strings
51
struct
oscap_list
*references;
// list of 'struct cce_reference'
52
};
53
54
struct
cce_reference
{
55
char
*source;
56
char
*value;
57
};
58
59
void
process_node(xmlTextReaderPtr reader,
struct
cce
*
cce
);
60
void
process_description(xmlTextReaderPtr reader,
struct
cce_entry
*
cce
);
61
void
process_parameter(xmlTextReaderPtr reader,
struct
cce_entry
*
cce
);
62
void
process_tech_mech(xmlTextReaderPtr reader,
struct
cce_entry
*
cce
);
63
void
process_refs(xmlTextReaderPtr reader,
struct
cce_entry
*
cce
);
64
65
struct
cce_entry
*cce_entry_new_empty(
void
);
66
void
cce_reference_free(
struct
cce_reference
*ref);
67
void
cce_entry_free(
struct
cce_entry
*ref);
68
69
70
#endif
cce_reference
Structure holding a CCE reference.
Definition:
cce_priv.h:54
cce
Structure holding CCE entries.
Definition:
cce_priv.h:41
cce.h
cce_entry
Structure holding single CCE entry data.
Definition:
cce_priv.h:46
oscap_list
Definition:
list.h:53
oscap_htable
Definition:
list.h:178
Generated by
1.8.14