Open SCAP Library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
OVAL
public
oval_agent_api.h
Go to the documentation of this file.
1
16
/*
17
* Copyright 2009,2010 Red Hat Inc., Durham, North Carolina.
18
* All Rights Reserved.
19
*
20
* This library is free software; you can redistribute it and/or
21
* modify it under the terms of the GNU Lesser General Public
22
* License as published by the Free Software Foundation; either
23
* version 2.1 of the License, or (at your option) any later version.
24
*
25
* This library is distributed in the hope that it will be useful,
26
* but WITHOUT ANY WARRANTY; without even the implied warranty of
27
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28
* Lesser General Public License for more details.
29
*
30
* You should have received a copy of the GNU Lesser General Public
31
* License along with this library; if not, write to the Free Software
32
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33
*
34
*/
35
36
37
#ifndef OVAL_AGENT_API_H_
38
#define OVAL_AGENT_API_H_
39
40
#include "
oval_definitions.h
"
41
#include "
oval_system_characteristics.h
"
42
#include "
oval_results.h
"
43
#include "
oval_variables.h
"
44
#include "oval_probe.h"
45
#include "
reporter.h
"
46
47
struct
oval_agent_session
;
48
54
typedef
struct
oval_agent_session
oval_agent_session_t
;
55
61
oval_agent_session_t
*
oval_agent_new_session
(
struct
oval_definition_model
* model,
const
char
* name);
62
69
void
oval_agent_set_product_name
(
oval_agent_session_t
*,
char
*);
70
75
int
oval_agent_eval_definition
(
oval_agent_session_t
*,
const
char
*);
76
81
int
oval_agent_get_definition_result
(
oval_agent_session_t
*,
const
char
*,
oval_result_t
*);
82
86
int
oval_agent_reset_session
(
oval_agent_session_t
* ag_sess);
87
91
int
oval_agent_abort_session
(
oval_agent_session_t
*ag_sess);
92
97
int
oval_agent_eval_system
(
oval_agent_session_t
* ag_sess,
oscap_reporter
cb,
void
*arg);
98
102
struct
oval_results_model
*
oval_agent_get_results_model
(
oval_agent_session_t
* ag_sess);
106
const
char
*
oval_agent_get_filename
(
oval_agent_session_t
* ag_sess);
107
111
void
oval_agent_destroy_session
(
oval_agent_session_t
* ag_sess);
112
113
118
#endif
Generated by
1.8.1.1