AgsConfig

AgsConfig — Config Advanced Gtk+ Sequencer

Synopsis

#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 *key);
void                ags_config_load_defaults            (AgsConfig *config);
void                ags_config_load_from_file           (AgsConfig *config,
                                                         gchar *filename);
AgsConfig *         ags_config_new                      ();
void                ags_config_save                     (AgsConfig *config);
void                ags_config_set                      (AgsConfig *config,
                                                         gchar *group,
                                                         gchar *key,
                                                         gchar *value);

Description

AgsConfig provides configuration to Advanced Gtk+ Sequencer.

Details

AGS_CONFIG_DEFAULT_BUILD_ID

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

AGS_CONFIG_DEFAULT_VERSION

#define AGS_CONFIG_DEFAULT_VERSION "0.4.2\0"

AGS_CONFIG_DEVOUT

#define AGS_CONFIG_DEVOUT "device\0"

AGS_CONFIG_GENERIC

#define AGS_CONFIG_GENERIC "generic\0"

AGS_CONFIG_RECALL

#define AGS_CONFIG_RECALL "recall\0"

AGS_CONFIG_THREAD

#define AGS_CONFIG_THREAD "thread\0"

struct AgsConfig

struct AgsConfig {
  GObject object;

  guint version;
  gchar *build_id;
  
  GObject *ags_main;

  GKeyFile *key_file;
};

struct AgsConfigClass

struct AgsConfigClass {
  GObjectClass object;
};

ags_config_get ()

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

Retrieve config by group and key.

config :

the AgsConfig

group :

the config group identifier

key :

the key of the property

Returns :

the property's value

Since 0.4


ags_config_load_defaults ()

void                ags_config_load_defaults            (AgsConfig *config);

Load configuration from default values.

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.

config :

the AgsConfig

filename :

the configuration file

Since 0.4


ags_config_new ()

AgsConfig *         ags_config_new                      ();

Creates an AgsConfig.

Returns :

a new AgsConfig.

Since 0.4


ags_config_save ()

void                ags_config_save                     (AgsConfig *config);

Save configuration.

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.

config :

the AgsConfig

group :

the config group identifier

key :

the key of the property

value :

the value to set

Since 0.4