Home |
Download |
Musics |
Developers |
conf68.h File Reference
Detailed Description
configuration file.
- Author:
- Benjamin Gerard<ben@sashipa.com>
- Date:
- 1999/07/27
- Id
- conf68.h,v 2.3 2003/11/10 19:10:38 benjihan Exp
Go to the source code of this file.
|
Typedefs |
typedef _SC68config_s | SC68config_t |
| Config.
|
Enumerations |
enum | SC68config_type_t { SC68CONFIG_UNDEFINED = 0,
SC68CONFIG_INT,
SC68CONFIG_STRING,
SC68CONFIG_ERROR = -1
} |
| Config entry types. More...
|
Functions |
int | SC68config_valid (SC68config_t *conf) |
| Check and correct config values.
|
int | SC68config_get_idx (const SC68config_t *conf, const char *name) |
| Get index of named config entry.
|
SC68config_type_t | SC68config_range (const SC68config_t *conf, int idx, int *min, int *max, int *def) |
| Get type and range of a config entry.
|
SC68config_type_t | SC68config_get (const SC68config_t *conf, int *v, const char **name) |
| Get value of a config entry.
|
SC68config_type_t | SC68config_set (SC68config_t *conf, int idx, const char *name, int v, const char *s) |
| Set value of a config entry.
|
int | SC68config_load (SC68config_t *conf) |
| Load config from file.
|
int | SC68config_save (SC68config_t *conf) |
| Save config into file.
|
int | SC68config_default (SC68config_t *conf) |
| Fill config struct with default value.
|
SC68config_t * | SC68config_create (int size) |
| Create config.
|
void | SC68config_destroy (SC68config_t *conf) |
| Destroy config.
|
|