OpenVAS Scanner 21.4.1
pluginscheduler.h
Go to the documentation of this file.
1/* Portions Copyright (C) 2009-2021 Greenbone Networks GmbH
2 * Portions Copyright (C) 2006 Software in the Public Interest, Inc.
3 * Based on work Copyright (C) 1998 - 2006 Tenable Network Security, Inc.
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
26#ifndef PLUGINSCHEDULER_H
27#define PLUGINSCHEDULER_H
28
29#include <glib.h>
30
32
34{
38};
39
41{
42 char *oid;
43 GSList *deps;
45};
46
48
49#define PLUG_RUNNING ((struct scheduler_plugin *) 0x02)
50
52plugins_scheduler_init (const char *, int, int *);
53
55
57
59
61
62#endif
plugin_status
Definition: pluginscheduler.h:34
@ PLUGIN_STATUS_RUNNING
Definition: pluginscheduler.h:36
@ PLUGIN_STATUS_DONE
Definition: pluginscheduler.h:37
@ PLUGIN_STATUS_UNRUN
Definition: pluginscheduler.h:35
void plugins_scheduler_stop(plugins_scheduler_t)
Definition: pluginscheduler.c:491
struct plugins_scheduler * plugins_scheduler_t
Definition: pluginscheduler.h:47
plugins_scheduler_t plugins_scheduler_init(const char *, int, int *)
Definition: pluginscheduler.c:315
int plugins_scheduler_count_active(plugins_scheduler_t)
Definition: pluginscheduler.c:333
struct scheduler_plugin * plugins_scheduler_next(plugins_scheduler_t)
Definition: pluginscheduler.c:434
void plugins_scheduler_free(plugins_scheduler_t)
Definition: pluginscheduler.c:526
Definition: pluginscheduler.c:50
Definition: pluginscheduler.h:41
enum plugin_status running_state
Definition: pluginscheduler.h:44
GSList * deps
Definition: pluginscheduler.h:43
char * oid
Definition: pluginscheduler.h:42