Advanced Gtk+ Sequencer Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <ags/audio/ags_config.h> #define AGS_CONFIG_DEFAULT_BUILD_ID #define AGS_CONFIG_DEFAULT_VERSION #define AGS_CONFIG_DEVOUT #define AGS_CONFIG_GENERIC #define AGS_CONFIG_RECALL #define AGS_CONFIG_THREAD struct AgsConfig; struct AgsConfigClass;gchar * ags_config_get (AgsConfig *config
,,
gchar *group);
gchar *keyvoid ags_config_load_defaults (AgsConfig *config
);void ags_config_load_from_file (AgsConfig *config
,); AgsConfig * ags_config_new ();
gchar *filenamevoid ags_config_save (AgsConfig *config
);void ags_config_set (AgsConfig *config
,,
gchar *group,
gchar *key);
gchar *value
struct AgsConfig { GObject object; guint version; gchar *build_id; GObject *ags_main; GKeyFile *key_file; };
gchar * ags_config_get (AgsConfig *config
,,
gchar *group);
gchar *key
Retrieve config by group
and key
.
|
the AgsConfig |
|
the config group identifier |
|
the key of the property |
Returns : |
the property's value |
Since 0.4
void ags_config_load_defaults (AgsConfig *config
);
Load configuration from default values.
|
the AgsConfig |
Since 0.4
void ags_config_load_from_file (AgsConfig *config
,);
gchar *filename
Load configuration from filename
.
|
the AgsConfig |
|
the configuration file |
Since 0.4
AgsConfig * ags_config_new ();
Creates an AgsConfig.
Returns : |
a new AgsConfig. |
Since 0.4
void ags_config_save (AgsConfig *config
);
Save configuration.
|
the AgsConfig |
Since 0.4