summaryrefslogtreecommitdiff
path: root/gdb/ui-file.h
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2012-12-18 07:01:55 +0000
committerHui Zhu <teawater@gmail.com>2012-12-18 07:01:55 +0000
commitc8c2a34bd2497c7fddc3c305fab45bcaf7390945 (patch)
tree8d74becc75fcdb0ce6304c4df6064a44bd0ecd11 /gdb/ui-file.h
parent964bd61b9a8241dff656f317a7a3f79a6787858a (diff)
downloadgdb-c8c2a34bd2497c7fddc3c305fab45bcaf7390945.tar.gz
2012-12-18 Hui Zhu <hui_zhu@mentor.com>
* ui-file.c (ui_file): Add to_fseek. (ui_file_new): Call set_ui_file_fseek. (null_file_fseek, ui_file_fseek, set_ui_file_fseek, stdio_file_fseek): New functions. (stdio_file_new): Call set_ui_file_fseek. * ui-file.h (ui_file_fseek_ftype): New typedef. (set_ui_file_fseek, ui_file_fseek): New externs.
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 a3b97da0b91..bb857134779 100644
--- a/gdb/ui-file.h
+++ b/gdb/ui-file.h
@@ -79,6 +79,11 @@ typedef void (ui_file_delete_ftype) (struct ui_file * stream);
extern void set_ui_file_data (struct ui_file *stream, void *data,
ui_file_delete_ftype *delete);
+typedef int (ui_file_fseek_ftype) (struct ui_file *stream, long offset,
+ int whence);
+extern void set_ui_file_fseek (struct ui_file *stream,
+ ui_file_fseek_ftype *fseek_ptr);
+
extern void *ui_file_data (struct ui_file *file);
@@ -113,6 +118,8 @@ extern char *ui_file_obsavestring (struct ui_file *file,
extern long ui_file_read (struct ui_file *file, char *buf, long length_buf);
+extern int ui_file_fseek (struct ui_file *file, long offset, int whence);
+
/* Create/open a memory based file. Can be used as a scratch buffer
for collecting output. */
extern struct ui_file *mem_fileopen (void);