diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-23 19:41:40 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-06-05 20:24:51 +0200 |
| commit | 8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48 (patch) | |
| tree | ab3b4f54e16fa44d5c65e388c67a1bb0eecc1734 /util/error.c | |
| parent | bfe0f6b02a4d76bcdc05f50e03667447f6069445 (diff) | |
| download | focaccia-qemu-8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48.tar.gz focaccia-qemu-8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48.zip | |
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 'util/error.c')
| -rw-r--r-- | util/error.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/util/error.c b/util/error.c index 673011b89e..e5bcb7c022 100644 --- a/util/error.c +++ b/util/error.c @@ -15,15 +15,7 @@ #include "qemu/osdep.h" #include "qapi/error.h" #include "qemu/error-report.h" - -struct Error -{ - char *msg; - ErrorClass err_class; - const char *src, *func; - int line; - GString *hint; -}; +#include "qapi/error-internal.h" Error *error_abort; Error *error_fatal; |