| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also simplified the initialisation of the logging module. By calling
the eurephia_log_init(eurephiaCTX *, char *dest, int loglevel) function,
a log context will be setup inside the eurephiaCTX.
To close the log file, eurephia_log_close(eurephiaCTX *) must be called.
The destination string to eurephia_log_init() can be:
- stdout:
Log everything to stdout
- stderr:
Log everything to stderr
- none:
Do no logging at all
- syslog:<facility>
Log via syslog. <facility> can be: user, local[0-7],
daemon or authpriv.
- Filename
All logging goes to the given filename. If the filename
string is not recognised by any of the reserved words above,
it will be handled as a filename.
|
| |
|
| |
|
|
|
|
|
| |
Made sure we only include needed include files and checked that
the copyright headers are equal and correct
|
|
|
|
|
|
| |
Get the database driver directly from config file. Implemented also
log settings via config file as well, which can be overridden by
future command line arguments.
|
|
As the code size on eurephiadm.c have grown quite a lot, it was about
time to split it into categories.
client_config.[ch] Manages unified config file and filenames, including
directory for these files. It also has the possibility
to also override defaults via environment variables.
It also contains a simple config file parser which
puts the config values into an eurephiaVALUES struct.
client_context.[ch] Functions for creating and destroying an eurephia context
needed for proper implementation.
client_session.[ch] Functions for creating and reopening old eurephia sessions,
needed for proper implementation.
Also went through all include statements, to make sure each file do not include
more than absolutely needed.
|