mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Various updates
This commit is contained in:
parent
c69dc436ce
commit
43ab905823
19 changed files with 138 additions and 66 deletions
|
@ -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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue