22 #ifndef OSCAP_SOURCE_H
23 #define OSCAP_SOURCE_H
32 #include "oscap_export.h"
83 OSCAP_API
struct oscap_source *oscap_source_new_from_memory(
const char *buffer,
size_t size,
const char *
filepath);
96 OSCAP_API
void oscap_source_free(
struct oscap_source *source);
175 OSCAP_API
int oscap_source_get_raw_memory(
struct oscap_source *source,
char **buffer,
size_t *size);
Definition: oscap_source.c:66
enum oscap_document_type oscap_document_type_t
SCAP document type identifiers.
Definition: reporter.c:31
OSCAP_API int oscap_source_save_as(struct oscap_source *source, const char *filename)
Store the resource represented by oscap_source to the file.
Definition: oscap_source.c:410
const OSCAP_API char * oscap_source_get_schema_version(struct oscap_source *source)
Get the version of the schema for the particular document type.
Definition: oscap_source.c:358
const OSCAP_API char * oscap_source_readable_origin(const struct oscap_source *source)
Returns human readable description of oscap_source origin.
Definition: oscap_source.c:159
const OSCAP_API char * oscap_source_get_filepath(struct oscap_source *source)
Get filepath of the given resource.
Definition: oscap_source.c:198
OSCAP_API int oscap_source_validate(struct oscap_source *source, xml_reporter reporter, void *user)
Validate the SCAP document against particular XML schema definition.
Definition: oscap_source.c:328
OSCAP_API oscap_document_type_t oscap_source_get_scap_type(struct oscap_source *source)
Get SCAP document type of the given resource.
Definition: oscap_source.c:180
OSCAP_API int oscap_source_validate_schematron(struct oscap_source *source, const char *outfile)
Validate the SCAP document against schematron assertions.
Definition: oscap_source.c:352
char * filepath
Filepath (if originated from file)
Definition: oscap_source.c:71