Open SCAP Library: oval_probe.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

oval_probe.h
Go to the documentation of this file.
1
9 /*
10 * Copyright 2009-2010 Red Hat Inc., Durham, North Carolina.
11 * All Rights Reserved.
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 *
27 * Authors:
28 * "Daniel Kopecek" <dkopecek@redhat.com>
29 */
30 #pragma once
31 #ifndef OVAL_PROBE_H
32 #define OVAL_PROBE_H
33
34 #include <stdio.h>
35 #include <stdarg.h>
36 #include <stdint.h>
37 #include "oval_definitions.h"
38 #include "oval_system_characteristics.h"
39 #include "oval_probe_session.h"
40
41 /*
42 * probe session flags
43 */
44 #define OVAL_PDFLAG_NOREPLY 0x0001
45 #define OVAL_PDFLAG_NORECONN 0x0002
46 #define OVAL_PDGLAG_RUNALL 0x0004
47 #define OVAL_PDFLAG_RUNNOW 0x0008
48 #define OVAL_PDFLAG_SLAVE 0x0010
49
50 #define OVAL_PDFLAG_MASK (0x0001|0x0002|0x0004|0x0008|0x0010)
51
57 int oval_probe_query_sysinfo(oval_probe_session_t *sess, struct oval_sysinfo **out_sysinfo) __attribute__ ((nonnull(1, 2)));
58
64 int oval_probe_query_object(oval_probe_session_t *psess, struct oval_object *object, int flags, struct oval_syschar **out_syschar) __attribute__ ((nonnull(1, 2)));
65
72 int oval_probe_query_definition(oval_probe_session_t *sess, const char *id) __attribute__ ((nonnull(1, 2)));
73
80 int oval_probe_query_variable(oval_probe_session_t *sess, struct oval_variable *variable);
81
82 #define OVAL_PROBEMETA_LIST_VERBOSE 0x00000001
83 #define OVAL_PROBEMETA_LIST_DYNAMIC 0x00000002
85 void oval_probe_meta_list(FILE *output, int flags);
86
87 const char *oval_probe_ext_getdir(void);
88 #endif /* OVAL_PROBE_H */
89
oval_sysinfo
General instrumented host description.
Definition: oval_sysInfo.c:44
oval_probe_session.h
OVAL probe session API private header.
oval_probe_query_variable
int int int int oval_probe_query_variable(oval_probe_session_t *sess, struct oval_variable *variable)
Query the specified variable and all its dependencies in order to compute the vector of its values...
Definition: oval_variable.c:247
__attribute__
Definition: _sexp-value.h:42
oval_probe_query_sysinfo
int oval_probe_query_sysinfo(oval_probe_session_t *sess, struct oval_sysinfo **out_sysinfo) __attribute__((nonnull(1
Evaluate system info probe.
oval_variable
An oval variable resolves an oval_value stream which specifies constraints for oval_objects and oval_...
Definition: oval_variable.c:46
oval_system_characteristics.h
oval_syschar
Characteristics bound to an Oval_object.
Definition: oval_syschar.c:48
oval_probe_query_definition
int int int oval_probe_query_definition(oval_probe_session_t *sess, const char *id) __attribute__((nonnull(1
Probe objects required for the evalatuation of the specified definition and update the system charact...
oval_definitions.h
oval_probe_session
OVAL probe session structure.
Definition: _oval_probe_session.h:42
oval_probe_query_object
int int oval_probe_query_object(oval_probe_session_t *psess, struct oval_object *object, int flags, struct oval_syschar **out_syschar) __attribute__((nonnull(1
Evaluate an object.
oval_object
An Oval_object instance describes a set of items to look for on an instrumented host platform...
Definition: oval_object.c:44