Greenbone Vulnerability Manager  8.0.0~git
gmp.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_GMP_H
26 #define _GVMD_GMP_H
27 
28 #include "manage.h"
29 #include "types.h"
30 
31 #include <glib.h>
32 #include <gnutls/gnutls.h>
33 #include <gvm/util/serverutils.h>
34 #include <sys/types.h>
35 
39 #define TO_CLIENT_BUFFER_SIZE 26214400
40 
44 #define TRUNCATE_TEXT_LENGTH 10000000
45 
49 #define TRUNCATE_TEXT_SUFFIX "[...]\n(text truncated)"
50 
51 int
52 init_gmp (GSList *,
53  int,
54  const gchar *,
55  int,
56  int,
57  int,
58  int,
59  manage_connection_forker_t,
60  int);
61 
62 void
63 init_gmp_process (int,
64  const gchar *,
65  int (*) (const char *, void *),
66  void *,
67  gchar **);
68 
69 int
71 
72 int
74 
76 extern char to_client[];
77 extern buffer_size_t to_client_start;
78 extern buffer_size_t to_client_end;
79 
80 #endif /* not _GVMD_MANAGE_H */
char to_client[]
Buffer of output to the client.
Definition: gmp.c:4800
void init_gmp_process(int, const gchar *, int(*)(const char *, void *), void *, gchar **)
Initialise GMP library data for a process.
Definition: gmp.c:30188
int init_gmp(GSList *, int, const gchar *, int, int, int, int, manage_connection_forker_t, int)
Initialise GMP library.
Definition: gmp.c:30159
buffer_size_t to_client_start
The start of the data in the to_client buffer.
Definition: gmp.c:4805
int process_gmp_client_input()
Process any XML available in from_client.
Definition: gmp.c:30242
int process_gmp_change()
Deal with any changes caused by other processes.
Definition: gmp.c:30445
buffer_size_t to_client_end
The end of the data in the to_client buffer.
Definition: gmp.c:4809