prefs.h
Go to the documentation of this file.
/* SPDX-FileCopyrightText: 2014-2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _GVM_BASE_PREFS_H
#define _GVM_BASE_PREFS_H
#include <glib.h> /* for gchar */
void
prefs_config (const char *);
const gchar *
prefs_get (const gchar *key);
int
prefs_get_bool (const gchar *key);
void
prefs_set (const gchar *, const gchar *);
void
prefs_dump (void);
int
prefs_nvt_timeout (const char *);
GHashTable *
preferences_get (void);
#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