/home/brq/plautrba/devel/src/openscap.git/openscap-0.9.2/src/common/public/oscap.h File Reference

General OpenScap functions and types. More...

#include <stdbool.h>
#include <wchar.h>
#include "oscap_text.h"
#include "oscap_reference.h"

Go to the source code of this file.

Defines

#define OSCAP_DEPRECATED(func)   func
 This macro will warn, when a deprecated function is used.

Typedefs

typedef enum oscap_document_type oscap_document_type_t
 SCAP document type identifiers.
typedef int(* xml_reporter )(const char *file, int line, const char *msg, void *arg)

Enumerations

enum  oscap_document_type {
  OSCAP_DOCUMENT_OVAL_DEFINITIONS = 1, OSCAP_DOCUMENT_OVAL_VARIABLES, OSCAP_DOCUMENT_OVAL_SYSCHAR, OSCAP_DOCUMENT_OVAL_RESULTS,
  OSCAP_DOCUMENT_OVAL_DIRECTIVES, OSCAP_DOCUMENT_XCCDF, OSCAP_DOCUMENT_CPE_LANGUAGE, OSCAP_DOCUMENT_CPE_DICTIONARY,
  OSCAP_DOCUMENT_CVE_FEED, OSCAP_DOCUMENT_SCE_RESULT, OSCAP_DOCUMENT_SDS, OSCAP_DOCUMENT_ARF
}
 

SCAP document type identifiers.

More...

Functions

void oscap_init (void)
 Initialize OpenSCAP library.
void oscap_cleanup (void)
 Release library internal caches.
const char * oscap_get_version (void)
 Get version of the OpenSCAP library.
int oscap_validate_document (const char *xmlfile, oscap_document_type_t doctype, const char *version, xml_reporter reporter, void *arg)
 Validate a SCAP document file against a XML schema.
int oscap_schematron_validate_document (const char *xmlfile, oscap_document_type_t doctype, const char *version, const char *outfile)
 Validate a SCAP document file against schematron rules.
int oscap_apply_xslt (const char *xmlfile, const char *xsltfile, const char *outfile, const char **params)
 Apply a XSLT stylesheet to a XML file.
const char * oscap_path_to_schemas (void)
 Function returns path used to locate OpenSCAP XML schemas.
const char * oscap_path_to_schematron (void)
 Function returns path used to locate OpenSCAP Schematron files.
int oscap_determine_document_type (const char *document, oscap_document_type_t *doc_type)
 Determine document type.

Detailed Description

General OpenScap functions and types.

Author:
Lukas Kuklinek <lkuklinek@redhat.com>

Generated on 19 Nov 2012 for Open SCAP Library by  doxygen 1.6.1