summaryrefslogtreecommitdiff
path: root/gdb/ui-file.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-07-25 03:14:28 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-07-25 03:14:28 +0000
commit15a3f09a4c722873cc277f1863625bde436da1c1 (patch)
tree8c66bca485068fd8db05fd3584fd1a779e2da309 /gdb/ui-file.h
parentb9b00a086302d79f7632b4332664c6c11b9a4dbb (diff)
downloadgdb-15a3f09a4c722873cc277f1863625bde436da1c1.tar.gz
* ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
(tee_file_flush, tee_file_write, tee_file_fputs) (tee_file_isatty): New. * ui-file.h (tee_file_new): Add prototype.
Diffstat (limited to 'gdb/ui-file.h')
-rw-r--r--gdb/ui-file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ui-file.h b/gdb/ui-file.h
index 3c351939797..989c343dfa0 100644
--- a/gdb/ui-file.h
+++ b/gdb/ui-file.h
@@ -90,4 +90,11 @@ extern struct ui_file *stdio_fileopen (FILE *file);
/* Open NAME returning an STDIO based UI_FILE. */
extern struct ui_file *gdb_fopen (char *name, char *mode);
+/* Create a file which writes to both ONE and TWO. CLOSE_ONE
+ and CLOSE_TWO indicate whether the original files should be
+ closed when the new file is closed. */
+struct ui_file *tee_file_new (struct ui_file *one,
+ int close_one,
+ struct ui_file *two,
+ int close_two);
#endif