OpenVAS Libraries  9.0.1
osp.h
Go to the documentation of this file.
1 /* openvas-libraries/osp
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 {
42 
43 typedef struct osp_param osp_param_t;
44 
46 osp_connection_new (const char *, int, const char *, const char *,
47  const char *);
48 
49 int
50 osp_get_version (osp_connection_t *, char **, char **, char **, char **,
51  char **, char **);
52 
53 int
54 osp_start_scan (osp_connection_t *, const char *, const char *, GHashTable *,
55  const char *, char **);
56 
57 int
58 osp_get_scan (osp_connection_t *, const char *, char **, int, char **);
59 
60 int
61 osp_delete_scan (osp_connection_t *, const char *);
62 
63 int
64 osp_stop_scan (osp_connection_t *, const char *, char **);
65 
66 int
67 osp_get_scanner_details (osp_connection_t *, char **, GSList **);
68 
70 osp_param_new (void);
71 
72 const char *
73 osp_param_id (const osp_param_t *);
74 
75 const char *
76 osp_param_name (const osp_param_t *);
77 
78 const char *
79 osp_param_desc (const osp_param_t *);
80 
81 const char *
83 
84 const char *
86 
87 int
89 
90 void
92 
93 void
95 #endif
int osp_start_scan(osp_connection_t *, const char *, const char *, GHashTable *, const char *, char **)
Definition: osp.c:386
Definition: osp.c:44
Definition: osp.c:37
int osp_get_scanner_details(osp_connection_t *, char **, GSList **)
Definition: osp.c:497
osp_param_type_t
Definition: osp.h:32
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:462
void osp_connection_close(osp_connection_t *)
Definition: osp.c:134
int osp_param_mandatory(const osp_param_t *)
Definition: osp.c:620
Definition: osp.h:37
const char * osp_param_desc(const osp_param_t *)
Definition: osp.c:592
int osp_stop_scan(osp_connection_t *, const char *, char **)
Definition: osp.c:324
Definition: osp.h:36
void osp_param_free(osp_param_t *)
Definition: osp.c:632
int osp_delete_scan(osp_connection_t *, const char *)
Definition: osp.c:240
osp_param_t * osp_param_new(void)
Definition: osp.c:552
const char * osp_param_name(const osp_param_t *)
Definition: osp.c:578
const char * osp_param_default(const osp_param_t *)
Definition: osp.c:606
const char * osp_param_id(const osp_param_t *)
Definition: osp.c:564
Definition: osp.h:39
Definition: osp.h:33
Definition: osp.h:40
Definition: osp.h:34
int osp_get_scan(osp_connection_t *, const char *, char **, int, char **)
Definition: osp.c:274
osp_connection_t * osp_connection_new(const char *, int, const char *, const char *, const char *)