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 
18 void
19 prefs_config (const char *);
20 const gchar *
21 prefs_get (const gchar *key);
22 int
23 prefs_get_bool (const gchar *key);
24 void
25 prefs_set (const gchar *, const gchar *);
26 void
27 prefs_dump (void);
28 int
29 prefs_nvt_timeout (const char *);
30 
31 GHashTable *
32 preferences_get (void);
33 
34 #endif /* not _GVM_PREFS_H */
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_dump
void prefs_dump(void)
Dump the preferences to stdout.
Definition: prefs.c:179
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_set
void prefs_set(const gchar *, const gchar *)
Set a string preference value via a key.
Definition: prefs.c:142