Luiz Capitulino | d5ec4f2 | 2011-06-01 12:14:49 -0500 | [diff] [blame] | 1 | /* |
| 2 | * QEMU Error Objects |
| 3 | * |
| 4 | * Copyright IBM, Corp. 2011 |
| 5 | * |
| 6 | * Authors: |
| 7 | * Anthony Liguori <aliguori@us.ibm.com> |
| 8 | * |
| 9 | * This work is licensed under the terms of the GNU LGPL, version 2. See |
| 10 | * the COPYING.LIB file in the top-level directory. |
| 11 | */ |
| 12 | #ifndef QEMU_ERROR_INT_H |
| 13 | #define QEMU_ERROR_INT_H |
| 14 | |
| 15 | #include "qemu-common.h" |
| 16 | #include "qobject.h" |
| 17 | #include "qdict.h" |
| 18 | #include "error.h" |
| 19 | |
| 20 | /** |
| 21 | * Internal QEMU functions for working with Error. |
| 22 | * |
| 23 | * These are used to convert QErrors to Errors |
| 24 | */ |
| 25 | QDict *error_get_data(Error *err); |
| 26 | QObject *error_get_qobject(Error *err); |
| 27 | void error_set_qobject(Error **errp, QObject *obj); |
| 28 | |
| 29 | #endif |