Open SCAP Library
Toggle main menu visibility
Loading...
Searching...
No Matches
src
source
public
oscap_source.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_H
23
#define OSCAP_SOURCE_H
24
25
#ifdef HAVE_CONFIG_H
26
#include <config.h>
27
#endif
28
29
#include <stddef.h>
30
31
#include "
oscap.h
"
32
#include "oscap_export.h"
33
59
struct
oscap_source
;
60
68
OSCAP_API
struct
oscap_source
*oscap_source_new_from_file(
const
char
*filepath);
69
83
OSCAP_API
struct
oscap_source
*oscap_source_new_from_memory(
const
char
*buffer,
size_t
size,
const
char
*filepath);
84
90
OSCAP_API
struct
oscap_source
*oscap_source_clone(
struct
oscap_source
*old);
91
96
OSCAP_API
void
oscap_source_free(
struct
oscap_source
*source);
97
102
OSCAP_API
void
oscap_source_free_xmlDoc(
struct
oscap_source
*source);
103
110
OSCAP_API
const
char
*oscap_source_get_filepath(
struct
oscap_source
*source);
111
122
OSCAP_API
oscap_document_type_t
oscap_source_get_scap_type(
struct
oscap_source
*source);
123
130
OSCAP_API
const
char
*oscap_source_get_schema_version(
struct
oscap_source
*source);
131
139
OSCAP_API
int
oscap_source_validate(
struct
oscap_source
*source, xml_reporter
reporter
,
void
*user);
140
148
OSCAP_API
int
oscap_source_validate_schematron(
struct
oscap_source
*source);
149
156
OSCAP_API
const
char
*oscap_source_readable_origin(
const
struct
oscap_source
*source);
157
166
OSCAP_API
int
oscap_source_save_as(
struct
oscap_source
*source,
const
char
*filename);
167
175
OSCAP_API
int
oscap_source_to_fd(
struct
oscap_source
*source,
int
fd);
176
189
OSCAP_API
int
oscap_source_get_raw_memory(
struct
oscap_source
*source,
char
**buffer,
size_t
*size);
190
191
#endif
oscap_document_type_t
enum oscap_document_type oscap_document_type_t
SCAP document type identifiers.
oscap.h
General OpenScap functions and types.
oscap_source
Definition
oscap_source.c:66
reporter
Definition
reporter.c:31
Generated by
1.18.0