diff options
author | David 'Digit' Turner <digit@android.com> | 2011-05-09 17:10:43 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-06-01 17:08:17 +0200 |
commit | 47dc1f4132ed3bafd2f564458288f9931ef0e0a4 (patch) | |
tree | 1da1e6435e352ae0003d052825a9b8cc62491fc9 /qerror.h | |
parent | 488bfd506a283c648f559140f51f125847d68664 (diff) | |
download | external_qemu-47dc1f4132ed3bafd2f564458288f9931ef0e0a4.zip external_qemu-47dc1f4132ed3bafd2f564458288f9931ef0e0a4.tar.gz external_qemu-47dc1f4132ed3bafd2f564458288f9931ef0e0a4.tar.bz2 |
qerror: minor integrate
Change-Id: I8d33798952dfdbab5f1e996bd8cd40d82eb129da
Diffstat (limited to 'qerror.h')
-rw-r--r-- | qerror.h | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -34,12 +34,11 @@ typedef struct QError { QError *qerror_new(void); QError *qerror_from_info(const char *file, int linenr, const char *func, - const char *fmt, va_list *va); + const char *fmt, va_list *va) GCC_FMT_ATTR(4, 0); QString *qerror_human(const QError *qerror); void qerror_print(QError *qerror); void qerror_report_internal(const char *file, int linenr, const char *func, - const char *fmt, ...) - __attribute__ ((format(printf, 4, 5))); + const char *fmt, ...) GCC_FMT_ATTR(4, 5); #define qerror_report(fmt, ...) \ qerror_report_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__) QError *qobject_to_qerror(const QObject *obj); @@ -91,6 +90,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_DEVICE_NO_BUS \ "{ 'class': 'DeviceNoBus', 'data': { 'device': %s } }" +#define QERR_DEVICE_NO_HOTPLUG \ + "{ 'class': 'DeviceNoHotplug', 'data': { 'device': %s } }" + #define QERR_DUPLICATE_ID \ "{ 'class': 'DuplicateId', 'data': { 'id': %s, 'object': %s } }" @@ -163,7 +165,13 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_UNDEFINED_ERROR \ "{ 'class': 'UndefinedError', 'data': {} }" +#define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \ + "{ 'class': 'UnknownBlockFormatFeature', 'data': { 'device': %s, 'format': %s, 'feature': %s } }" + #define QERR_VNC_SERVER_FAILED \ "{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }" +#define QERR_FEATURE_DISABLED \ + "{ 'class': 'FeatureDisabled', 'data': { 'name': %s } }" + #endif /* QERROR_H */ |