mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
rust: chardev, qdev: add bindings to qdev_prop_set_chr
Because the argument to the function is an Owned<Chardev>, this also adds an ObjectType implementation to Chardev. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
61faf6ac7b
commit
a22bd55ffd
5 changed files with 32 additions and 1 deletions
|
@ -12,9 +12,10 @@ use qemu_api::{
|
|||
bindings::{
|
||||
error_fatal, qdev_prop_set_chr, qemu_chr_fe_accept_input, qemu_chr_fe_ioctl,
|
||||
qemu_chr_fe_set_handlers, qemu_chr_fe_write_all, qemu_irq, sysbus_connect_irq,
|
||||
sysbus_mmio_map, sysbus_realize, CharBackend, Chardev, QEMUChrEvent,
|
||||
sysbus_mmio_map, sysbus_realize, CharBackend, QEMUChrEvent,
|
||||
CHR_IOCTL_SERIAL_SET_BREAK,
|
||||
},
|
||||
chardev::Chardev,
|
||||
c_str, impl_vmstate_forward,
|
||||
irq::InterruptSource,
|
||||
memory::{hwaddr, MemoryRegion, MemoryRegionOps, MemoryRegionOpsBuilder},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue