| 1 | /** |
| 2 | * @file oval_probe_impl.h |
| 3 | * @brief OVAL probe interface private header |
| 4 | * @author "Daniel Kopecek" <[email protected]> |
| 5 | * |
| 6 | * @addtogroup PROBEINTERFACE |
| 7 | * @{ |
| 8 | */ |
| 9 | /* |
| 10 | * Copyright 2009--2013 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 26 | * |
| 27 | * Authors: |
| 28 | * "Daniel Kopecek" <[email protected]> |
| 29 | */ |
| 30 | |
| 31 | #pragma once |
| 32 | #ifndef OVAL_PROBE_IMPL_H |
| 33 | #define OVAL_PROBE_IMPL_H |
| 34 | |
| 35 | #include "oval_definitions_impl.h" |
| 36 | #include "oval_agent_api_impl.h" |
| 37 | #include "oval_parser_impl.h" |
| 38 | #include "public/oval_system_characteristics.h" |
| 39 | #include "../common/util.h" |
| 40 | #include "public/oval_probe.h" |
| 41 | #include "probes/_probe-api.h" |
| 42 | |
| 43 | #include "public/oval_probe_session.h" |
| 44 | #include "public/oval_probe.h" |
| 45 | |
| 46 | |
| 47 | #define OVAL_PROBE_SCHEME "queue" |
| 48 | |
| 49 | #define OVAL_PROBE_MAXRETRY 0 |
| 50 | |
| 51 | int oval_probe_query_test(oval_probe_session_t *sess, struct oval_test *test); |
| 52 | |
| 53 | |
| 54 | extern probe_ncache_t *OSCAP_GSYM(ncache); |
| 55 | |
| 56 | typedef struct { |
| 57 | oval_subtype_t type; |
| 58 | const char *name; |
| 59 | } oval_subtypedsc_t; |
| 60 | |
| 61 | void oval_probe_tblinit(void); |
| 62 | const char *oval_subtype_to_str(oval_subtype_t subtype); |
| 63 | |
| 64 | int oval_probe_hint_definition(oval_probe_session_t *sess, struct oval_definition *definition, int variable_instance_hint); |
| 65 | |
| 66 | #endif /* OVAL_PROBE_IMPL_H */ |
| 67 | /// @} |