Open SCAP Library
Toggle main menu visibility
Loading...
Searching...
No Matches
src
OVAL
public
oval_session.h
Go to the documentation of this file.
1
14
15
/*
16
* Copyright 2015 Red Hat Inc., Durham, North Carolina.
17
* All Rights Reserved.
18
*
19
* This library is free software; you can redistribute it and/or
20
* modify it under the terms of the GNU Lesser General Public
21
* License as published by the Free Software Foundation; either
22
* version 2.1 of the License, or (at your option) any later version.
23
*
24
* This library is distributed in the hope that it will be useful,
25
* but WITHOUT ANY WARRANTY; without even the implied warranty of
26
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27
* Lesser General Public License for more details.
28
*
29
* You should have received a copy of the GNU Lesser General Public
30
* License along with this library; if not, write to the Free Software
31
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32
*
33
* Author:
34
* Michal Šrubař <msrubar@redhat.com>
35
*/
36
37
#ifndef OVAL_SESSION_H_
38
#define OVAL_SESSION_H_
39
#include "oscap_download_cb.h"
40
#include "oscap_export.h"
41
46
struct
oval_session
;
47
59
OSCAP_API
struct
oval_session
*oval_session_new(
const
char
*filename);
60
73
OSCAP_API
void
oval_session_set_variables(
struct
oval_session
*session,
const
char
*filename);
74
87
OSCAP_API
void
oval_session_set_directives(
struct
oval_session
*session,
const
char
*filename);
88
97
OSCAP_API
void
oval_session_set_validation(
struct
oval_session
*session,
bool
validate,
bool
full_validation);
98
109
OSCAP_API
void
oval_session_set_datastream_id(
struct
oval_session
*session,
const
char
*
id
);
110
120
OSCAP_API
void
oval_session_set_component_id(
struct
oval_session
*session,
const
char
*
id
);
121
131
OSCAP_API
void
oval_session_set_results_export(
struct
oval_session
*session,
const
char
*filename);
132
142
OSCAP_API
void
oval_session_set_report_export(
struct
oval_session
*session,
const
char
*filename);
143
154
OSCAP_API
void
oval_session_set_xml_reporter(
struct
oval_session
*session, xml_reporter fn);
155
169
OSCAP_API
int
oval_session_load(
struct
oval_session
*session);
170
185
OSCAP_API
int
oval_session_evaluate_id(
struct
oval_session
*session,
const
char
*
id
,
oval_result_t
*result);
186
203
OSCAP_API
int
oval_session_evaluate(
struct
oval_session
*session, agent_reporter fn,
void
*arg);
204
222
OSCAP_API
int
oval_session_export(
struct
oval_session
*session);
223
232
OSCAP_API
void
oval_session_set_export_system_characteristics(
struct
oval_session
*session,
bool
export);
233
242
OSCAP_API
OSCAP_DEPRECATED
(
void
oval_session_set_remote_resources(
struct
oval_session
*session,
bool
allowed, download_progress_calllback_t callback));
243
256
OSCAP_API
void
oval_session_configure_remote_resources(
struct
oval_session
*session,
bool
allowed,
const
char
*local_files, download_progress_calllback_t callback);
257
263
OSCAP_API
void
oval_session_free(
struct
oval_session
*session);
264
265
#endif
OSCAP_DEPRECATED
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition
oscap.h:50
oval_result_t
oval_result_t
Result values for the evaluation of an OVAL Definition or an OVAL Test.
Definition
oval_types.h:445
oval_session
A structure encapsulating the context of OVAL operations.
Definition
oval_session.c:53
Generated by
1.18.0