mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
char: remove explicit_be_open from CharDriverState
It's only used in qmp_chardev_add(), so use a create() argument instead. Also switched to typedef functions for CharDriverParse/CharDriverCreate. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20161022100951.19562-7-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ebf4c54d4b
commit
82878dac6f
8 changed files with 59 additions and 32 deletions
3
ui/gtk.c
3
ui/gtk.c
|
@ -1685,9 +1685,6 @@ static CharDriverState *gd_vc_handler(ChardevVC *vc, Error **errp)
|
|||
/* Temporary, until gd_vc_vte_init runs. */
|
||||
chr->opaque = g_new0(VirtualConsole, 1);
|
||||
|
||||
/* defer OPENED events until our vc is fully initialized */
|
||||
chr->explicit_be_open = true;
|
||||
|
||||
vcs[nb_vcs++] = chr;
|
||||
|
||||
return chr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue