aboutsummaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-23 19:41:40 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-05 20:24:51 +0200
commit8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48 (patch)
treeab3b4f54e16fa44d5c65e388c67a1bb0eecc1734 /rust
parentbfe0f6b02a4d76bcdc05f50e03667447f6069445 (diff)
downloadqemu-8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48.zip
qemu-8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48.tar.gz
qemu-8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48.tar.bz2
util/error: expose Error definition to Rust code
This is used to preserve the file and line in a roundtrip from C Error to Rust and back to C. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust')
-rw-r--r--rust/wrapper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/wrapper.h b/rust/wrapper.h
index beddd9a..6060d3b 100644
--- a/rust/wrapper.h
+++ b/rust/wrapper.h
@@ -60,6 +60,7 @@ typedef enum memory_order {
#include "hw/qdev-properties-system.h"
#include "hw/irq.h"
#include "qapi/error.h"
+#include "qapi/error-internal.h"
#include "migration/vmstate.h"
#include "chardev/char-serial.h"
#include "exec/memattrs.h"