[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 01/27] qemu: add Error to typedefs
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH v7 01/27] qemu: add Error to typedefs |
Date: |
Wed, 2 Oct 2013 00:26:14 +0300 |
This is so qom headers can use it without pulling in
extra headers.
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Gerd Hoffmann <address@hidden>
Tested-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
include/qapi/error.h | 6 ++++--
include/qemu/typedefs.h | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/qapi/error.h b/include/qapi/error.h
index 7d4c696..b923a5f 100644
--- a/include/qapi/error.h
+++ b/include/qapi/error.h
@@ -13,14 +13,16 @@
#define ERROR_H
#include "qemu/compiler.h"
+#include "qemu/typedefs.h"
#include "qapi-types.h"
#include <stdbool.h>
/**
- * A class representing internal errors within QEMU. An error has a ErrorClass
+ * Error:
+ * An object representing internal errors within QEMU. An error has a
ErrorClass
* code and a human message.
*/
-typedef struct Error Error;
+struct Error;
/**
* Set an indirect pointer to an error given a ErrorClass value and a
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index a4c1b84..46c3599 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -7,6 +7,7 @@ typedef struct QEMUTimer QEMUTimer;
typedef struct QEMUTimerListGroup QEMUTimerListGroup;
typedef struct QEMUFile QEMUFile;
typedef struct QEMUBH QEMUBH;
+typedef struct Error Error;
typedef struct AioContext AioContext;
--
MST
- [Qemu-devel] [PATCH v7 00/27] qemu: generate acpi tables for the guest, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 01/27] qemu: add Error to typedefs,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCH v7 02/27] qom: pull in qemu/typedefs, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 03/27] qom: cleanup struct Error references, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 04/27] qom: add pointer to int property helpers, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 05/27] pci: fix up w64 size calculation helper, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 06/27] fw_cfg: interface to trigger callback on read, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 07/27] loader: support for unmapped ROM blobs, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 08/27] pcie_host: expose UNMAPPED macro, Michael S. Tsirkin, 2013/10/01
- [Qemu-devel] [PATCH v7 09/27] pcie_host: expose address format, Michael S. Tsirkin, 2013/10/01