mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-04 13:37:41 -07:00
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>
This commit is contained in:
parent
bfe0f6b02a
commit
8714d366e7
3 changed files with 28 additions and 9 deletions
10
util/error.c
10
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue