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

Greenbone Vulnerability Management Libraries 23.1.2

prefs.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2014-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
12
13#ifndef _GVM_BASE_PREFS_H
14#define _GVM_BASE_PREFS_H
15
16#include <glib.h> /* for gchar */
17
18void
19 prefs_config (const char *);
20const gchar *
21 prefs_get (const gchar *key);
22int
23 prefs_get_bool (const gchar *key);
24void
25 prefs_set (const gchar *, const gchar *);
26void
27 prefs_dump (void);
28int
29prefs_nvt_timeout (const char *);
30
31GHashTable *
32 preferences_get (void);
33
34#endif /* not _GVM_BASE_PREFS_H */
prefs_set
void prefs_set(const gchar *, const gchar *)
Set a string preference value via a key.
Definition prefs.c:142
prefs_get_bool
int prefs_get_bool(const gchar *key)
Get a boolean expression of a preference value via a key.
Definition prefs.c:119
prefs_config
void prefs_config(const char *)
Apply the configs from given file as preferences.
Definition prefs.c:156
prefs_get
const gchar * prefs_get(const gchar *key)
Get a string preference value via a key.
Definition prefs.c:99
prefs_nvt_timeout
int prefs_nvt_timeout(const char *)
preferences_get
GHashTable * preferences_get(void)
Get the pointer to the global preferences structure. Eventually this function should not be used anyw...
Definition prefs.c:81
prefs_dump
void prefs_dump(void)
Dump the preferences to stdout.
Definition prefs.c:184