OpenVAS Libraries  8.0.3
osp.h
Go to the documentation of this file.
1 /* openvas-libraries/base
2  * $Id$
3  * Description: API for OSP communication.
4  *
5  * Authors:
6  * Hani Benhabiles <hani.benhabiles@greenbone.net>
7  *
8  * Copyright:
9  * Copyright (C) 2014 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_OSP_H
27 #define _OPENVAS_OSP_H
28 
29 
31 
32 typedef enum {
41 
42 typedef struct osp_param osp_param_t;
43 
45 osp_connection_new (const char *, int, const char *, const char *,
46  const char *);
47 
48 int
49 osp_get_version (osp_connection_t *, char **, char **, char **, char **,
50  char **, char **);
51 
52 char *
53 osp_start_scan (osp_connection_t *, const char *, GHashTable *);
54 
55 int
56 osp_get_scan (osp_connection_t *, const char *, char **);
57 
58 int
59 osp_delete_scan (osp_connection_t *, const char *);
60 
61 int
62 osp_get_scanner_details (osp_connection_t *, char **, GSList **);
63 
65 osp_param_new (void);
66 
67 const char *
69 
70 const char *
72 
73 const char *
75 
76 const char *
78 
79 void
81 
82 void
84 #endif
Definition: osp.c:45
Definition: osp.c:38
int osp_get_scan(osp_connection_t *, const char *, char **)
Definition: osp.c:239
int osp_get_scanner_details(osp_connection_t *, char **, GSList **)
Definition: osp.c:400
osp_param_type_t
Definition: osp.h:32
const char * osp_param_id(osp_param_t *)
Definition: osp.c:464
Definition: osp.h:35
Definition: osp.h:38
int osp_get_version(osp_connection_t *, char **, char **, char **, char **, char **, char **)
Definition: osp.c:157
const char * osp_param_type_str(const osp_param_t *)
Definition: osp.c:367
void osp_connection_close(osp_connection_t *)
Definition: osp.c:134
Definition: osp.h:37
Definition: osp.h:36
char * osp_start_scan(osp_connection_t *, const char *, GHashTable *)
Definition: osp.c:296
void osp_param_free(osp_param_t *)
Definition: osp.c:504
int osp_delete_scan(osp_connection_t *, const char *)
Definition: osp.c:214
const char * osp_param_default(osp_param_t *)
Definition: osp.c:492
osp_param_t * osp_param_new(void)
Definition: osp.c:452
const char * osp_param_desc(osp_param_t *)
Definition: osp.c:478
Definition: osp.h:39
Definition: osp.h:33
Definition: osp.h:34
osp_connection_t * osp_connection_new(const char *, int, const char *, const char *, const char *)