Greenbone Vulnerability Manager  9.0.1
manage_configs.h
1 /* GVM
2  * $Id$
3  * Description: GVM management layer: Config headers exported from layer
4  *
5  * Authors:
6  * Matthew Mundell <matthew.mundell@greenbone.net>
7  *
8  * Copyright:
9  * Copyright (C) 2019 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 _GVMD_MANAGE_CONFIGS_H
27 #define _GVMD_MANAGE_CONFIGS_H
28 
29 #include "manage.h"
30 
31 gpointer
32 preference_new (char *, char *, char *, char *, char *,
33  char *, array_t *, char*,
34  char *, int);
35 
36 void
38 
40 get_nvt_preference_by_id (const char *,
41  const char *,
42  const char *,
43  const char *,
44  const char *);
45 
46 #endif /* not _GVMD_MANAGE_CONFIGS_H */
void preference_free(preference_t *preference)
Frees a preference including its assigned values.
Definition: manage_configs.c:76
gpointer preference_new(char *id, char *name, char *type, char *value, char *nvt_name, char *nvt_oid, array_t *alts, char *default_value, char *hr_name, int free_strings)
Create a new preference.
Definition: manage_configs.c:49
preference_t * get_nvt_preference_by_id(const char *nvt_oid, const char *find_id, const char *check_name, const char *check_type, const char *value)
Gets an NVT preference by id or by name.
Definition: manage_sql_configs.c:2003
An NVT preference.
Definition: manage.h:1781