summary refs log tree commit diff stats
path: root/rust/wrapper.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-23 17:59:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-05 20:24:51 +0200
commitbfe0f6b02a4d76bcdc05f50e03667447f6069445 (patch)
tree08ac92be1522530861acfea69723ec419f5592ed /rust/wrapper.h
parenta95ad49bbfac2a5080c5761688465bdbb1969c24 (diff)
downloadfocaccia-qemu-bfe0f6b02a4d76bcdc05f50e03667447f6069445.tar.gz
focaccia-qemu-bfe0f6b02a4d76bcdc05f50e03667447f6069445.zip
subprojects: add the foreign crate
This is a cleaned up and separated version of the patches at
https://lore.kernel.org/all/20240701145853.1394967-4-pbonzini@redhat.com/
https://lore.kernel.org/all/20240701145853.1394967-5-pbonzini@redhat.com/

Its first user will be the Error bindings; for example a QEMU Error ** can be
converted to a Rust Option using

     unsafe { Option::<Error>::from_foreign(c_error) }

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/wrapper.h')
0 files changed, 0 insertions, 0 deletions