qemu-e2k/include
Philippe Mathieu-Daudé 083b266f69 chardev: Use QEMUChrEvent enum in IOEventHandler typedef
The Chardev events are listed in the QEMUChrEvent enum.

By using the enum in the IOEventHandler typedef we:

- make the IOEventHandler type more explicit (this handler
  process out-of-band information, while the IOReadHandler
  is in-band),
- help static code analyzers.

This patch was produced with the following spatch script:

  @match@
  expression backend, opaque, context, set_open;
  identifier fd_can_read, fd_read, fd_event, be_change;
  @@
  qemu_chr_fe_set_handlers(backend, fd_can_read, fd_read, fd_event,
                           be_change, opaque, context, set_open);

  @depends on match@
  identifier opaque, event;
  identifier match.fd_event;
  @@
   static
  -void fd_event(void *opaque, int event)
  +void fd_event(void *opaque, QEMUChrEvent event)
   {
   ...
   }

Then the typedef was modified manually in
include/chardev/char-fe.h.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Corey Minyard <cminyard@mvista.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20191218172009.8868-15-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-01-08 11:15:35 +01:00
..
authz
block block: Add bdrv_qapi_perm_to_blk_perm() 2020-01-06 13:43:06 +01:00
chardev chardev: Use QEMUChrEvent enum in IOEventHandler typedef 2020-01-08 11:15:35 +01:00
crypto crypto: Fix typo in QCryptoTLSSession's <example> comment 2019-12-18 08:36:15 +01:00
disas
exec Various testing and logging updates 2019-12-20 14:00:49 +00:00
fpu
hw accel/kvm: Make "kernel_irqchip" default on 2020-01-07 12:08:39 +01:00
io io: Fix Error usage in a comment <example> 2019-12-18 08:36:15 +01:00
libdecnumber
migration vmstate: replace DeviceState with VMStateIf 2020-01-06 18:41:32 +04:00
monitor hmp: drop Error pointer indirection in hmp_handle_error 2019-12-18 08:36:16 +01:00
net
qapi error: make Error **errp const where it is appropriate 2019-12-18 08:36:16 +01:00
qemu Add dbus-vmstate 2020-01-06 18:22:42 +00:00
qom object: add g_autoptr support 2020-01-02 13:54:57 +04:00
scsi
standard-headers linux-headers: Update 2019-12-17 10:39:48 +11:00
sysemu replay: record and replay random number sources 2020-01-07 12:08:39 +01:00
ui ui: add pixman image g_autoptr support 2020-01-02 13:54:57 +04:00
user
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
trace-tcg.h