Open SCAP Library

oval_probe.h

Go to the documentation of this file.
00001 
00009 /*
00010  * Copyright 2009-2010 Red Hat Inc., Durham, North Carolina.
00011  * All Rights Reserved.
00012  *
00013  * This library is free software; you can redistribute it and/or
00014  * modify it under the terms of the GNU Lesser General Public
00015  * License as published by the Free Software Foundation; either
00016  * version 2.1 of the License, or (at your option) any later version.
00017  *
00018  * This library is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  * Lesser General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU Lesser General Public
00024  * License along with this library; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  *
00027  * Authors:
00028  *      "Daniel Kopecek" <dkopecek@redhat.com>
00029  */
00030 #pragma once
00031 #ifndef OVAL_PROBE_H
00032 #define OVAL_PROBE_H
00033 
00034 #include <stdio.h>
00035 #include <stdarg.h>
00036 #include <stdint.h>
00037 #include "oval_definitions.h"
00038 #include "oval_system_characteristics.h"
00039 #include "oval_probe_session.h"
00040 
00041 /*
00042  * probe session flags
00043  */
00044 #define OVAL_PDFLAG_NOREPLY  0x0001     
00045 #define OVAL_PDFLAG_NORECONN 0x0002     
00046 #define OVAL_PDGLAG_RUNALL   0x0004     
00047 #define OVAL_PDFLAG_RUNNOW   0x0008     
00048 #define OVAL_PDFLAG_SLAVE    0x0010
00049 
00050 #define OVAL_PDFLAG_MASK (0x0001|0x0002|0x0004|0x0008|0x0010)
00051 
00057 int oval_probe_query_sysinfo(oval_probe_session_t *sess, struct oval_sysinfo **out_sysinfo) __attribute__ ((nonnull(1, 2)));
00058 
00064 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)));
00065 
00072 OSCAP_DEPRECATED(int oval_probe_query_definition(oval_probe_session_t *sess, const char *id)) __attribute__ ((nonnull(1, 2)));
00073 
00080 int oval_probe_query_variable(oval_probe_session_t *sess, struct oval_variable *variable);
00081 
00082 #define OVAL_PROBEMETA_LIST_VERBOSE 0x00000001 
00083 #define OVAL_PROBEMETA_LIST_DYNAMIC 0x00000002 
00084 #define OVAL_PROBEMETA_LIST_OTYPE   0x00000004 
00086 void oval_probe_meta_list(FILE *output, int flags);
00087 
00088 const char *oval_probe_ext_getdir(void);
00089 #endif                          /* OVAL_PROBE_H */
00090 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines