Open SCAP Library
Loading...
Searching...
No Matches
probe-table.h
1/*
2 * Copyright 2018 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * "Jan Černý" <jcerny@redhat.com>
21 */
22
23
24#ifndef OPENSCAP_PROBE_TABLE_H
25#define OPENSCAP_PROBE_TABLE_H
26
27#include <stdio.h>
28#include "probe-api.h"
29
30typedef void *(*probe_init_function_t)(void);
31typedef int (*probe_main_function_t)(probe_ctx *ctx, void *arg);
32typedef void (*probe_fini_function_t)(void *probe_arg);
33typedef int (*probe_offline_mode_function_t)(void);
34
35OSCAP_API probe_init_function_t probe_table_get_init_function(oval_subtype_t type);
36OSCAP_API probe_main_function_t probe_table_get_main_function(oval_subtype_t type);
37OSCAP_API probe_fini_function_t probe_table_get_fini_function(oval_subtype_t type);
38OSCAP_API probe_offline_mode_function_t probe_table_get_offline_mode_function(oval_subtype_t type);
39
40OSCAP_API void probe_table_list(FILE *output);
41OSCAP_API int probe_table_size(void);
42OSCAP_API bool probe_table_exists(oval_subtype_t type);
43OSCAP_API oval_subtype_t probe_table_at_index(int idx);
44
45#endif /* OPENSCAP_OPENSCAP_PROBE_TABLE_H */
oval_subtype_t
Unknown subtypes.
Definition oval_types.h:127
Probe API public header.
Definition probe.h:89