diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-07-25 03:14:28 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-07-25 03:14:28 +0000 |
commit | e4c242d9b0a60e44ef6388984701fcb23087ac03 (patch) | |
tree | 9b01bde037d3557db06603683647fe689205feb3 /gdb/ui-file.h | |
parent | ebf56fd3b86cc2b7315d10939fa9adcbaa6293af (diff) | |
download | gdb-e4c242d9b0a60e44ef6388984701fcb23087ac03.zip gdb-e4c242d9b0a60e44ef6388984701fcb23087ac03.tar.gz gdb-e4c242d9b0a60e44ef6388984701fcb23087ac03.tar.bz2 |
* 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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ui-file.h b/gdb/ui-file.h index 3c35193..989c343 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 |