gdb - Local mods (compile)
[dragonfly.git] / contrib / gdb-7 / gdb / cli-out.h
1 /* Output generating routines for GDB CLI.
2    Copyright (C) 1999-2015 Free Software Foundation, Inc.
3    Contributed by Cygnus Solutions.
4
5    This file is part of GDB.
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
20 #ifndef CLI_OUT_H
21 #define CLI_OUT_H
22
23 #include "ui-out.h"
24 #include "vec.h"
25
26 /* Used for cli_ui_out_data->streams.  */
27
28 typedef struct ui_file *ui_filep;
29 DEF_VEC_P (ui_filep);
30
31 /* These are exported so that they can be extended by other `ui_out'
32    implementations, like TUI's.  */
33
34 struct cli_ui_out_data
35   {
36     VEC (ui_filep) *streams;
37     int suppress_output;
38   };
39
40 extern const struct ui_out_impl cli_ui_out_impl;
41
42
43 extern struct ui_out *cli_out_new (struct ui_file *stream);
44
45 extern void cli_out_data_ctor (struct cli_ui_out_data *data,
46                                struct ui_file *stream);
47
48 extern struct ui_file *cli_out_set_stream (struct ui_out *uiout,
49                                            struct ui_file *stream);
50
51 extern void cli_display_match_list (char **matches, int len, int max);
52
53 #endif