aboutsummaryrefslogtreecommitdiffstats
path: root/common/ttyio.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-09-21 13:30:45 +0000
committerWerner Koch <[email protected]>2006-09-21 13:30:45 +0000
commit43ab905823df0ae44607cda41da9c105e009c1e5 (patch)
tree155ab1ee960c61dbaa5c4db6747358fa0117bf14 /common/ttyio.h
parentCleanups. (diff)
downloadgnupg-43ab905823df0ae44607cda41da9c105e009c1e5.tar.gz
gnupg-43ab905823df0ae44607cda41da9c105e009c1e5.zip
Various updates
Diffstat (limited to 'common/ttyio.h')
-rw-r--r--common/ttyio.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/common/ttyio.h b/common/ttyio.h
index 32d159863..d93906eab 100644
--- a/common/ttyio.h
+++ b/common/ttyio.h
@@ -21,10 +21,8 @@
#ifndef GNUPG_COMMON_TTYIO_H
#define GNUPG_COMMON_TTYIO_H
-#ifdef HAVE_LIBREADLINE
-#include <stdio.h>
-#include <readline/readline.h>
-#endif
+#include "util.h" /* Make sure our readline typedef is available. */
+
const char *tty_get_ttyname (void);
int tty_batchmode (int onoff);
@@ -46,16 +44,9 @@ void tty_kill_prompt (void);
int tty_get_answer_is_yes (const char *prompt);
int tty_no_terminal (int onoff);
-#ifdef HAVE_LIBREADLINE
-void tty_enable_completion(rl_completion_func_t *completer);
-void tty_disable_completion(void);
-#else
-/* Use a macro to stub out these functions since a macro has no need
- to typedef a "rl_completion_func_t" which would be undefined
- without readline. */
-#define tty_enable_completion(x)
-#define tty_disable_completion()
-#endif
+void tty_enable_completion (rl_completion_func_t *completer);
+void tty_disable_completion (void);
+void tty_cleanup_rl_after_signal (void);
#endif /*GNUPG_COMMON_TTYIO_H*/