#include "common.h"
#include <errno.h>
#include <limits.h>
#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "logger.h"
#include "conftable.h"
#include "keypvalplist.h"
#include "misc.h"
#include "xmalloc.h"
Include dependency graph for conftable.c:

Go to the source code of this file.
Functions | |
| int | initConftable () |
| inits the Conftable. | |
| int | terminateConftable () |
| terminates the Conftable and frees the allocated memory. | |
| int | setEntry (const int priority, char *const pkey, char *const pvalue) |
| Adds or sets a new key-value-pair. More... | |
| int | setEntryL (const int priority, char *const key, const long value) |
| set a long int value. More... | |
| const char * | getEntry (const char *const key) |
| Returns a value to a given key. More... | |
| const char * | getEntryDefl (const char *const key, const char *const defl_data) |
returns a value to a given key or defl_data of the key cannot be found. More... | |
| long | getEntryL (const char *const key) |
| Returns a value to a given key as 'long int'. More... | |
| long int | getEntryDeflL (const char *const key, long int defl_data) |
| same as getEntryL, but if no value is found the defl_data is returned. More... | |
| int | getEntryI (const char *const key) |
| Returns a value to a given key as 'int'. More... | |
| int | getEntryDeflI (const char *const key, int defl_data) |
| same as getEntryI, but if no value is found the defl_data is returned. More... | |
| unsigned int | getEntryDeflUI (const char *const key, unsigned int defl_data) |
| same as getEntryDeflI, but if value < 0 defl_data is returned. More... | |
| int | readConfigFile () |
| reads a given config file. More... | |
Variables | |
| KeypValpList | list |
| the internal key_value_list. | |
Definition in file conftable.c.
|
|
Returns a value to a given key.
Null is returned when key is not found, else the key-value is returned
Definition at line 140 of file conftable.c. |
|
||||||||||||
|
returns a value to a given key or
Definition at line 154 of file conftable.c. |
|
||||||||||||
|
same as getEntryI, but if no value is found the defl_data is returned.
Definition at line 204 of file conftable.c. |
|
||||||||||||
|
same as getEntryL, but if no value is found the defl_data is returned.
Definition at line 180 of file conftable.c. |
|
||||||||||||
|
same as getEntryDeflI, but if value < 0 defl_data is returned.
Definition at line 211 of file conftable.c. |
|
|
Returns a value to a given key as 'int'.
0 is returned when key is not found, else the key-value is returned
Definition at line 190 of file conftable.c. |
|
|
Returns a value to a given key as 'long int'.
0 is returned when key is not found, else the key-value is returned
Definition at line 162 of file conftable.c. |
|
|
reads a given config file.
the config file given by "configfile" is parsed and inserted to the internal conftable - structure
Definition at line 219 of file conftable.c. Referenced by main().
|
|
||||||||||||||||
|
Adds or sets a new key-value-pair.
Definition at line 72 of file conftable.c. |
|
||||||||||||||||
|
set a long int value.
Definition at line 125 of file conftable.c. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001