xref: /dflybsd-src/contrib/gdb-7/gdb/cli-out.h (revision cf7f2e2d389e8012d562650bd94d7e433f449d6e)
15796c8dcSSimon Schubert /* Output generating routines for GDB CLI.
2*cf7f2e2dSJohn Marino    Copyright (C) 1999, 2000, 2007, 2008, 2009, 2010
3*cf7f2e2dSJohn Marino    Free Software Foundation, Inc.
45796c8dcSSimon Schubert    Contributed by Cygnus Solutions.
55796c8dcSSimon Schubert 
65796c8dcSSimon Schubert    This file is part of GDB.
75796c8dcSSimon Schubert 
85796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
95796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
105796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
115796c8dcSSimon Schubert    (at your option) any later version.
125796c8dcSSimon Schubert 
135796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
145796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
155796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
165796c8dcSSimon Schubert    GNU General Public License for more details.
175796c8dcSSimon Schubert 
185796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
195796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
205796c8dcSSimon Schubert 
215796c8dcSSimon Schubert #ifndef CLI_OUT_H
225796c8dcSSimon Schubert #define CLI_OUT_H
235796c8dcSSimon Schubert 
24*cf7f2e2dSJohn Marino #include "ui-out.h"
25*cf7f2e2dSJohn Marino 
26*cf7f2e2dSJohn Marino /* These are exported so that they can be extended by other `ui_out'
27*cf7f2e2dSJohn Marino    implementations, like TUI's.  */
28*cf7f2e2dSJohn Marino 
29*cf7f2e2dSJohn Marino struct cli_ui_out_data
30*cf7f2e2dSJohn Marino   {
31*cf7f2e2dSJohn Marino     struct ui_file *stream;
32*cf7f2e2dSJohn Marino     struct ui_file *original_stream;
33*cf7f2e2dSJohn Marino     int suppress_output;
34*cf7f2e2dSJohn Marino   };
35*cf7f2e2dSJohn Marino 
36*cf7f2e2dSJohn Marino extern struct ui_out_impl cli_ui_out_impl;
37*cf7f2e2dSJohn Marino 
385796c8dcSSimon Schubert 
395796c8dcSSimon Schubert extern struct ui_out *cli_out_new (struct ui_file *stream);
405796c8dcSSimon Schubert 
41*cf7f2e2dSJohn Marino extern void cli_out_data_ctor (struct cli_ui_out_data *data,
42*cf7f2e2dSJohn Marino 			       struct ui_file *stream);
43*cf7f2e2dSJohn Marino 
445796c8dcSSimon Schubert extern struct ui_file *cli_out_set_stream (struct ui_out *uiout,
455796c8dcSSimon Schubert 					   struct ui_file *stream);
465796c8dcSSimon Schubert 
475796c8dcSSimon Schubert #endif
48