X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fcli-out.h;h=401429ab56047af039c88ac020c314f223f96e6f;hb=1946c4ccca04e374acc040fc30c8b44d2c9ca0a8;hp=5f32a114081f77efeda0ea078fee17db9a08051f;hpb=9b254dd1ce46c19dde1dde5b8d1e22e862dfacce;p=binutils-gdb.git diff --git a/gdb/cli-out.h b/gdb/cli-out.h index 5f32a114081..401429ab560 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 Free Software Foundation, Inc. + Copyright (C) 1999-2015 Free Software Foundation, Inc. Contributed by Cygnus Solutions. This file is part of GDB. @@ -20,11 +20,34 @@ #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 const 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); +extern void cli_display_match_list (char **matches, int len, int max); + #endif