X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcli-out.h;h=befa624eb338ba8a5a2b79102f51adaf34cf1383;hb=8b70b953ba15d6f6b1357d4e2186dca8a58bb4b2;hp=ea934732cc02a4ce5797a067448f69edab339485;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/cli-out.h b/gdb/cli-out.h index ea934732cc..befa624eb3 100644 --- a/gdb/cli-out.h +++ b/gdb/cli-out.h @@ -1,5 +1,5 @@ /* Output generating routines for GDB CLI. - Copyright (C) 1999, 2000, 2007, 2008, 2009, 2010 + Copyright (C) 1999, 2000, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Cygnus Solutions. @@ -21,10 +21,31 @@ #ifndef CLI_OUT_H #define CLI_OUT_H -struct ui_file; +#include "ui-out.h" +#include "vec.h" + +/* Used for cli_ui_out_data->streams. */ + +typedef struct ui_file *ui_filep; +DEF_VEC_P (ui_filep); + +/* These are exported so that they can be extended by other `ui_out' + implementations, like TUI's. */ + +struct cli_ui_out_data + { + VEC (ui_filep) *streams; + int suppress_output; + }; + +extern struct ui_out_impl cli_ui_out_impl; + extern struct ui_out *cli_out_new (struct ui_file *stream); +extern void cli_out_data_ctor (struct cli_ui_out_data *data, + struct ui_file *stream); + extern struct ui_file *cli_out_set_stream (struct ui_out *uiout, struct ui_file *stream);