diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-09 22:15:54 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:00:41 +0200 |
commit | f1fa787b92c52d1034de164d2a26771ff969454e (patch) | |
tree | 4a4748bec5907d9420e61c6e70d9da7ee1c93174 /rust/qemu-api | |
parent | fbb23135d691d20f713bf2318e1cf6575e77cda7 (diff) | |
download | qemu-f1fa787b92c52d1034de164d2a26771ff969454e.zip qemu-f1fa787b92c52d1034de164d2a26771ff969454e.tar.gz qemu-f1fa787b92c52d1034de164d2a26771ff969454e.tar.bz2 |
qom: Have class_base_init() take a const data argument
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250424194905.82506-3-philmd@linaro.org>
Diffstat (limited to 'rust/qemu-api')
-rw-r--r-- | rust/qemu-api/src/qom.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/src/qom.rs b/rust/qemu-api/src/qom.rs index 34d7bc0..03fe624 100644 --- a/rust/qemu-api/src/qom.rs +++ b/rust/qemu-api/src/qom.rs @@ -492,7 +492,7 @@ pub trait ObjectImpl: ObjectType + IsA<Object> { /// the effects of copying the contents of the parent's class struct /// to the descendants. const CLASS_BASE_INIT: Option< - unsafe extern "C" fn(klass: *mut ObjectClass, data: *mut c_void), + unsafe extern "C" fn(klass: *mut ObjectClass, data: *const c_void), > = None; const TYPE_INFO: TypeInfo = TypeInfo { |