GDB (API)
|
00001 /* Output generating routines for GDB CLI. 00002 Copyright (C) 1999-2013 Free Software Foundation, Inc. 00003 Contributed by Cygnus Solutions. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 #ifndef CLI_OUT_H 00021 #define CLI_OUT_H 00022 00023 #include "ui-out.h" 00024 #include "vec.h" 00025 00026 /* Used for cli_ui_out_data->streams. */ 00027 00028 typedef struct ui_file *ui_filep; 00029 DEF_VEC_P (ui_filep); 00030 00031 /* These are exported so that they can be extended by other `ui_out' 00032 implementations, like TUI's. */ 00033 00034 struct cli_ui_out_data 00035 { 00036 VEC (ui_filep) *streams; 00037 int suppress_output; 00038 }; 00039 00040 extern struct ui_out_impl cli_ui_out_impl; 00041 00042 00043 extern struct ui_out *cli_out_new (struct ui_file *stream); 00044 00045 extern void cli_out_data_ctor (struct cli_ui_out_data *data, 00046 struct ui_file *stream); 00047 00048 extern struct ui_file *cli_out_set_stream (struct ui_out *uiout, 00049 struct ui_file *stream); 00050 00051 #endif