This is so qom headers can use it without pulling in extra headers. Reviewed-by: Paolo Bonzini <pbonz...@redhat.com> Reviewed-by: Gerd Hoffmann <kra...@redhat.com> Tested-by: Gerd Hoffmann <kra...@redhat.com> Signed-off-by: Michael S. Tsirkin <m...@redhat.com> --- 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