Greenbone Vulnerability Manager
9.0.0
src
manage_sql_configs.h
1
/* GVM
2
* $Id$
3
* Description: GVM management layer SQL: Config headers
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_SQL_CONFIGS_H
27
#define _GVMD_MANAGE_SQL_CONFIGS_H
28
29
#include "manage.h"
30
34
#define CONFIG_ITERATOR_FILTER_COLUMNS \
35
{ GET_ITERATOR_FILTER_COLUMNS, "nvt_selector", "families_total", \
36
"nvts_total", "families_trend", "nvts_trend", "type", "usage_type", \
37
NULL }
38
42
#define CONFIG_ITERATOR_COLUMNS \
43
{ \
44
GET_ITERATOR_COLUMNS (configs), \
45
{ "nvt_selector", NULL, KEYWORD_TYPE_STRING }, \
46
{ "family_count", "families_total", KEYWORD_TYPE_INTEGER }, \
47
{ "nvt_count", "nvts_total", KEYWORD_TYPE_INTEGER}, \
48
{ "families_growing", "families_trend", KEYWORD_TYPE_INTEGER}, \
49
{ "nvts_growing", "nvts_trend", KEYWORD_TYPE_INTEGER }, \
50
{ "type", NULL, KEYWORD_TYPE_INTEGER }, \
51
{ "scanner", NULL, KEYWORD_TYPE_INTEGER }, \
52
{ "0", NULL, KEYWORD_TYPE_INTEGER }, \
53
{ "usage_type", NULL, KEYWORD_TYPE_STRING }, \
54
{ NULL, NULL, KEYWORD_TYPE_UNKNOWN } \
55
}
56
60
#define CONFIG_ITERATOR_TRASH_COLUMNS \
61
{ \
62
GET_ITERATOR_COLUMNS (configs_trash), \
63
{ "nvt_selector", NULL, KEYWORD_TYPE_STRING }, \
64
{ "family_count", "families_total", KEYWORD_TYPE_INTEGER }, \
65
{ "nvt_count", "nvts_total", KEYWORD_TYPE_INTEGER}, \
66
{ "families_growing", "families_trend", KEYWORD_TYPE_INTEGER}, \
67
{ "nvts_growing", "nvts_trend", KEYWORD_TYPE_INTEGER }, \
68
{ "type", NULL, KEYWORD_TYPE_INTEGER }, \
69
{ "scanner", NULL, KEYWORD_TYPE_INTEGER }, \
70
{ "scanner_location", NULL, KEYWORD_TYPE_INTEGER }, \
71
{ "usage_type", NULL, KEYWORD_TYPE_STRING }, \
72
{ NULL, NULL, KEYWORD_TYPE_UNKNOWN } \
73
}
74
75
gchar *
76
configs_extra_where
(
const
char
*);
77
78
#endif
/* not _GVMD_MANAGE_SQL_CONFIGS_H */
configs_extra_where
gchar * configs_extra_where(const char *usage_type)
Generate an extra WHERE clause for selecting configs.
Definition:
manage_sql_configs.c:2333
Generated on Wed Jan 29 2020 00:00:00 for Greenbone Vulnerability Manager by
1.8.17