OpenVAS Scanner  5.1.3
pluginlaunch.h
Go to the documentation of this file.
1 /* OpenVAS
2 * $Id$
3 * Description: pluginlaunch.c header.
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 #ifndef __PLUGINLAUNCH_H__
31 #define __PLUGINLAUNCH_H__
32 
33 #include "pluginload.h" /* for struct pl_class_t */
34 #include "pluginscheduler.h" /* for struct plugins_scheduler_t */
35 
36 void pluginlaunch_init (const char *);
37 void pluginlaunch_wait (void);
39 void pluginlaunch_stop (int);
40 int plugin_launch (struct arglist *, struct scheduler_plugin *,
41  struct host_info *, kb_t, char *);
42 
43 void pluginlaunch_child_cleanup (void);
46 
47 int wait_for_children (void);
48 #endif
void pluginlaunch_init(const char *)
Definition: pluginlaunch.c:344
void pluginlaunch_enable_parrallel_checks(void)
Definition: pluginlaunch.c:372
void pluginlaunch_wait_for_free_process(void)
Waits and 'pushes' processes until the number of running processes has changed.
Definition: pluginlaunch.c:499
void pluginlaunch_wait(void)
Waits and 'pushes' processes until num_running_processes is 0.
Definition: pluginlaunch.c:470
void pluginlaunch_stop(int)
Definition: pluginlaunch.c:379
int wait_for_children(void)
Definition: pluginlaunch.c:126
int plugin_launch(struct arglist *, struct scheduler_plugin *, struct host_info *, kb_t, char *)
Definition: pluginlaunch.c:414
void pluginlaunch_disable_parrallel_checks(void)
Definition: pluginlaunch.c:366
void pluginlaunch_child_cleanup(void)
Cleanup file descriptors used by the processes array. To be called by the child process running the p...
Definition: pluginlaunch.c:486