AfGs Config Module: Config setting file for Af-Arch servers.


Defines

#define AFGS_AFKEY_EXPIRATION   "afkey expiration"
 Definition to get compile safe access to afkey expiration setting.
#define AFGS_AUTOMATIC_REGISTER   "automatic register"
 Definition to get compile safe access to automatic register setting.
#define AFGS_DATABASE_ACCESS_SEMANTIC   "database access semantic"
 Definition to get compile safe access to database access semantic setting.
#define AFGS_DATABASE_ACCESS_SEMANTIC_CLOSE   "close"
 Allowed value for AFGS_DATABASE_ACCESS_SEMANTIC server config.
#define AFGS_DATABASE_ACCESS_SEMANTIC_PERMANENT   "permanent"
 Allowed value for AFGS_DATABASE_ACCESS_SEMANTIC server config.
#define AFGS_DATABASE_ACCESS_SEMANTIC_REFRESH   "refresh"
 Allowed value for AFGS_DATABASE_ACCESS_SEMANTIC server config.
#define AFGS_DATABASE_NAME   "database name"
 Definition to get compile safe access to database name setting.
#define AFGS_DATABASE_PORT   "database port"
 Definition to get compile safe access to database port setting.
#define AFGS_DATABASE_SERVER   "database server"
 Definition to get compile safe access to database server setting.
#define AFGS_DATABASE_USER   "database user"
 Definition to get compile safe access to database user setting.
#define AFGS_DATBASE_PASSWORD   "database password"
 Definition to get compile safe access to database password setting.
#define AFGS_KERNEL_PORT   "kernel port"
 Definition to get compile safe access to kernel port setting.
#define AFGS_KERNEL_SERVER   "kernel server"
 Definition to get compile safe access to kernel server setting.
#define AFGS_LISTENING_HOSTNAME   "listening hostname"
 Definition to get compile safe access to listening hostname setting.
#define AFGS_LISTENING_PORT   "listening port"
 Definition to get compile safe access to listening port setting.
#define AFGS_LOG_ACTIVE   "log active"
 Definition to get compile safe access to log active setting.
#define AFGS_LOG_FILE   "log file"
 Definition to get compile safe access to log file setting.
#define AFGS_ON_SIGNAL_RECEIVED   "on signal received"
 Definition to get compile safe access to on signal received setting.
#define AFGS_SESSION_EXPIRATION   "session expiration"
 Definition to get compile safe access to session expiration setting.
#define AFGS_SESSIONS   "sessions"
 Definition to get compile safe access to sessions setting.

Typedefs

typedef _afgs_configuration AfgsConfiguration
 Configuration setting for Af-Arch servers.

Functions

gboolean afgs_config_check_config_value (AfgsConfiguration *config, gchar *key, gchar *value)
 Allows to check if the given config key have the given value defined.
void afgs_config_destroy (AfgsConfiguration *config)
 Destroy the given AfgsConfiguration object.
gchar * afgs_config_get (AfgsConfiguration *config, gchar *key)
 Gets the value for the given key.
gchar * afgs_config_get_ref (AfgsConfiguration *config, gchar *key)
 Returns a reference to the value for given key.
gboolean afgs_config_is_defined_value (AfgsConfiguration *config, gchar *key)
 Allows to check if the given key have been defined at the server configuration file.
gboolean afgs_config_is_negative_value (AfgsConfiguration *config, gchar *key)
 Allows to check if the given key have a negative value.
gboolean afgs_config_is_positive_value (AfgsConfiguration *config, gchar *key)
 Allows to check if the given key have a positive value.
AfgsConfigurationafgs_config_load (gchar *filename, gchar **accepted_keys)
 Loads the default configuration file for the current server.