mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
chardev: use QEMUChrEvent instead of int
This uses the QEMUChrEvent enum everywhere except in IOEventHandler. The IOEventHandler change needs to happen at once for all front ends and is done with Coccinelle in the next patch. (Extracted from a patch by Philippe Mathieu-Daudé). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
71f8d3b0e6
commit
2fa9044a4f
4 changed files with 8 additions and 8 deletions
|
@ -48,7 +48,7 @@ static Object *get_chardevs_root(void)
|
|||
return container_get(object_get_root(), "/chardevs");
|
||||
}
|
||||
|
||||
static void chr_be_event(Chardev *s, int event)
|
||||
static void chr_be_event(Chardev *s, QEMUChrEvent event)
|
||||
{
|
||||
CharBackend *be = s->be;
|
||||
|
||||
|
@ -59,7 +59,7 @@ static void chr_be_event(Chardev *s, int event)
|
|||
be->chr_event(be->opaque, event);
|
||||
}
|
||||
|
||||
void qemu_chr_be_event(Chardev *s, int event)
|
||||
void qemu_chr_be_event(Chardev *s, QEMUChrEvent event)
|
||||
{
|
||||
/* Keep track if the char device is open */
|
||||
switch (event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue