AgsConfig

AgsConfig — Config Advanced Gtk+ Sequencer

Functions

void ags_config_load_defaults ()
void ags_config_load_from_file ()
void ags_config_save ()
void ags_config_set ()
gchar * ags_config_get ()
AgsConfig * ags_config_new ()

Types and Values

Includes

#include <ags/audio/ags_config.h>

Description

AgsConfig provides configuration to Advanced Gtk+ Sequencer.

Functions

ags_config_load_defaults ()

void
ags_config_load_defaults (AgsConfig *config);

Load configuration from default values.

Parameters

config

the AgsConfig

 

Since 0.4


ags_config_load_from_file ()

void
ags_config_load_from_file (AgsConfig *config,
                           gchar *filename);

Load configuration from filename .

Parameters

config

the AgsConfig

 

filename

the configuration file

 

Since 0.4


ags_config_save ()

void
ags_config_save (AgsConfig *config);

Save configuration.

Parameters

config

the AgsConfig

 

Since 0.4


ags_config_set ()

void
ags_config_set (AgsConfig *config,
                gchar *group,
                gchar *key,
                gchar *value);

Set config by group and key , applying value .

Parameters

config

the AgsConfig

 

group

the config group identifier

 

key

the key of the property

 

value

the value to set

 

Since 0.4


ags_config_get ()

gchar *
ags_config_get (AgsConfig *config,
                gchar *group,
                gchar *key);

Retrieve config by group and key .

Parameters

config

the AgsConfig

 

group

the config group identifier

 

key

the key of the property

 

Returns

the property's value

Since 0.4


ags_config_new ()

AgsConfig *
ags_config_new ();

Creates an AgsConfig.

Returns

a new AgsConfig.

Since 0.4

Types and Values

AGS_CONFIG_DEFAULT_VERSION

#define AGS_CONFIG_DEFAULT_VERSION "0.4.2\0"


AGS_CONFIG_DEFAULT_BUILD_ID

#define AGS_CONFIG_DEFAULT_BUILD_ID "CEST 02-10-2014 19:36\0"


AGS_CONFIG_GENERIC

#define AGS_CONFIG_GENERIC "generic\0"

AGS_CONFIG_THREAD

#define AGS_CONFIG_THREAD "thread\0"


AGS_CONFIG_DEVOUT

#define AGS_CONFIG_DEVOUT "device\0"


AGS_CONFIG_RECALL

#define AGS_CONFIG_RECALL "recall\0"