AgsConfig

AgsConfig — Config Advanced Gtk+ Sequencer

Functions

Properties

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsConfig

Implemented Interfaces

AgsConfig implements AgsConnectable.

Includes

#include <ags/object/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.2


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.2


ags_config_load_from_data ()

void
ags_config_load_from_data (AgsConfig *config,
                           char *buffer,
                           gsize buffer_length);

Read configuration in memory.

Parameters

config

the AgsConfig

 

buffer

the data buffer

 

buffer_length

the size of the buffer

 

Since: 0.5.4


ags_config_set_value ()

void
ags_config_set_value (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.2


ags_config_get_value ()

gchar *
ags_config_get_value (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.2


ags_config_to_data ()

void
ags_config_to_data (AgsConfig *config,
                    char **buffer,
                    gsize *buffer_length);

Save configuration.

Parameters

config

the AgsConfig

 

buffer

the data buffer

 

buffer_length

the size of the buffer

 

Since: 0.5.4


ags_config_save ()

void
ags_config_save (AgsConfig *config);

Save configuration.

Parameters

config

the AgsConfig

 

Since: 0.4.2


ags_config_get_instance ()

AgsConfig *
ags_config_get_instance ();

Get config instance.

Returns

the config instance

Since: 0.7.0


ags_config_new ()

AgsConfig *
ags_config_new (GObject *application_context);

Creates an AgsConfig.

Parameters

application_context

the AgsApplicationContext

 

Returns

a new AgsConfig.

Since: 0.4.2

Types and Values

AGS_CONFIG_DEFAULT_VERSION

#define AGS_CONFIG_DEFAULT_VERSION "0.7.0\0"


AGS_CONFIG_DEFAULT_BUILD_ID

#define AGS_CONFIG_DEFAULT_BUILD_ID "CEST 13-10-2015 01:19\0"


AGS_CONFIG_GENERIC

#define AGS_CONFIG_GENERIC "generic\0"


AGS_CONFIG_THREAD

#define AGS_CONFIG_THREAD "thread\0"


AGS_CONFIG_SOUNDCARD

#define AGS_CONFIG_SOUNDCARD "soundcard\0"


AGS_CONFIG_SEQUENCER

#define AGS_CONFIG_SEQUENCER "sequencer\0"


AGS_CONFIG_RECALL

#define AGS_CONFIG_RECALL "recall\0"

Property Details

The “application-context” property

  “application-context”      AgsApplicationContext *

The application context which this config is packed into.

Flags: Read / Write

Signal Details

The “get-value” signal

gchar*
user_function (AgsConfig *config,
               gchar     *group,
               gchar     *key,
               gpointer   user_data)

Flags: Run Last

Since: 0.4.2


The “load-defaults” signal

void
user_function (AgsConfig *config,
               gpointer   user_data)

Flags: Run Last

Since: 0.4.2


The “set-value” signal

void
user_function (AgsConfig *config,
               gchar     *group,
               gchar     *key,
               gchar     *value,
               gpointer   user_data)

Flags: Run Last

Since: 0.4.2