aboutsummaryrefslogtreecommitdiffstats
path: root/assuan/assuan.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-08-02 14:59:01 +0000
committerWerner Koch <[email protected]>2007-08-02 14:59:01 +0000
commit5e00a176f502fe29d2f4d30d581865d539452f79 (patch)
treec2cc73d8de0f9fd0fa6e9162c6aa82006eff6331 /assuan/assuan.h
parentAdd item for tracepoints. (diff)
downloadgpgme-5e00a176f502fe29d2f4d30d581865d539452f79.tar.gz
gpgme-5e00a176f502fe29d2f4d30d581865d539452f79.zip
Improved debug support: Assuan logging is now directed to the gpgme debug
stream. Create processes detached.
Diffstat (limited to '')
-rw-r--r--assuan/assuan.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/assuan/assuan.h b/assuan/assuan.h
index fd807959..cce9428b 100644
--- a/assuan/assuan.h
+++ b/assuan/assuan.h
@@ -137,6 +137,7 @@ int _gpgme_io_recvmsg (int sock, struct msghdr *msg, int flags);
#define assuan_sendfd _ASSUAN_PREFIX(assuan_sendfd)
#define assuan_receivefd _ASSUAN_PREFIX(assuan_receivefd)
#define assuan_set_malloc_hooks _ASSUAN_PREFIX(assuan_set_malloc_hooks)
+#define assuan_set_assuan_log_level _ASSUAN_PREFIX(assuan_set_assuan_log_level)
#define assuan_set_log_stream _ASSUAN_PREFIX(assuan_set_log_stream)
#define assuan_set_error _ASSUAN_PREFIX(assuan_set_error)
#define assuan_set_pointer _ASSUAN_PREFIX(assuan_set_pointer)
@@ -532,6 +533,14 @@ void assuan_set_assuan_err_source (int errsource);
/*-- assuan-logging.c --*/
+/* Set the log level for general assuan commands. 0 is no logging at
+ all, 1 is the standard logging and the default. Higher leveles may
+ be defined in the future. Passing a level of -1 will not change
+ the current log level. Returns previous log level. Note, that
+ this function is not thread-safe and should in general be used
+ right at startup. */
+int assuan_set_assuan_log_level (int level);
+
/* Set the stream to which assuan should log message not associated
with a context. By default, this is stderr. The default value
will be changed when the first log stream is associated with a