32#include "oscap_export.h"
83OSCAP_API
struct oscap_source *oscap_source_new_from_memory(
const char *buffer,
size_t size,
const char *
filepath);
96OSCAP_API
void oscap_source_free(
struct oscap_source *source);
175OSCAP_API
int oscap_source_get_raw_memory(
struct oscap_source *source,
char **buffer,
size_t *size);
enum oscap_document_type oscap_document_type_t
SCAP document type identifiers.
General OpenScap functions and types.
Definition: oscap_source.c:66
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:441
OSCAP_API const char * oscap_source_get_filepath(struct oscap_source *source)
Get filepath of the given resource.
Definition: oscap_source.c:198
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:359
OSCAP_API const char * oscap_source_readable_origin(const struct oscap_source *source)
Returns human readable description of oscap_source origin.
Definition: oscap_source.c:159
char * filepath
Filepath (if originated from file)
Definition: oscap_source.c:71
OSCAP_API 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:386
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:335
Definition: reporter.c:31