OpenVAS Manager  7.0.3~git
omp.h
Go to the documentation of this file.
1 /* OpenVAS Manager
2  * $Id$
3  * Description: Headers for OpenVAS Manager: the OMP 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_OMP_H
27 #define OPENVAS_MANAGER_OMP_H
28 
29 #include "types.h"
30 #include <openvas/misc/openvas_server.h>
31 #include <glib.h>
32 #include <gnutls/gnutls.h>
33 #include <sys/types.h>
34 
38 #define TO_CLIENT_BUFFER_SIZE 26214400
39 
40 int
41 init_omp (GSList*, int, const gchar*, int, int, int, int, void (*) (),
42  int (*) (openvas_connection_t *, gchar*),
43  int);
44 
45 void
46 init_omp_process (int, const gchar*, int (*) (const char*, void*), void*,
47  gchar **);
48 
49 int
51 
52 int
54 
56 extern char to_client[];
59 
60 #endif
int process_omp_client_input()
Process any XML available in from_client.
Definition: omp.c:30895
void init_omp_process(int, const gchar *, int(*)(const char *, void *), void *, gchar **)
Initialise OMP library data for a process.
Definition: omp.c:30846
buffer_size_t to_client_start
The start of the data in the to_client buffer.
Definition: omp.c:4984
int process_omp_change()
Deal with any changes caused by other processes.
Definition: omp.c:31098
buffer_size_t to_client_end
The end of the data in the to_client buffer.
Definition: omp.c:4988
char to_client[]
Buffer of output to the client.
Definition: omp.c:4979
unsigned int buffer_size_t
Definition: types.h:31
int init_omp(GSList *, int, const gchar *, int, int, int, int, void(*)(), int(*)(openvas_connection_t *, gchar *), int)
Initialise OMP library.
Definition: omp.c:30814