mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-04 07:33:41 -10:00
The function name is not available in Rust, so make it optional. Reviewed-by: Zhao Liu <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
36 lines
731 B
C
36 lines
731 B
C
/*
|
|
* QEMU Error Objects - struct definition
|
|
*
|
|
* Copyright IBM, Corp. 2011
|
|
* Copyright (C) 2011-2015 Red Hat, Inc.
|
|
*
|
|
* Authors:
|
|
* Anthony Liguori <[email protected]>
|
|
* Markus Armbruster <[email protected]>,
|
|
*
|
|
* This work is licensed under the terms of the GNU LGPL, version 2. See
|
|
* the COPYING.LIB file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef QAPI_ERROR_INTERNAL_H
|
|
|
|
struct Error
|
|
{
|
|
char *msg;
|
|
ErrorClass err_class;
|
|
|
|
/* Used for error_abort only, may be NULL. */
|
|
const char *func;
|
|
|
|
/*
|
|
* src might be NUL-terminated or not. If it is, src_len is negative.
|
|
* If it is not, src_len is the length.
|
|
*/
|
|
const char *src;
|
|
int src_len;
|
|
int line;
|
|
GString *hint;
|
|
};
|
|
|
|
#endif
|