The AgsApplicationContext base class provides you an AgsConfig instance. It might load a default configuration or from current users home directory.
Since AgsConfig is a singleton you should obtain it by calling AgsConfig* ags_config_get_instance()
.
AgsConfig stores its properties as key value pairs within appropriate group. In order to get the config instance, load default configuration and get the threading model do the following.
Example 1.3. Get config value
#include <glib.h> #include <glib-object.h> #include <ags/libags.h> AgsConfig *config; gchar *str; config = ags_config_get_instance(); ags_config_load_defaults(config); str = ags_config_get_value(config, "thread", "model");