ui/console: move graphic fields to QemuGraphicConsole
commit58d5870845c61cea1e7df287b86c2607b2bf48a9
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 30 Aug 2023 09:38:03 +0000 (30 13:38 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 4 Sep 2023 09:55:59 +0000 (4 13:55 +0400)
treeebae25fd27a42ab9b0bed2c8bd5d00f72d615d8a
parentb2bb9cc43dbb942a5333a6271629fd6094771bca
ui/console: move graphic fields to QemuGraphicConsole

Move fields specific to graphic console to the console subclass.

qemu_console_get_head() is adapated to accomodate QemuTextConsole, and
always returns 0.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230830093843.3531473-30-marcandre.lureau@redhat.com>
ui/console.c