mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43: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
|
@ -30,6 +30,7 @@ _qemu_api_rs = static_library(
|
|||
'src/qdev.rs',
|
||||
'src/qom.rs',
|
||||
'src/sysbus.rs',
|
||||
'src/timer.rs',
|
||||
'src/vmstate.rs',
|
||||
'src/zeroable.rs',
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue