array.h
Go to the documentation of this file.
/* Copyright (C) 2009-2021 Greenbone Networks GmbH
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _GVM_ARRAY_H
#define _GVM_ARRAY_H
#include <glib.h>
typedef GPtrArray array_t;
GPtrArray *
make_array ();
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:94
array_t
GPtrArray array_t
Definition: array.h:30
make_array
GPtrArray * make_array()
Make a global array.
Definition: array.c:39
array_add
void array_add(array_t *array, gpointer pointer)
Push a generic pointer onto an array.
Definition: array.c:82
array_reset
void array_reset(array_t **array)
Reset an array.
Definition: array.c:50
array_free
void array_free(GPtrArray *array)
Free global array value.
Definition: array.c:64