jnlib/ChangeLog:
authorMoritz Schulte <mo@g10code.com>
Sat, 22 Oct 2005 21:14:57 +0000 (21:14 +0000)
committerMoritz Schulte <mo@g10code.com>
Sat, 22 Oct 2005 21:14:57 +0000 (21:14 +0000)
commit98348589b96912d07d8ca0b00bbc20aa80445953
treec5f9f31d42620b6a74e13d3c178a3a95dff43b52
parent68cf85ebda0f462d6a1729001d8ffb38637e8ab7
jnlib/ChangeLog:

2005-10-22  Moritz Schulte  <moritz@g10code.com>

Updated jnlib.

* logging.c: Include <syslog.h>.
(syslog_priorities): New static array.
(logging_to_syslog): New static variable.
(set_syslog): New function.
(log_set_syslog): New function, public interface to set_syslog.
(log_close): New function.
(log_get_stream): Return LOGSTREAM (which must be NULL) in case
Syslog logging is enabled.
(log_get_fd): In case Syslog logging is enabled, return -1 in any
case.
(do_logv): Use assert to make sure that LEVEL contains an allowed
value; implement support for logging to Syslog.

* logging.h (log_set_syslog): New function.
(log_close): Likewise.
src/jnlib/ChangeLog
src/jnlib/argparse.c
src/jnlib/logging.c
src/jnlib/logging.h
src/jnlib/stringhelp.c
src/jnlib/stringhelp.h
src/jnlib/types.h
src/jnlib/utf8conv.c