> +unsafe impl ObjectType for IRQState {
> + type Class = ObjectClass;
> + const TYPE_NAME: &'static CStr =
> + unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_IRQ) };
> +}
> +qom_isa!(IRQState: Object);This is necessary for Owned<>, though IRQState has been defined in C. It's another example to handle the C object in Rust (the previous one is SysbusDevice). LGTM, Reviewed-by: Zhao Liu <[email protected]>
