Open SCAP Library: oscap_source_priv.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

oscap_source_priv.h
1 /*
2 * Copyright 2014 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author:
20 * Šimon Lukašík
21 */
22 #ifndef OSCAP_SOURCE_PRIV_H
23 #define OSCAP_SOURCE_PRIV_H
24
25 #ifdef HAVE_CONFIG_H
26 #include <config.h>
27 #endif
28
29 #include <libxml/parser.h>
30 #include <libxml/xmlreader.h>
31
32 #include "common/util.h"
33 #include "oscap.h"
34 #include "oscap_source.h"
35
36 OSCAP_HIDDEN_START;
37
46 struct oscap_source *oscap_source_new_from_xmlDoc(xmlDoc *doc, const char *filepath);
47
55 xmlTextReader *oscap_source_get_xmlTextReader(struct oscap_source *source);
56
64 xmlDoc *oscap_source_get_xmlDoc(struct oscap_source *source);
65
66 OSCAP_HIDDEN_END;
67
68 #endif
oscap.h
General OpenScap functions and types.
oscap_source::filepath
char * filepath
Filepath (if originated from file)
Definition: oscap_source.c:62
oscap_source::oscap_source_get_xmlDoc
xmlDoc * oscap_source_get_xmlDoc(struct oscap_source *source)
Get a DOM representation of this resource.
Definition: oscap_source.c:157
oscap_source::oscap_source_new_from_xmlDoc
struct oscap_source * oscap_source_new_from_xmlDoc(xmlDoc *doc, const char *filepath)
Build new oscap_source from existing xmlDoc.
Definition: oscap_source.c:93
oscap_source
Definition: oscap_source.c:57
oscap_source::oscap_source_get_xmlTextReader
xmlTextReader * oscap_source_get_xmlTextReader(struct oscap_source *source)
Get an xmlTextReader assigned with this resource.
Definition: oscap_source.c:125