From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR7QG-0002eV-MF for qemu-devel@nongnu.org; Tue, 01 Oct 2013 17:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR7QA-0003r0-IP for qemu-devel@nongnu.org; Tue, 01 Oct 2013 17:24:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR7QA-0003qu-9n for qemu-devel@nongnu.org; Tue, 01 Oct 2013 17:23:54 -0400 Date: Wed, 2 Oct 2013 00:26:14 +0300 From: "Michael S. Tsirkin" Message-ID: <1380662727-24170-2-git-send-email-mst@redhat.com> References: <1380662727-24170-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1380662727-24170-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH v7 01/27] qemu: add Error to typedefs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, afaerber@suse.de, Anthony Liguori , kraxel@redhat.com This is so qom headers can use it without pulling in extra headers. Reviewed-by: Paolo Bonzini Reviewed-by: Gerd Hoffmann Tested-by: Gerd Hoffmann Signed-off-by: Michael S. Tsirkin --- 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 /** - * 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