OpenVAS Scanner
7.0.0~git
pluginscheduler.h
Go to the documentation of this file.
1
/* Portions Copyright (C) 2009-2019 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
31
struct
plugins_scheduler
;
32
33
enum
plugin_status
34
{
35
PLUGIN_STATUS_UNRUN
= 0,
36
PLUGIN_STATUS_RUNNING
,
37
PLUGIN_STATUS_DONE
,
38
};
39
40
struct
scheduler_plugin
41
{
42
char
*
oid
;
43
GSList *
deps
;
44
enum
plugin_status
running_state
;
45
};
46
47
typedef
struct
plugins_scheduler
*
plugins_scheduler_t
;
48
49
#define PLUG_RUNNING ((struct scheduler_plugin *) 0x02)
50
51
plugins_scheduler_t
52
plugins_scheduler_init
(
const
char
*,
int
,
int
);
53
54
struct
scheduler_plugin
*
plugins_scheduler_next
(
plugins_scheduler_t
);
55
56
int
plugins_scheduler_count_active
(
plugins_scheduler_t
);
57
58
void
plugins_scheduler_stop
(
plugins_scheduler_t
);
59
60
void
plugins_scheduler_free
(
plugins_scheduler_t
);
61
62
#endif
plugins_scheduler
Definition:
pluginscheduler.c:49
scheduler_plugin
Definition:
pluginscheduler.h:40
PLUGIN_STATUS_RUNNING
@ PLUGIN_STATUS_RUNNING
Definition:
pluginscheduler.h:36
plugins_scheduler_t
struct plugins_scheduler * plugins_scheduler_t
Definition:
pluginscheduler.h:47
plugins_scheduler_free
void plugins_scheduler_free(plugins_scheduler_t)
Definition:
pluginscheduler.c:536
plugin_status
plugin_status
Definition:
pluginscheduler.h:33
PLUGIN_STATUS_DONE
@ PLUGIN_STATUS_DONE
Definition:
pluginscheduler.h:37
scheduler_plugin::running_state
enum plugin_status running_state
Definition:
pluginscheduler.h:44
plugins_scheduler_stop
void plugins_scheduler_stop(plugins_scheduler_t)
Definition:
pluginscheduler.c:501
plugins_scheduler_count_active
int plugins_scheduler_count_active(plugins_scheduler_t)
Definition:
pluginscheduler.c:343
scheduler_plugin::deps
GSList * deps
Definition:
pluginscheduler.h:43
scheduler_plugin::oid
char * oid
Definition:
pluginscheduler.h:42
plugins_scheduler_init
plugins_scheduler_t plugins_scheduler_init(const char *, int, int)
Definition:
pluginscheduler.c:310
PLUGIN_STATUS_UNRUN
@ PLUGIN_STATUS_UNRUN
Definition:
pluginscheduler.h:35
plugins_scheduler_next
struct scheduler_plugin * plugins_scheduler_next(plugins_scheduler_t)
Definition:
pluginscheduler.c:444
src
pluginscheduler.h
Generated on Wed Jan 29 2020 00:00:00 for OpenVAS Scanner by
1.8.17