#include "frdi.h"
Functions | |
int | frdiConfigGetInt (frdi_config *config, char *key) |
char * | frdiConfigGetChar (frdi_config *config, char *key) |
int | frdiConfigSetChar (frdi_config *config, char *key, char *value) |
void | frdiScanTreeForContents (scew_element *element, char scew_stack[50][50], frdi_config *config, int indent) |
frdi_config * | frdiReadConfigFromFileName (char *file_name) |
int | frdiWriteConfigToFileName (char *file_name, frdi_config *config) |
frdi_config * | frdiConfigLoad (int argc, char **argv, char **argenv) |
char * | frdiConfigDisplay (frdi_config *config) |
|
returns the int value associated with key |
|
returns the char value associated with key returns NULL if no value has been associted with key or if config is in some way invalid, or if there is no memory |
|
returns 0 on success returns non-0 if the pair key:value is invalid |
|
recursively goes down the element tree (depth first) |
|
returns a null pointer on failure |
|
returns 0 on success, non-0 on failure |
|
Called straight from main() this is the only point where input arguments, environmental variables and the configuration file are accessed. |
|
Displays the contents of the configuration object |