Greenbone Vulnerability Management Libraries: base/array.h Source File

Greenbone Vulnerability Management Libraries 23.1.1

array.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
10
11#ifndef _GVM_BASE_ARRAY_H
12#define _GVM_BASE_ARRAY_H
13
14#include <glib.h>
15
16 typedef GPtrArray array_t;
17
18GPtrArray *
19 make_array (void);
20
21void
22 array_reset (array_t **array);
23
24void
25 array_free (GPtrArray *array);
26
27void
28 array_add (array_t *array, gpointer pointer);
29
30void
31 array_terminate (array_t *array);
32
33#endif /* not _GVM_BASE_ARRAY_H */
array_terminate
void array_terminate(array_t *array)
Terminate an array.
Definition array.c:80
array_t
GPtrArray array_t
Definition array.h:16
make_array
GPtrArray * make_array(void)
Make a global array.
Definition array.c:25
array_add
void array_add(array_t *array, gpointer pointer)
Push a generic pointer onto an array.
Definition array.c:68
array_reset
void array_reset(array_t **array)
Reset an array.
Definition array.c:36
array_free
void array_free(GPtrArray *array)
Free global array value.
Definition array.c:50