OpenVAS Scanner  5.1.3
pluginscheduler.h
Go to the documentation of this file.
1 /* OpenVAS
2 * $Id$
3 * Description: header for pluginscheduler.c
4 *
5 * Authors: - Renaud Deraison <deraison@nessus.org> (Original pre-fork develoment)
6 * - Tim Brown <mailto:timb@openvas.org> (Initial fork)
7 * - Laban Mwangi <mailto:labanm@openvas.org> (Renaming work)
8 * - Tarik El-Yassem <mailto:tarik@openvas.org> (Headers section)
9 *
10 * Copyright:
11 * Portions Copyright (C) 2006 Software in the Public Interest, Inc.
12 * Based on work Copyright (C) 1998 - 2006 Tenable Network Security, Inc.
13 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2,
16 * as published by the Free Software Foundation
17 *
18 * This program 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
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 *
27 *
28 */
29 
30 
31 #ifndef PLUGINSCHEDULER_H
32 #define PLUGINSCHEDULER_H
33 
34 #include <glib.h>
35 
36 struct hash;
37 struct plugins_scheduler;
38 
39 
41 {
42  struct hash *parent_hash;
43  char *oid;
45  gboolean enabled;
46 };
47 
48 
50 
51 
52 #define PLUG_RUNNING ((struct scheduler_plugin*)0x02)
53 #define PLUGIN_STATUS_UNRUN 1
54 #define PLUGIN_STATUS_RUNNING 2
55 #define PLUGIN_STATUS_DONE 3
56 #define PLUGIN_STATUS_DONE_AND_CLEANED 4
57 
58 
60 plugins_scheduler_init (const char *, int, int);
61 
62 struct scheduler_plugin *
64 
65 int
67 
68 void
70 
71 #endif
struct scheduler_plugin * plugins_scheduler_next(plugins_scheduler_t)
struct plugins_scheduler * plugins_scheduler_t
plugins_scheduler_t plugins_scheduler_init(const char *, int, int)
void plugins_scheduler_free(plugins_scheduler_t)
int plugins_scheduler_count_active(plugins_scheduler_t)
struct hash * parent_hash