summaryrefslogtreecommitdiffstats
path: root/eurephiadm/client_context.c
Commit message (Collapse)AuthorAgeFilesLines
* Updated copyright datesDavid Sommerseth2012-10-081-1/+1
| | | | Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Updated Copyright dates to include 2010David Sommerseth2010-07-301-1/+1
|
* Added extra parameter to eurephia_log_init() to set log ident for syslogDavid Sommerseth2009-09-241-3/+6
|
* Rewritten the eurephia_log() to support syslog logging as wellDavid Sommerseth2009-09-241-39/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added debug logging of free_nullsafe() calls as wellDavid Sommerseth2009-09-071-3/+3
|
* Moved all malloc() operations over to a calloc wrapper, malloc_nullsafe()David Sommerseth2009-09-071-1/+1
| | | | This also improves debugging as well, if debug logging is enabled and log level is >= 40.
* Added doxygen comments for the main eurephiadm partsDavid Sommerseth2009-09-041-0/+26
|
* Made the licence explicit GPLv2 onlyDavid Sommerseth2009-03-261-1/+1
|
* Cleaned up the code a little bitDavid Sommerseth2009-03-261-3/+3
| | | | | Made sure we only include needed include files and checked that the copyright headers are equal and correct
* BUGFIX: Fixed no logging when log file is given in both config file and on ↵David Sommerseth2008-12-021-1/+1
| | | | command line
* Improved error handling if database_driver is not defined.David Sommerseth2008-12-011-1/+1
|
* Improved ugly comment errorDavid Sommerseth2008-12-011-1/+1
|
* Receive eurephiaVALUES struct with config instead of char *db interface.David Sommerseth2008-12-011-4/+43
| | | | | | 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.
* Split eurephiadm.c into several filesDavid Sommerseth2008-12-011-0/+76
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.