Macros | Functions | Variables
conf.c File Reference

Configuration handling. More...

Go to the source code of this file.

Macros

#define MAIN_ERR_PREFIX   "CONF: "
 Message prefix for CONF module.
 
#define CONF_PERM   (posix_mode_t) (POSIX_S_IRUSR | POSIX_S_IWUSR)
 Permissions for config file.
 

Functions

void conf_delete (struct conf *cfg)
 Delete configuration. More...
 
int conf_load (struct conf *cfg)
 Load configuration from config file. More...
 
int conf_store (struct conf *cfg)
 Store configuration to config file. More...
 
int conf_string_replace (struct conf *cfg, const char *s)
 Replace configuration string. More...
 
int conf_integer_check (enum conf_entry id, int min, int max)
 Check integer value against lower and upper bounds. More...
 

Variables

struct conf config [CONF_NUM]
 Global configuration. More...
 
int conf_ephemeral_passwd = 0
 Flag indicating that password should not be stored in configfile. More...
 

Detailed Description

Configuration handling.

Copyright (c) 2012-2023 by the developers. See the LICENSE file for details.

If nothing else is specified, functions return zero to indicate success and a negative value to indicate an error.

Definition in file conf.c.


Generated at 2024-04-27 using  doxygen