Greenbone Vulnerability Management Libraries 22.8.0
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
13#ifndef _GVM_PREFS_H
14#define _GVM_PREFS_H
15
16#include <glib.h> /* for gchar */
17
18void
19prefs_config (const char *);
20const gchar *
21prefs_get (const gchar *key);
22int
23prefs_get_bool (const gchar *key);
24void
25prefs_set (const gchar *, const gchar *);
26void
27prefs_dump (void);
28int
29prefs_nvt_timeout (const char *);
30
31GHashTable *
32preferences_get (void);
33
34#endif /* not _GVM_PREFS_H */
void prefs_set(const gchar *, const gchar *)
Set a string preference value via a key.
Definition prefs.c:142
int prefs_get_bool(const gchar *key)
Get a boolean expression of a preference value via a key.
Definition prefs.c:119
void prefs_config(const char *)
Apply the configs from given file as preferences.
Definition prefs.c:156
const gchar * prefs_get(const gchar *key)
Get a string preference value via a key.
Definition prefs.c:99
int prefs_nvt_timeout(const char *)
GHashTable * preferences_get(void)
Get the pointer to the global preferences structure. Eventually this function should not be used anyw...
Definition prefs.c:81
void prefs_dump(void)
Dump the preferences to stdout.
Definition prefs.c:179