prefs.h
Go to the documentation of this file.
/* Copyright (C) 2014-2021 Greenbone Networks GmbH
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _GVM_PREFS_H
#define _GVM_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_PREFS_H */
prefs_set
void prefs_set(const gchar *, const gchar *)
Set a string preference value via a key.
Definition: prefs.c:153
prefs_get_bool
int prefs_get_bool(const gchar *key)
Get a boolean expression of a preference value via a key.
Definition: prefs.c:130
prefs_config
void prefs_config(const char *)
Apply the configs from given file as preferences.
Definition: prefs.c:167
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:92
prefs_get
const gchar * prefs_get(const gchar *key)
Get a string preference value via a key.
Definition: prefs.c:110
prefs_nvt_timeout
int prefs_nvt_timeout(const char *)
Returns the timeout defined by the client or 0 if none was set.
Definition: prefs.c:216
prefs_dump
void prefs_dump(void)
Dump the preferences to stdout.
Definition: prefs.c:192