Greenbone Vulnerability Manager 22.5.2
manage_get.h
1/* Copyright (C) 2020-2022 Greenbone AG
2 *
3 * SPDX-License-Identifier: AGPL-3.0-or-later
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/*
20 * @file manage_get.h
21 * @brief Headers for Greenbone Vulnerability Manager: Manage lib: GET support.
22 */
23
24#ifndef _GVMD_MANAGE_GET_H
25#define _GVMD_MANAGE_GET_H
26
27#include "iterator.h"
28
29#include <glib.h>
30
34typedef struct
35{
36 int details;
37 char *filt_id;
38 char *filter;
41 char *id;
42 int trash;
43 gchar *type;
44 gchar *subtype;
47 int minimal;
48 GHashTable *extra_params;
50
51void
53
54const char *
55get_data_get_extra (const get_data_t *, const char *);
56
57void
58get_data_set_extra (get_data_t *, const char *, const char *);
59
60const char*
61get_iterator_uuid (iterator_t*);
62
63const char*
64get_iterator_name (iterator_t*);
65
66const char*
68
69const char*
70get_iterator_creation_time (iterator_t*);
71
72const char*
73get_iterator_modification_time (iterator_t*);
74
75const char*
76get_iterator_owner_name (iterator_t*);
77
78#endif /* not _GVMD_MANAGE_GET_H */
Headers for Iterators.
const char * get_iterator_comment(iterator_t *iterator)
Get the comment from a GET iterator.
Definition: manage_get.c:144
const char * get_data_get_extra(const get_data_t *data, const char *name)
Retrieves a type-specific extra parameter from a get_data_t.
Definition: manage_get.c:61
void get_data_set_extra(get_data_t *data, const char *name, const char *value)
Sets a type-specific extra parameter in a get_data_t.
Definition: manage_get.c:79
void get_data_reset(get_data_t *data)
Reset command data.
Definition: manage_get.c:37
Command data for a get command.
Definition: manage_get.h:35
int minimal
Whether to respond with minimal information.
Definition: manage_get.h:47
gchar * subtype
Subtype, or NULL.
Definition: manage_get.h:44
int ignore_max_rows_per_page
Whether to ignore the Max Rows Per Page setting.
Definition: manage_get.h:45
char * filter
Filter term.
Definition: manage_get.h:38
int details
Boolean. Whether to include full details.
Definition: manage_get.h:36
int trash
Boolean. Whether to return from trashcan.
Definition: manage_get.h:42
char * filter_replace
Column to replace in filter.
Definition: manage_get.h:39
char * filter_replacement
Filter term to replace the one in filt_id.
Definition: manage_get.h:40
GHashTable * extra_params
Hashtable of type-specific extra parameters.
Definition: manage_get.h:48
int ignore_pagination
Whether to ignore the pagination (first and max).
Definition: manage_get.h:46
char * filt_id
Filter ID. Overrides "filter".
Definition: manage_get.h:37
char * id
ID of single item to get.
Definition: manage_get.h:41
gchar * type
Type of resource.
Definition: manage_get.h:43
A generic SQL iterator structure.
Definition: iterator.h:50