xccdf_policy_model Struct Reference
[XCCDF_POLICY]

XCCDF policy model structure contains xccdf_benchmark as reference to Benchmark element in XML file and list of policies that are abstract structure of Profile element from benchmark file. More...

#include <xccdf_policy.h>

Public Member Functions

struct xccdf_policy_modelxccdf_policy_model_new (struct xccdf_benchmark *benchmark)
 Constructor of Policy Model structure.
void xccdf_policy_model_free (struct xccdf_policy_model *)
 Destructor of Policy Model structure.
bool xccdf_policy_model_register_engine_callback (struct xccdf_policy_model *model, char *sys, void *func, void *usr)
 Function to register callback for checking system For Python use xccdf_policy_model_register_engine_callback_py.
bool xccdf_policy_model_register_output_callback (struct xccdf_policy_model *model, oscap_reporter func, void *usr)
 Function to register output callback for checking system that will be called after each rule evaluation.
Evaluators



bool xccdf_policy_model_register_engine_oval (struct xccdf_policy_model *model, struct oval_agent_session *sess)
 Function to register predefined oval callback for XCCDF evaluation proccess.
Getters

Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise.



struct xccdf_benchmarkxccdf_policy_model_get_benchmark (const struct xccdf_policy_model *item)
 Get Benchmark from Policy Model.
struct xccdf_policy_iteratorxccdf_policy_model_get_policies (const struct xccdf_policy_model *model)
 Get policies from Policy Model.
struct xccdf_result_iteratorxccdf_policy_get_results (const struct xccdf_policy *policy)
 Get results of all XCCDF Policy results.
struct xccdf_resultxccdf_policy_get_result_by_id (struct xccdf_policy *policy, const char *id)
 Get XCCDF Result structure by it's idetificator if there is one.
struct xccdf_policyxccdf_policy_model_get_policy_by_id (struct xccdf_policy_model *policy_model, const char *id)
 Get XCCDF Policy from Policy model by speciefied ID of Profile.
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.



bool xccdf_policy_model_add_policy (struct xccdf_policy_model *, struct xccdf_policy *)
 Add Policy to Policy Model.
bool xccdf_policy_add_result (struct xccdf_policy *policy, struct xccdf_result *item)
 Add result to XCCDF Policy Model.

Data Fields

struct xccdf_benchmarkbenchmark
 Benchmark element (root element of XML file).
struct oscap_listpolicies
 List of xccdf_policy structures.
struct oscap_listcallbacks
 Callbacks for checking engines (see callback_t).

Detailed Description

XCCDF policy model structure contains xccdf_benchmark as reference to Benchmark element in XML file and list of policies that are abstract structure of Profile element from benchmark file.

Handle all policies for given XCCDF benchmark.


The documentation for this struct was generated from the following files:

Generated on 14 Jul 2010 for Open SCAP Library by  doxygen 1.6.1