15796c8dcSSimon Schubert /* Output generating routines for GDB CLI. 2*ef5ccd6cSJohn Marino Copyright (C) 1999-2013 Free Software Foundation, Inc. 35796c8dcSSimon Schubert Contributed by Cygnus Solutions. 45796c8dcSSimon Schubert 55796c8dcSSimon Schubert This file is part of GDB. 65796c8dcSSimon Schubert 75796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 85796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 95796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 105796c8dcSSimon Schubert (at your option) any later version. 115796c8dcSSimon Schubert 125796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 135796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 145796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 155796c8dcSSimon Schubert GNU General Public License for more details. 165796c8dcSSimon Schubert 175796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 185796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 195796c8dcSSimon Schubert 205796c8dcSSimon Schubert #ifndef CLI_OUT_H 215796c8dcSSimon Schubert #define CLI_OUT_H 225796c8dcSSimon Schubert 23cf7f2e2dSJohn Marino #include "ui-out.h" 24c50c785cSJohn Marino #include "vec.h" 25c50c785cSJohn Marino 26c50c785cSJohn Marino /* Used for cli_ui_out_data->streams. */ 27c50c785cSJohn Marino 28c50c785cSJohn Marino typedef struct ui_file *ui_filep; 29c50c785cSJohn Marino DEF_VEC_P (ui_filep); 30cf7f2e2dSJohn Marino 31cf7f2e2dSJohn Marino /* These are exported so that they can be extended by other `ui_out' 32cf7f2e2dSJohn Marino implementations, like TUI's. */ 33cf7f2e2dSJohn Marino 34cf7f2e2dSJohn Marino struct cli_ui_out_data 35cf7f2e2dSJohn Marino { 36c50c785cSJohn Marino VEC (ui_filep) *streams; 37cf7f2e2dSJohn Marino int suppress_output; 38cf7f2e2dSJohn Marino }; 39cf7f2e2dSJohn Marino 40cf7f2e2dSJohn Marino extern struct ui_out_impl cli_ui_out_impl; 41cf7f2e2dSJohn Marino 425796c8dcSSimon Schubert 435796c8dcSSimon Schubert extern struct ui_out *cli_out_new (struct ui_file *stream); 445796c8dcSSimon Schubert 45cf7f2e2dSJohn Marino extern void cli_out_data_ctor (struct cli_ui_out_data *data, 46cf7f2e2dSJohn Marino struct ui_file *stream); 47cf7f2e2dSJohn Marino 485796c8dcSSimon Schubert extern struct ui_file *cli_out_set_stream (struct ui_out *uiout, 495796c8dcSSimon Schubert struct ui_file *stream); 505796c8dcSSimon Schubert 515796c8dcSSimon Schubert #endif 52