Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco committed Sep 4, 2023
1 parent c105d60 commit ba0ec5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/console.c
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit ba0ec5c

Please sign in to comment.