]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console.c
ui/console: change new_console() to use object initialization
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 30 Aug 2023 09:37:52 +0000 (13:37 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 4 Sep 2023 09:47:36 +0000 (13:47 +0400)
commit098d57e7c0aa347f08f0738e8bd55b9a7faed8d7
treec36d3604298c2eec1e1e6f03efe6b7e371168924
parente265917c77710ef721e4c333bccfecf030c7776c
ui/console: change new_console() to use object initialization

Object construction should be done in respective object instance and
class handlers.

Introduce qemu_console_register() to split out the registration logic.

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