master
h 35 lines 731 Bytes
Raw
1 /*
2 * QEMU Error Objects - struct definition
3 *
4 * Copyright IBM, Corp. 2011
5 * Copyright (C) 2011-2015 Red Hat, Inc.
6 *
7 * Authors:
8 * Anthony Liguori <aliguori@us.ibm.com>
9 * Markus Armbruster <armbru@redhat.com>,
10 *
11 * This work is licensed under the terms of the GNU LGPL, version 2. See
12 * the COPYING.LIB file in the top-level directory.
13 */
14
15 #ifndef QAPI_ERROR_INTERNAL_H
16
17 struct Error
18 {
19 char *msg;
20 ErrorClass err_class;
21
22 /* Used for error_abort only, may be NULL. */
23 const char *func;
24
25 /*
26 * src might be NUL-terminated or not. If it is, src_len is negative.
27 * If it is not, src_len is the length.
28 */
29 const char *src;
30 int src_len;
31 int line;
32 GString *hint;
33 };
34
35 #endif