summaryrefslogtreecommitdiffstats
path: root/common/logging.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-03-10 18:22:23 +0100
committerWerner Koch <wk@gnupg.org>2010-03-10 18:22:23 +0100
commit02566c5856165ae5c85e7deb7adf7eafeea566ad (patch)
tree43fcf64c9bcf329d87efced082309c7c9bd9a2f7 /common/logging.h
parentMerged jnlib into common. (diff)
downloadgnupg2-02566c5856165ae5c85e7deb7adf7eafeea566ad.tar.xz
gnupg2-02566c5856165ae5c85e7deb7adf7eafeea566ad.zip
Change logging to use estream. The makes logging to a socket also
work on Solaris etc. Further changes required.. This is just a first step.
Diffstat (limited to 'common/logging.h')
-rw-r--r--common/logging.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/logging.h b/common/logging.h
index 0b96108a8..7f595273d 100644
--- a/common/logging.h
+++ b/common/logging.h
@@ -1,5 +1,6 @@
/* logging.h
- * Copyright (C) 1999, 2000, 2001, 2004, 2006 Free Software Foundation, Inc.
+ * Copyright (C) 1999, 2000, 2001, 2004, 2006,
+ * 2010 Free Software Foundation, Inc.
*
* This file is part of JNLIB.
*
@@ -21,6 +22,7 @@
#define LIBJNLIB_LOGGING_H
#include <stdio.h>
+#include "estream.h"
#include "mischelp.h"
/* Flag values for log_set_prefix. */
@@ -38,7 +40,7 @@ void log_set_prefix (const char *text, unsigned int flags);
const char *log_get_prefix (unsigned int *flags);
int log_test_fd (int fd);
int log_get_fd(void);
-FILE *log_get_stream (void);
+estream_t log_get_stream (void);
#ifdef JNLIB_GCC_M_FUNCTION
void bug_at( const char *file, int line, const char *func ) JNLIB_GCC_A_NR;