xccdf_policy_priv.h
/*
* Copyright 2013 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* Simon Lukasik <slukasik@redhat.com>
*
*/
#pragma once
#ifndef _OSCAP_XCCDF_POLICY_PRIV_H
#define _OSCAP_XCCDF_POLICY_PRIV_H
#include "common/util.h"
#include "public/xccdf_policy.h"
OSCAP_HIDDEN_START;
#define XCCDF_POLICY_OUTCB_START "urn:xccdf:system:callback:start"
#define XCCDF_POLICY_OUTCB_END "urn:xccdf:system:callback:output"
int xccdf_policy_resolve_fix_substitution(struct xccdf_policy *policy, struct xccdf_fix *fix, struct xccdf_result *test_result);
const char * xccdf_policy_get_value_of_item(struct xccdf_policy * policy, struct xccdf_item * item);
int xccdf_policy_rule_result_remediate(struct xccdf_policy *policy, struct xccdf_rule_result *rr, struct xccdf_fix *fix, struct xccdf_result *test_result);
int xccdf_policy_check_evaluate(struct xccdf_policy * policy, struct xccdf_check * check);
void xccdf_policy_model_unregister_callbacks(struct xccdf_policy_model *model, const char *sys);
int xccdf_policy_remediate(struct xccdf_policy *policy, struct xccdf_result *result);
int xccdf_policy_report_cb(struct xccdf_policy *policy, const char *sysname, void *rule);
struct xccdf_benchmark *xccdf_policy_get_benchmark(const struct xccdf_policy *policy);
bool xccdf_policy_model_platforms_are_applicable(struct xccdf_policy_model *model, struct oscap_string_iterator *platforms);
bool xccdf_policy_model_item_is_applicable(struct xccdf_policy_model *model, struct xccdf_item *item);
OSCAP_HIDDEN_END;
#endif