/* * Copyright 2018 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: * "Jan Černý" */ #ifndef OPENSCAP_PROBE_TABLE_H #define OPENSCAP_PROBE_TABLE_H #include #include "probe-api.h" typedef void *(*probe_init_function_t)(void); typedef int (*probe_main_function_t)(probe_ctx *ctx, void *arg); typedef void (*probe_fini_function_t)(void *probe_arg); typedef int (*probe_offline_mode_function_t)(void); OSCAP_API probe_init_function_t probe_table_get_init_function(oval_subtype_t type); OSCAP_API probe_main_function_t probe_table_get_main_function(oval_subtype_t type); OSCAP_API probe_fini_function_t probe_table_get_fini_function(oval_subtype_t type); OSCAP_API probe_offline_mode_function_t probe_table_get_offline_mode_function(oval_subtype_t type); OSCAP_API void probe_table_list(FILE *output); OSCAP_API int probe_table_size(void); OSCAP_API bool probe_table_exists(oval_subtype_t type); OSCAP_API oval_subtype_t probe_table_at_index(int idx); #endif /* OPENSCAP_OPENSCAP_PROBE_TABLE_H */