Go to the source code of this file.
Classes | |
| struct | ConfigHeader |
| struct | Config |
Functions | |
| EXTERN_C_BEGIN LIBGIFT_EXPORT Config * | config_new (char *file) |
| LIBGIFT_EXPORT Config * | config_new_ex (char *file, int comments_allowed) |
| LIBGIFT_EXPORT void | config_free (Config *conf) |
| LIBGIFT_EXPORT void | config_write (Config *conf) |
| LIBGIFT_EXPORT void | config_set_str (Config *conf, char *keypath, char *value) |
| LIBGIFT_EXPORT void | config_set_int (Config *conf, char *keypath, int value) |
| LIBGIFT_EXPORT char * | config_get_str (Config *conf, char *keypath) |
| LIBGIFT_EXPORT int | config_get_int (Config *conf, char *keypath) |
| LIBGIFT_EXPORT Config * | gift_config_new (char *module) |
| LIBGIFT_EXPORT char * | gift_conf_path (const char *fmt,...) |
| LIBGIFT_EXPORT char * | gift_conf_path_r (char *buf, size_t buf_size, const char *fmt,...) |
| LIBGIFT_EXPORT char * | gift_conf_pathkey (Config *conf, char *key, char *def, char *file) |
Provides routines that can be used to manipulate INI-style configuration files. These routines properly preserve formatting and comments within the original files.
|
|
Destroys the memory associated with a Config pointer.
|
|
||||||||||||
|
Gets a configuration key's value from memory converted to a signed integer.
|
|
||||||||||||
|
Gets a configuration key's value from memory as a string.
|
|
|
Loads a configuration file into memory.
|
|
||||||||||||
|
Extended constructor. See config_new.
|
|
||||||||||||||||
|
Sets a configuration key in memory using a signed integer value.
|
|
||||||||||||||||
|
Sets a configuration key in memory using a string value.
|
|
|
Attempts to synch the possibly formatted configuration file on disk with the data loaded into memory.
|
|
||||||||||||
|
Completely unrelated extension that merely interprets the supplied printf format string and prepends the platform-specific local dir, which will be $HOME/.giFT by default on UNIX hosts. For thread-safety, see gift_conf_path_r.
|
|
||||||||||||||||||||
|
gift_conf_path with thread-safety. Uses the supplied buffer for storing the resulting path. On success, the calling argument `buf' will be returned. |
|
||||||||||||||||||||
|
Return an expanded path from the configuration file with a fallback result from gift_conf_path. Example:
|
|
|
Extension specific to giFT that is used to load configuration modules from the ~/.giFT/ directory path.
|
1.3.7