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);
102OSCAP_API
void oscap_source_free_xmlDoc(
struct oscap_source *source);
189OSCAP_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_validate_schematron(struct oscap_source *source)
Validate the SCAP document against schematron assertions.
Definition oscap_source.c:369
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:434
OSCAP_API const char * oscap_source_get_filepath(struct oscap_source *source)
Get filepath of the given resource.
Definition oscap_source.c:208
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:190
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:169
char * filepath
Filepath (if originated from file)
Definition oscap_source.c:71
OSCAP_API int oscap_source_to_fd(struct oscap_source *source, int fd)
Store the resource represented by oscap_source to the file descriptor.
Definition oscap_source.c:446
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:385
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:345