Open SCAP Library
Toggle main menu visibility
Loading...
Searching...
No Matches
src
source
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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
49
struct
oscap_source
*oscap_source_new_take_memory(
char
*buffer,
size_t
size,
const
char
*
filepath
);
50
59
struct
oscap_source
*
oscap_source_new_from_xmlDoc
(xmlDoc *doc,
const
char
*
filepath
);
60
68
xmlTextReader *
oscap_source_get_xmlTextReader
(
struct
oscap_source
*source);
69
77
xmlDoc *
oscap_source_get_xmlDoc
(
struct
oscap_source
*source);
78
86
xmlDoc *
oscap_source_pop_xmlDoc
(
struct
oscap_source
*source);
87
88
#endif
oscap.h
General OpenScap functions and types.
oscap_source
Definition
oscap_source.c:66
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:263
oscap_source::oscap_source_pop_xmlDoc
xmlDoc * oscap_source_pop_xmlDoc(struct oscap_source *source)
Get a DOM representation of this resource.
Definition
oscap_source.c:338
oscap_source::filepath
char * filepath
Filepath (if originated from file).
Definition
oscap_source.c:71
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:134
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:176
Generated by
1.17.0