Greenbone Vulnerability Manager  8.0.1~git
otp.h
Go to the documentation of this file.
1 /* Copyright (C) 2009-2018 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
25 #ifndef _GVMD_OTP_H
26 #define _GVMD_OTP_H
27 
28 #include "manage.h"
29 
30 #include <glib.h>
31 
32 void
33 init_otp_data ();
34 
35 int
37 
42 typedef enum
43 {
44  SCANNER_INIT_CONNECTED,
45  SCANNER_INIT_DONE,
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. */
48  SCANNER_INIT_GOT_FEED_VERSION,
49  SCANNER_INIT_GOT_PLUGINS,
50  SCANNER_INIT_SENT_COMPLETE_LIST,
51  SCANNER_INIT_SENT_COMPLETE_LIST_UPDATE,
52  SCANNER_INIT_SENT_VERSION,
53  SCANNER_INIT_TOP
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 
73 #endif /* not _GVMD_OTP_H */
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:339
void reset_scanner_states()
Set the scanner initialisation state, scanner_init_state.
Definition: otp.c:444
void set_scanner_init_state(scanner_init_state_t state)
Set the scanner initialisation state, scanner_init_state.
Definition: otp.c:434
int scanner_current_loading
Scanner current number of loaded plugins, when still loading.
Definition: otp.c:421
int process_otp_scanner_input()
Process any lines available in from_scanner.
Definition: otp.c:798