mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
console: qom-ify QemuConsole
Just the minimal bits to turn QemuConsoles into Objects. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
7c4869761d
commit
95be0669a3
3 changed files with 30 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define CONSOLE_H
|
||||
|
||||
#include "ui/qemu-pixman.h"
|
||||
#include "qom/object.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qemu/notify.h"
|
||||
#include "monitor/monitor.h"
|
||||
|
|
@ -93,6 +94,20 @@ void kbd_put_keysym(int keysym);
|
|||
|
||||
/* consoles */
|
||||
|
||||
#define TYPE_QEMU_CONSOLE "qemu-console"
|
||||
#define QEMU_CONSOLE(obj) \
|
||||
OBJECT_CHECK(QemuConsole, (obj), TYPE_QEMU_CONSOLE)
|
||||
#define QEMU_CONSOLE_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(QemuConsoleClass, (obj), TYPE_QEMU_CONSOLE)
|
||||
#define QEMU_CONSOLE_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(QemuConsoleClass, (klass), TYPE_QEMU_CONSOLE)
|
||||
|
||||
typedef struct QemuConsoleClass QemuConsoleClass;
|
||||
|
||||
struct QemuConsoleClass {
|
||||
ObjectClass parent_class;
|
||||
};
|
||||
|
||||
#define QEMU_BIG_ENDIAN_FLAG 0x01
|
||||
#define QEMU_ALLOCATED_FLAG 0x02
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue