mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
Move the VT100 terminal emulation code into dedicated ui/vt100.c and ui/vt100.h files, completing the extraction from console-vc.c started in the previous patches. This makes the VT100 layer a self-contained module that can be reused independently of the chardev/console infrastructure. The code is moved as-is, with minor coding style fixes (adding missing braces, fixing whitespace) applied during the move. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
36 lines
716 B
C
36 lines
716 B
C
/*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* QEMU UI Console
|
|
*/
|
|
#ifndef CONSOLE_PRIV_H
|
|
#define CONSOLE_PRIV_H
|
|
|
|
#include "ui/console.h"
|
|
#include "qemu/coroutine.h"
|
|
#include "qemu/timer.h"
|
|
|
|
struct QemuConsole {
|
|
Object parent;
|
|
|
|
int index;
|
|
DisplayState *ds;
|
|
DisplaySurface *surface;
|
|
DisplayScanout scanout;
|
|
DisplayGLCtx *gl;
|
|
int gl_block;
|
|
QEMUTimer *gl_unblock_timer;
|
|
int window_id;
|
|
QemuUIInfo ui_info;
|
|
QEMUTimer *ui_timer;
|
|
const GraphicHwOps *hw_ops;
|
|
void *hw;
|
|
CoQueue dump_queue;
|
|
|
|
QTAILQ_ENTRY(QemuConsole) next;
|
|
};
|
|
|
|
void qemu_text_console_update_size(QemuTextConsole *c);
|
|
void qemu_text_console_handle_keysym(QemuTextConsole *s, int keysym);
|
|
|
|
#endif
|