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

General OpenScap functions and types. More...

#include <stdbool.h>
#include <wchar.h>
#include "text.h"
#include "reference.h"
#include "reporter.h"

Go to the source code of this file.

Defines

#define OSCAP_FOREACH_GENERIC(itype, vtype, val, init_val, code)
 Iterate over an array, given an iterator.
#define OSCAP_FOREACH(type, val, init_val, code)   OSCAP_FOREACH_GENERIC(type, struct type *, val, init_val, code)
 Iterate over an array, given an iterator.
#define OSCAP_FOREACH_STR(val, init_val, code)   OSCAP_FOREACH_GENERIC(oscap_string, const char *, val, init_val, code)
 Iterate over an array of strings, given an iterator.
#define OSCAP_FOR_GENERIC(itype, vtype, val, init_val)
 Iterate over an array, given an iterator.
#define OSCAP_FOR(type, val, init_val)   OSCAP_FOR_GENERIC(type, struct type *, val, init_val)
 Iterate over an array, given an iterator.
#define OSCAP_FOR_STR(val, init_val)   OSCAP_FOR_GENERIC(oscap_string, const char *, val, init_val)
 Iterate over an array of strings, given an iterator.

Typedefs

typedef enum oscap_document_type oscap_document_type_t
 SCAP document type identifiers.

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_SCE_RESULT
}
 

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.
bool oscap_validate_document (const char *xmlfile, oscap_document_type_t doctype, const char *version, oscap_reporter reporter, void *arg)
 Validate a SCAP document file against a XML schema.
bool oscap_apply_xslt (const char *xmlfile, const char *xsltfile, const char *outfile, const char **params)
 Apply a XSLT stylesheet to a XML file.
bool oscap_apply_xslt_var (const char *xmlfile, const char *xsltfile, const char *outfile, const char **params, const char *pathvar, const char *defpath)
 Apply XSLT stylesheet to a XML file.

Variables

const char *const OSCAP_OS_PATH_DELIM
 OS-specific filesystem path delimiter.
const char *const OSCAP_SCHEMA_PATH
 Default XML Schema path (if not overridden by the environment variable).
const char *const OSCAP_XSLT_PATH
 Default XSLT path (if not overridden by the environment variable).

Detailed Description

General OpenScap functions and types.

Author:
Lukas Kuklinek <lkuklinek@redhat.com>

Generated on 30 Mar 2012 for Open SCAP Library by  doxygen 1.6.1