From 4f50ec98ddd57253cae66e2321f0cc98ee189a09 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 27 Mar 2014 12:59:55 +0100 Subject: Change some keyedit functions to allow printing to arbitrary streams. * common/ttyio.c (tty_print_string): Add optional arg FP. Change all callers. (tty_print_utf8_string2): Ditto. * g10/keyedit.c (show_prefs): Ditto. (show_key_with_all_names_colon): Ditto. (show_names): Ditto. * g10/keylist.c (print_revokers): Ditto. (print_fingerprint): Ditto. --- common/ttyio.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/ttyio.h') diff --git a/common/ttyio.h b/common/ttyio.h index 5c810b8a5..0a66d8654 100644 --- a/common/ttyio.h +++ b/common/ttyio.h @@ -47,9 +47,10 @@ void tty_printf (const char *fmt, ... ); void tty_fprintf (estream_t fp, const char *fmt, ... ); char *tty_getf (const char *promptfmt, ... ); #endif -void tty_print_string (const unsigned char *p, size_t n); +void tty_print_string (estream_t fp, const unsigned char *p, size_t n); void tty_print_utf8_string (const unsigned char *p, size_t n); -void tty_print_utf8_string2 (const unsigned char *p, size_t n, size_t max_n); +void tty_print_utf8_string2 (estream_t fp, + const unsigned char *p, size_t n, size_t max_n); char *tty_get (const char *prompt); char *tty_get_hidden (const char *prompt); void tty_kill_prompt (void); -- cgit v1.2.3