Top |
GSignondConfig * | gsignond_config_new () |
gint | gsignond_config_get_integer () |
void | gsignond_config_set_integer () |
const gchar * | gsignond_config_get_string () |
void | gsignond_config_set_string () |
GSignondConfig holds configuration information as a set of keys and values (integer or strings). The key names are defined in
general config keys,and DBus config keys.
The configuration is retrieved from the gSSO configuration file. See below for where the file is searched for.
If gSSO has been compiled with --enable-debug, then these locations are used, in decreasing order of priority:
GSIGNOND_CONFIG environment variable
g_get_user_config_dir() + "gsignond.conf"
path specified in --sysconfdir configure option ($(sysconfdir))
each of g_get_system_config_dirs()
+ "gsignond.conf"
Otherwise, the config file location is determined at compilation time as $(sysconfdir) + "gsignond.conf"
See example configuration file here:
http://code.google.com/p/accounts-sso/source/browse/gsignond.conf.in?repo=gsignondGSignondConfig * gsignond_config_new ();
Create a GSignondConfig object.
an instance of GSignondConfig. gSSO extensions should not use this as they're already provided with a config object when they're created.
gint gsignond_config_get_integer (GSignondConfig *self
,const gchar *key
);
Get an integer configuration value.
void gsignond_config_set_integer (GSignondConfig *self
,const gchar *key
,gint value
);
Sets the configuration value to the provided integer.
const gchar * gsignond_config_get_string (GSignondConfig *self
,const gchar *key
);
Get a string configuration value.
void gsignond_config_set_string (GSignondConfig *self
,const gchar *key
,const gchar *value
);
Sets the configuration value to the provided string.