Re: [PATCH 06/13] rust: remove unused macro module_init!

2024-10-21 Thread Paolo Bonzini
Il lun 21 ott 2024, 12:19 Junjie Mao ha scritto: > > Paolo Bonzini writes: > > > Registering the object is now done by the #[derive(Object)] macro. > > The module_init! macro is still necessary when a device needs more logic > (in addition to a single type registration) in module init. That is n

Re: [PATCH 06/13] rust: remove unused macro module_init!

2024-10-21 Thread Junjie Mao
Paolo Bonzini writes: > Registering the object is now done by the #[derive(Object)] macro. The module_init! macro is still necessary when a device needs more logic (in addition to a single type registration) in module init. That is not rare among the devices in C we have today. Manos and I ha

[PATCH 06/13] rust: remove unused macro module_init!

2024-10-18 Thread Paolo Bonzini
Registering the object is now done by the #[derive(Object)] macro. Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/definitions.rs | 43 1 file changed, 43 deletions(-) diff --git a/rust/qemu-api/src/definitions.rs b/rust/qemu-api/src/definitions.rs index 49ac