Greenbone Vulnerability Manager 22.5.2
iterator.h
Go to the documentation of this file.
1/* Copyright (C) 2016-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
27#ifndef _GVMD_ITERATOR_H
28#define _GVMD_ITERATOR_H
29
30#include "lsc_crypt.h"
31
32#include <glib.h>
33
34/* Types. */
35
39typedef long long int resource_t;
40
44typedef struct sql_stmt sql_stmt_t;
45
50{
52 gboolean done;
54};
55
59typedef struct iterator iterator_t;
60
61/* Functions. */
62
63void
65
66gboolean
68
69#endif /* not _GVMD_ITERATOR_H */
long long int resource_t
A resource, like a task or target.
Definition: iterator.h:39
gboolean next(iterator_t *)
Increment an iterator.
Definition: sql.c:721
void cleanup_iterator(iterator_t *)
Cleanup an iterator.
Definition: sql.c:697
A generic SQL iterator structure.
Definition: iterator.h:50
sql_stmt_t * stmt
SQL statement.
Definition: iterator.h:51
gboolean done
End flag.
Definition: iterator.h:52
lsc_crypt_ctx_t crypt_ctx
Encryption context.
Definition: iterator.h:53
The context object for encryption operations.
Definition: lsc_crypt.c:91
An SQL statement.
Definition: sql_pg.c:60