gdb/cli-out.h - gdb

Global variables defined

Data types defined

Macros defined

Source code

  1. /* Output generating routines for GDB CLI.
  2.    Copyright (C) 1999-2015 Free Software Foundation, Inc.
  3.    Contributed by Cygnus Solutions.

  4.    This file is part of GDB.

  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 3 of the License, or
  8.    (at your option) any later version.

  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.

  13.    You should have received a copy of the GNU General Public License
  14.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  15. #ifndef CLI_OUT_H
  16. #define CLI_OUT_H

  17. #include "ui-out.h"
  18. #include "vec.h"

  19. /* Used for cli_ui_out_data->streams.  */

  20. typedef struct ui_file *ui_filep;
  21. DEF_VEC_P (ui_filep);

  22. /* These are exported so that they can be extended by other `ui_out'
  23.    implementations, like TUI's.  */

  24. struct cli_ui_out_data
  25.   {
  26.     VEC (ui_filep) *streams;
  27.     int suppress_output;
  28.   };

  29. extern const struct ui_out_impl cli_ui_out_impl;


  30. extern struct ui_out *cli_out_new (struct ui_file *stream);

  31. extern void cli_out_data_ctor (struct cli_ui_out_data *data,
  32.                                struct ui_file *stream);

  33. extern struct ui_file *cli_out_set_stream (struct ui_out *uiout,
  34.                                            struct ui_file *stream);

  35. #endif