allegro

This document pertains to configuration related methods found in the Allegro egg.

Please see the main [allegro] wiki page for more information.

  1. allegro
  2. Records
    1. config
    2. config-entry
    3. config-section
  3. Functions
    1. Config Files

Records

config

[record] config

config-entry

<record>config-entry</config>

config-section

[record] config-section

Functions

Config Files

[procedure] (make-config*)

Implements al_create_config.

[procedure] (make-config)

Implements al_create_config, with (free-config!) declared as a finalizer.

[procedure] (free-config! config)

Implements al_destroy_config.

[procedure] (config-section-add! config string)

Implements al_add_config_section.

[procedure] (config-value-set! config (string section) (string key) (string value))

Implements al_set_config_value.

[procedure] (config-comment-add! config (string section) (string comment))

Implements al_add_config_comment.

[procedure] (config-value config (string section) (string key))

Implements al_get_config_value.

[procedure] (load-config* string)

Implements al_load_config_file.

[procedure] (load-config string)

Implements al_load_config_file, with (free-config!) decalred as a finalizer.

[procedure] (load-config-from-file* file)

Implements al_load_config_file_f.

[procedure] (load-config-from-file file)

Implements al_load_config_file_f, with (free-config!) declared as a finalizer.

[procedure] (config-save config string)

Implements al_save_config_file.

[procedure] (config-save-to-file config file)

Implements al_save_config_file_f.

[procedure] (config-merge! config config)

Implements al_merge_config_into.

[procedure] (config-merge config config)

Implements al_merge_config.

[procedure] (config-sections config)

Creates an iterator that covers the sections of the given config.

Returns values of the form (list config-section promise).

(force) the promise to get the next section.

Needs testing!

[procedure] (config-entries config config-section)

Creates an iterator that covers the entries of the given config and config-section.

Returns values of the form (list config-entry promise).

(force) the promise to get the next entry.

Needs testing!