Top | ![]() |
![]() |
![]() |
![]() |
#define | AGS_CONFIG_GET_OBJ_MUTEX() |
void | ags_config_load_defaults () |
void | ags_config_load_from_file () |
void | ags_config_load_from_data () |
void | ags_config_set_value () |
gchar * | ags_config_get_value () |
void | ags_config_to_data () |
void | ags_config_save () |
void | ags_config_clear () |
AgsConfig * | ags_config_get_instance () |
AgsConfig * | ags_config_new () |
#define | AGS_CONFIG() |
#define | AGS_CONFIG_CLASS() |
#define | AGS_CONFIG_GET_CLASS() |
#define | AGS_IS_CONFIG() |
#define | AGS_IS_CONFIG_CLASS() |
GType | ags_config_get_type () |
#define | AGS_CONFIG_DEFAULT_VERSION |
#define | AGS_CONFIG_DEFAULT_BUILD_ID |
#define | AGS_CONFIG_GENERIC |
#define | AGS_CONFIG_THREAD |
#define | AGS_CONFIG_SERVER |
#define | AGS_CONFIG_SOUNDCARD |
#define | AGS_CONFIG_SOUNDCARD_0 |
#define | AGS_CONFIG_SEQUENCER |
#define | AGS_CONFIG_SEQUENCER_0 |
#define | AGS_CONFIG_RECALL |
#define | AGS_CONFIG_OSC_SERVER |
#define | AGS_CONFIG_OSC_SERVER_0 |
#define | AGS_TYPE_CONFIG |
struct | AgsConfig |
struct | AgsConfigClass |
#define AGS_CONFIG_GET_OBJ_MUTEX(obj) (&(((AgsConfig *) obj)->obj_mutex))
void
ags_config_load_defaults (AgsConfig *config
);
Load configuration from default values.
Since: 3.0.0
void ags_config_load_from_file (AgsConfig *config
,gchar *filename
);
Load configuration from filename
.
Since: 3.0.0
void ags_config_load_from_data (AgsConfig *config
,char *buffer
,gsize buffer_length
);
Read configuration in memory.
Since: 3.0.0
void ags_config_set_value (AgsConfig *config
,gchar *group
,gchar *key
,gchar *value
);
Set config by group
and key
, applying value
.
config |
the AgsConfig |
|
group |
the config group identifier |
|
key |
the key of the property |
|
value |
the value to set |
Since: 3.0.0
gchar * ags_config_get_value (AgsConfig *config
,gchar *group
,gchar *key
);
Retrieve config by group
and key
.
Since: 3.0.0
void ags_config_to_data (AgsConfig *config
,char **buffer
,gsize *buffer_length
);
Save configuration.
Since: 3.0.0
AgsConfig * ags_config_get_instance ();
Get config instance.
Since: 3.0.0
#define AGS_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONFIG, AgsConfig))
#define AGS_CONFIG_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CONFIG, AgsConfigClass))
#define AGS_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CONFIG, AgsConfigClass))
#define AGS_IS_CONFIG_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_CONFIG))
“get-value”
signalchar* user_function (AgsConfig *config, char *group, char *key, gpointer user_data)
The ::get-value signal notifies about value been getting.
config |
the object to resolve |
|
group |
the group to retrieve from |
|
key |
the key to get |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“load-defaults”
signalvoid user_function (AgsConfig *config, gpointer user_data)
The ::load-defaults signal notifies about loading defaults
config |
the object to resolve |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“set-value”
signalvoid user_function (AgsConfig *config, char *group, char *key, char *value, gpointer user_data)
The ::set-value signal notifies about value been setting.
config |
the object to resolve |
|
group |
the group to apply to |
|
key |
the key to set |
|
value |
the value to apply |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0