console-priv.h 903 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * SPDX-License-Identifier: GPL-2.0-or-later
  3. * QEMU UI Console
  4. */
  5. #ifndef CONSOLE_PRIV_H
  6. #define CONSOLE_PRIV_H
  7. #include "ui/console.h"
  8. #include "qemu/coroutine.h"
  9. #include "qemu/timer.h"
  10. #include "vgafont.h"
  11. #define FONT_HEIGHT 16
  12. #define FONT_WIDTH 8
  13. struct QemuConsole {
  14. Object parent;
  15. int index;
  16. DisplayState *ds;
  17. DisplaySurface *surface;
  18. DisplayScanout scanout;
  19. int dcls;
  20. DisplayGLCtx *gl;
  21. int gl_block;
  22. QEMUTimer *gl_unblock_timer;
  23. int window_id;
  24. QemuUIInfo ui_info;
  25. QEMUTimer *ui_timer;
  26. const GraphicHwOps *hw_ops;
  27. void *hw;
  28. CoQueue dump_queue;
  29. QTAILQ_ENTRY(QemuConsole) next;
  30. };
  31. void qemu_text_console_update_size(QemuTextConsole *c);
  32. const char * qemu_text_console_get_label(QemuTextConsole *c);
  33. void qemu_text_console_update_cursor(void);
  34. void qemu_text_console_handle_keysym(QemuTextConsole *s, int keysym);
  35. #endif