summary refs log tree commit diff stats
path: root/ui/console.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-08-30 13:37:55 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-09-04 13:48:10 +0400
commitba0ec5c2931cd6efafc92bde3bd8fc3f99594fd3 (patch)
treea9e384d80a94ddeec720a1e2f5918c7d263391fa /ui/console.c
parentc105d60f7fe912cca558ce5ff5680bfd0c1300fa (diff)
downloadfocaccia-qemu-ba0ec5c2931cd6efafc92bde3bd8fc3f99594fd3.tar.gz
focaccia-qemu-ba0ec5c2931cd6efafc92bde3bd8fc3f99594fd3.zip
ui/console: register the console from qemu_console_init()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230830093843.3531473-22-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui/console.c')
-rw-r--r--ui/console.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/console.c b/ui/console.c
index dd8e8db525..02a24eaf5d 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1366,6 +1366,7 @@ qemu_console_init(Object *obj)
     qemu_co_queue_init(&c->dump_queue);
     c->ds = ds;
     c->window_id = -1;
+    qemu_console_register(c);
 }
 
 static void
@@ -1419,8 +1420,6 @@ static QemuConsole *new_console(const char *typename,
     QemuConsole *c = QEMU_CONSOLE(object_new(typename));
 
     c->head = head;
-    /* TODO: move to console_init() once there is a type hierarchy */
-    qemu_console_register(c);
 
     return c;
 }