OpenVAS Scanner  5.1.3
utils.h
Go to the documentation of this file.
1 /* OpenVAS
2 * $Id$
3 * Description: utils.c headerfile.
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 _OPENVAS_UTILS_H
32 #define _OPENVAS_UTILS_H
33 
34 #include <openvas/misc/arglists.h> /* for struct arglist */
35 
37 {
38  char *name;
39  int soc;
40  int psoc;
41  struct attack_atom *next;
42 };
43 struct arglist *sort_plugins_by_type (struct arglist *);
44 int get_max_hosts_number (void);
45 int get_max_checks_number (void);
46 
47 struct arglist *list2arglist (char *);
48 int common (struct arglist *, struct arglist *);
49 
50 int process_alive (pid_t);
51 int data_left (int);
52 
53 void wait_for_children1 (void);
54 
55 int
56 is_scanner_only_pref (const char *);
57 
58 void
59 send_printf (int, char *, ...) __attribute__ ((format (printf, 2, 3)));
60 
61 #endif
void wait_for_children1(void)
Definition: utils.c:202
void send_printf(int, char *,...) __attribute__((format(printf
struct arglist * sort_plugins_by_type(struct arglist *)
int get_max_checks_number(void)
Definition: utils.c:150
int psoc
Definition: utils.h:40
int common(struct arglist *, struct arglist *)
Returns 1 if the two arglists have a name in common.
Definition: utils.c:54
int data_left(int)
Definition: utils.c:193
struct arglist * list2arglist(char *)
Definition: utils.c:81
struct attack_atom * next
Definition: utils.h:41
int get_max_hosts_number(void)
Definition: utils.c:120
int is_scanner_only_pref(const char *)
Definition: utils.c:221
int process_alive(pid_t)
Definition: utils.c:180
int soc
Definition: utils.h:39
char * name
Definition: utils.h:38