Loading...
Searching...
No Matches
oval_probe.h
Go to the documentation of this file.
/*
* Copyright 2009-2010 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* "Daniel Kopecek" <dkopecek@redhat.com>
*/
#pragma once
#ifndef OVAL_PROBE_H
#define OVAL_PROBE_H
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include "oval_definitions.h"
#include "oval_system_characteristics.h"
#include "oval_probe_session.h"
#include "oscap_export.h"
/*
* probe session flags
*/
#define OVAL_PDFLAG_NOREPLY 0x0001
#define OVAL_PDFLAG_NORECONN 0x0002
#define OVAL_PDGLAG_RUNALL 0x0004
#define OVAL_PDFLAG_RUNNOW 0x0008
#define OVAL_PDFLAG_SLAVE 0x0010
#define OVAL_PDFLAG_MASK (0x0001|0x0002|0x0004|0x0008|0x0010)
OSCAP_API int oval_probe_query_sysinfo(oval_probe_session_t *sess, struct oval_sysinfo **out_sysinfo) __attribute__ ((nonnull(1, 2)));
OSCAP_API 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)));
OSCAP_API int oval_probe_query_variable(oval_probe_session_t *sess, struct oval_variable *variable);
#endif /* OVAL_PROBE_H */
oval_probe_query_variable
OSCAP_API int OSCAP_API int OSCAP_API 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.
oval_probe_query_sysinfo
OSCAP_API int oval_probe_query_sysinfo(oval_probe_session_t *sess, struct oval_sysinfo **out_sysinfo) __attribute__((nonnull(1
Evaluate system info probe.
oval_probe_query_object
OSCAP_API int OSCAP_API 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_definitions.h
oval_probe_session.h
OVAL probe session API private header.
oval_system_characteristics.h
oval_object
An Oval_object instance describes a set of items to look for on an instrumented host platform.
Definition oval_object.c:45
oval_syschar
Characteristics bound to an Oval_object.
Definition oval_syschar.c:47
oval_sysinfo
General instrumented host description.
Definition oval_sysInfo.c:45
oval_variable
An oval variable resolves an oval_value stream which specifies constraints for oval_object s and ova...
Definition oval_variable.c:50