array.h
Go to the documentation of this file.
/* SPDX-FileCopyrightText: 2009-2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _GVM_ARRAY_H
#define _GVM_ARRAY_H
#include <glib.h>
typedef GPtrArray array_t;
GPtrArray *
make_array (void);
void
array_reset (array_t **array);
void
array_free (GPtrArray *array);
void
array_add (array_t *array, gpointer pointer);
void
array_terminate (array_t *array);
#endif /* not _GVM_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