22 #ifndef OSCAP_SOURCE_H
23 #define OSCAP_SOURCE_H
80 struct oscap_source *oscap_source_new_from_memory(
const char *buffer,
size_t size,
const char *
filepath);
172 int oscap_source_get_raw_memory(
struct oscap_source *source,
char **buffer,
size_t *size);
Definition: reporter.c:31
General OpenScap functions and types.
char * filepath
Filepath (if originated from file)
Definition: oscap_source.c:67
const char * oscap_source_get_filepath(struct oscap_source *source)
Get filepath of the given resource.
Definition: oscap_source.c:194
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:406
int oscap_source_validate_schematron(struct oscap_source *source, const char *outfile)
Validate the SCAP document against schematron assertions.
Definition: oscap_source.c:348
enum oscap_document_type oscap_document_type_t
SCAP document type identifiers.
Definition: oscap_source.c:62
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:324
const char * oscap_source_readable_origin(const struct oscap_source *source)
Returns human readable description of oscap_source origin.
Definition: oscap_source.c:155
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:176
const 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:354