Open SCAP Library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
CPE
cpedict_priv.h
Go to the documentation of this file.
1
8
/*
9
* Copyright 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
* Maros Barabas <mbarabas@redhat.com>
28
*/
29
30
#ifndef CPEDICT_PRIV_H_
31
#define CPEDICT_PRIV_H_
32
33
#include <libxml/xmlreader.h>
34
#include <libxml/xmlwriter.h>
35
#include <stdlib.h>
36
37
#include "
cpe_name.h
"
38
39
#include "../common/public/oscap.h"
40
#include "../common/util.h"
41
#include "../common/elements.h"
42
46
OSCAP_HIDDEN_START;
47
/* @endcond */
48
53
struct
cpe_check
;
54
59
struct
cpe_reference
;
60
65
struct
cpe_item
;
66
71
struct
cpe_dict_model
;
72
77
struct
cpe_item_metadata
;
78
83
struct
cpe_generator
;
84
89
struct
cpe_vendor
;
94
struct
cpe_product
;
99
struct
cpe_version
;
104
struct
cpe_update
;
109
struct
cpe_edition
;
114
struct
cpe_language
;
115
120
struct
cpe_dict_model
*
cpe_dict_model_parse_xml
(
const
char
*file);
121
127
struct
cpe_generator
*
cpe_generator_parse
(xmlTextReaderPtr reader);
128
135
struct
cpe_item
*
cpe_item_parse
(xmlTextReaderPtr reader);
136
142
struct
cpe_vendor
*
cpe_vendor_parse
(xmlTextReaderPtr reader);
143
150
struct
cpe_dict_model
*
cpe_dict_model_parse
(xmlTextReaderPtr reader);
151
157
void
cpe_dict_model_export_xml
(
const
struct
cpe_dict_model
*dict,
const
char
*file);
158
164
void
cpe_dict_export
(
const
struct
cpe_dict_model
*dict, xmlTextWriterPtr writer);
165
171
void
cpe_generator_export
(
const
struct
cpe_generator
*generator, xmlTextWriterPtr writer);
172
179
void
cpe_item_export
(
const
struct
cpe_item
*item, xmlTextWriterPtr writer,
int
base_version);
180
186
void
cpe_vendor_export
(
const
struct
cpe_vendor
*vendor, xmlTextWriterPtr writer);
187
188
/* <cpe-list>
189
* */
190
struct
cpe_dict_model
{
// the main node
191
struct
oscap_list
*items;
// dictionary items
192
struct
oscap_list
*vendors;
193
int
base_version;
194
struct
cpe_generator
*generator;
195
char
* origin_file;
196
};
197
201
OSCAP_HIDDEN_END;
202
/* @endcond */
203
204
#endif
Generated by
1.8.3.1