diff options
author | Werner Koch <wk@gnupg.org> | 2004-04-16 11:46:54 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2004-04-16 11:46:54 +0200 |
commit | e21bf7b9e059dc0ef97c6c8a866db3a266f3f647 (patch) | |
tree | c9da9440b686f62a7e58bbf0aa154d2f9311a540 /jnlib/logging.h | |
parent | * misc.c (setup_pinentry_env): New. (diff) | |
download | gnupg2-e21bf7b9e059dc0ef97c6c8a866db3a266f3f647.tar.xz gnupg2-e21bf7b9e059dc0ef97c6c8a866db3a266f3f647.zip |
* gpg-agent.c (main): Tell the logging code taht we are runnign
detached.
* logging.h (JNLIB_LOG_WITH_PREFIX): Add constants for the flag
values.
* logging.c (log_set_prefix): New flag DETACHED.
(fun_writer): Take care of this flag.
(log_test_fd): New.
Diffstat (limited to 'jnlib/logging.h')
-rw-r--r-- | jnlib/logging.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jnlib/logging.h b/jnlib/logging.h index 78d2b020d..b5c0bd741 100644 --- a/jnlib/logging.h +++ b/jnlib/logging.h @@ -1,5 +1,5 @@ /* logging.h - * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. + * Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -24,6 +24,11 @@ #include <stdio.h> #include "mischelp.h" +/* Flag values for log_set_prefix. */ +#define JNLIB_LOG_WITH_PREFIX 1 +#define JNLIB_LOG_WITH_TIME 2 +#define JNLIB_LOG_WITH_PID 4 +#define JNLIB_LOG_RUN_DETACHED 256 int log_get_errorcount (int clear); void log_inc_errorcount (void); @@ -31,6 +36,7 @@ void log_set_file( const char *name ); void log_set_fd (int fd); 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); |