From patchwork Tue Oct 1 15:44:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mammedov X-Patchwork-Id: 279491 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 411932C008E for ; Wed, 2 Oct 2013 01:46:05 +1000 (EST) Received: from localhost ([::1]:59586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR29C-0003wh-R0 for incoming@patchwork.ozlabs.org; Tue, 01 Oct 2013 11:46:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR28g-0003wH-3O for qemu-devel@nongnu.org; Tue, 01 Oct 2013 11:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR28X-0000AS-4u for qemu-devel@nongnu.org; Tue, 01 Oct 2013 11:45:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR28W-0000AB-TS for qemu-devel@nongnu.org; Tue, 01 Oct 2013 11:45:21 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r91FjH1r011559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 1 Oct 2013 11:45:17 -0400 Received: from nial.brq.redhat.com (dhcp-1-126.brq.redhat.com [10.34.1.126]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r91FjEhC012889; Tue, 1 Oct 2013 11:45:14 -0400 From: Igor Mammedov To: qemu-devel@nongnu.org Date: Tue, 1 Oct 2013 17:44:32 +0200 Message-Id: <1380642272-12161-1-git-send-email-imammedo@redhat.com> In-Reply-To: <20131001141510.GA14869@redhat.com> References: <20131001141510.GA14869@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: peter.maydell@linaro.org, anthony@codemonkey.ws, mst@redhat.com, armbru@redhat.com, blauwirbel@gmail.com, stefanha@redhat.com, pbonzini@redhat.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH] cleanup object.h: include error.h directly X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org qapi/error.h is simple enough to be included in qom/object.h direcly and prepares qom/object.h to use Error typedef. Signed-off-by: Igor Mammedov --- it allows to drop 1-2/patches from ACPI tables in QEMU series with following "qom: pull in qemu/typedefs" applying cleanly on top instead of jugling with typedefs.h, doc comments and extending typedefs.h hack further when it's not necessary. --- include/qom/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qom/object.h b/include/qom/object.h index 1a7b71a..d9a0063 100644 --- a/include/qom/object.h +++ b/include/qom/object.h @@ -18,9 +18,9 @@ #include #include #include "qemu/queue.h" +#include "qapi/error.h" struct Visitor; -struct Error; struct TypeImpl; typedef struct TypeImpl *Type;