libassuan/src (12 files)
cvs user neal
cvs@cvs.gnupg.org
Tue, 18 Feb 2003 03:42:08 +0100
Date: Tuesday, February 18, 2003 @ 03:41:58
Author: neal
Path: /cvs/gnupg/libassuan/src
Added: assuan-logging.c
Modified: ChangeLog Makefile.am assuan-buffer.c assuan-domain-connect.c
assuan-inquire.c assuan-io.c assuan-listen.c
assuan-pipe-connect.c assuan-socket-connect.c assuan-util.c
assuan.h
2003-02-17 Neal H. Walfield <neal@g10code.de>
* Makefile.am (lib_LIBRARIES): Use this instead of . . .
(noinst_LIBRARIES): . . . this.
(include_HEADERS): New variable.
(libassuan_a_SOURCES): Remove assuan.h, add assuan-logging.c.
* assuan.h (assuan_set_assuan_log_stream): New prototype.
(assuan_get_assuan_log_stream): Likewise.
(assuan_get_assuan_log_prefix): Likewise.
* assuan-logging.c: New file.
* assuan-buffer.c [HAVE_JNLIB_LOGGIN]: Do not include
"../jnlib/logging.h".
(my_log_prefix): Remove function.
(_assuan_read_line): Use assuan_get_assuan_log_prefix in lieu of
my_log_prefix.
(assuan_write_line): Likewise.
(_assuan_cookie_write_data): Likewise.
(_assuan_cookie_write_flush): Likewise.
* assuan-domain-connect.c (LOGERROR, LOGERROR1, LOGERROR2,
LOGERRORX): Remove.
(LOG): New macro.
(domain_reader): Use it.
(domain_writer): Likewise.
(domain_sendfd): Likewise.
(domain_receivefd): Likewise.
(_assuan_domain_init): Likewise.
(assuan_domain_connect): Likewise.
* assuan-pipe-connect.c [HAVE_JNLIB_LOGGIN]: Do not include
"../jnlib/logging.h".
(LOGERROR, LOGERROR1, LOGERROR2, LOGERRORX): Remove.
(LOG): New macro.
(assuan_pipe_connect): Use it.
* assuan-socket-connect.c [HAVE_JNLIB_LOGGIN]: Do not include
"../jnlib/logging.h".
(LOGERROR, LOGERROR1, LOGERROR2, LOGERRORX): Remove.
(LOG): New macro.
(assuan_socket_connect): Use it.
(socket_reader): Remove dead code.
(socket_writer): Likewise.
* assuan-util.c [HAVE_JNLIB_LOGGIN]: Do not include
"../jnlib/logging.h".
(_assuan_log_sanitized_string): Use assuan_get_assuan_log_stream,
not jnlib.
-------------------------+
ChangeLog | 51 ++++++++++++++++++++++++++--
Makefile.am | 9 ++---
assuan-buffer.c | 65 +++++++++++++++---------------------
assuan-domain-connect.c | 81 ++++++++++++++++++++--------------------------
assuan-inquire.c | 3 +
assuan-io.c | 2 -
assuan-listen.c | 2 -
assuan-logging.c | 42 +++++++++++++++++++++++
assuan-pipe-connect.c | 68 +++++++++++++++++---------------------
assuan-socket-connect.c | 71 +++++++++-------------------------------
assuan-util.c | 15 +-------
assuan.h | 31 ++++++++++++-----
12 files changed, 232 insertions(+), 208 deletions(-)