OpenVAS Manager  7.0.3~git
otp.h
Go to the documentation of this file.
1 /* OpenVAS Manager
2  * $Id$
3  * Description: Headers for OpenVAS Manager: the OTP library.
4  *
5  * Authors:
6  * Matthew Mundell <matthew.mundell@greenbone.net>
7  *
8  * Copyright:
9  * Copyright (C) 2009 Greenbone Networks GmbH
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #ifndef OPENVAS_MANAGER_OTP_H
27 #define OPENVAS_MANAGER_OTP_H
28 
29 #include "manage.h"
30 #include <glib.h>
31 
32 void
33 init_otp_data ();
34 
35 int
36 process_otp_scanner_input (void (*) ());
37 
42 typedef enum
43 {
46  SCANNER_INIT_DONE_CACHE_MODE, /* Done, when in NVT cache rebuild. */
47  SCANNER_INIT_DONE_CACHE_MODE_UPDATE, /* Done, when in NVT cache update. */
55 
58 
59 extern int scanner_current_loading;
60 extern int scanner_total_loading;
61 
63 void
65 
67 void
69 
71 extern int scanner_init_offset;
72 #endif
int scanner_total_loading
Scanner total number of plugins to be loaded, when still loading.
Definition: otp.c:426
scanner_init_state_t scanner_init_state
The initialisation state of the scanner.
Definition: otp.c:411
scanner_init_state_t
Possible initialisation states of the scanner.
Definition: otp.h:42
int scanner_init_offset
Offset into initialisation string being sent to scanner.
Definition: otp.c:416
void init_otp_data()
Initialise OTP library data.
Definition: otp.c:342
int process_otp_scanner_input(void(*)())
Process any lines available in from_scanner.
Definition: otp.c:781
void reset_scanner_states()
Set the scanner initialisation state, scanner_init_state.
Definition: otp.c:442
void set_scanner_init_state(scanner_init_state_t state)
Set the scanner initialisation state, scanner_init_state.
Definition: otp.c:432
int scanner_current_loading
Scanner current number of loaded plugins, when still loading.
Definition: otp.c:421