mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 13:53:54 -06:00
rust: add bindings for timer
Add timer bindings to help handle idiomatic Rust callbacks. Additionally, wrap QEMUClockType in ClockType binding to avoid unsafe calls in device code. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250210030051.2562726-7-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d015d4cbb4
commit
eadb83f9a3
6 changed files with 109 additions and 0 deletions
|
@ -26,6 +26,7 @@ pub mod offset_of;
|
|||
pub mod qdev;
|
||||
pub mod qom;
|
||||
pub mod sysbus;
|
||||
pub mod timer;
|
||||
pub mod vmstate;
|
||||
pub mod zeroable;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue