Greenbone Vulnerability Management Libraries: base/array.c File Reference

Greenbone Vulnerability Management Libraries 23.1.1

Macros | Functions
array.c File Reference

Array utilities. More...

`#include "array.h"`

Go to the source code of this file.

## Macros
#define | G_LOG_DOMAIN "libgvm base"
| GLib log domain.

## Functions
GPtrArray * | make_array (void)
| Make a global array.
void | array_reset (array_t **array)
| Reset an array.
void | array_free (GPtrArray *array)
| Free global array value.
void | array_add (array_t *array, gpointer pointer)
| Push a generic pointer onto an array.
void | array_terminate (array_t *array)
| Terminate an array.

## Detailed Description

Array utilities.

## Macro Definition Documentation

## ◆ G_LOG_DOMAIN

#define G_LOG_DOMAIN "libgvm base"

GLib log domain.

## Function Documentation

## ◆ array_add()

void array_add | ( | array_t * | array,
|  | gpointer | pointer )

Push a generic pointer onto an array.

Parameters

  [in] | array | Array.
  [in] | pointer | Pointer.

## ◆ array_free()

void array_free | ( | GPtrArray * | array | ) |

Free global array value.

Also g_free any elements.

Parameters

  [in] | array | Pointer to array.

## ◆ array_reset()

void array_reset | ( | array_t ** | array | ) |

Reset an array.

Parameters

  [in] | array | Pointer to array.

## ◆ array_terminate()

void array_terminate | ( | array_t * | array | ) |

Terminate an array.

Parameters

  [in] | array | Array.

## ◆ make_array()

GPtrArray * make_array | ( | void |  | ) |

Make a global array.

Returns
  New array.