From patchwork Tue Jul 5 13:02:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 103280 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A3615B6F6F for ; Tue, 5 Jul 2011 23:29:29 +1000 (EST) Received: from localhost ([::1]:47508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe5gr-0002PV-UO for incoming@patchwork.ozlabs.org; Tue, 05 Jul 2011 09:29:26 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe5Ht-00051a-6n for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:03:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qe5Hr-0001rm-NH for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:03:36 -0400 Received: from mout.perfora.net ([74.208.4.195]:54486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qe5Hr-0001rh-Ak for qemu-devel@nongnu.org; Tue, 05 Jul 2011 09:03:35 -0400 Received: from localhost.localdomain (cpe-70-112-165-205.austin.res.rr.com [70.112.165.205]) by mrelay.perfora.net (node=mrus3) with ESMTP (Nemesis) id 0M5uHB-1RScSq3osL-00xg0E; Tue, 05 Jul 2011 09:03:33 -0400 From: Michael Roth To: qemu-devel@nongnu.org Date: Tue, 5 Jul 2011 08:02:30 -0500 Message-Id: <1309870965-27066-4-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1309870965-27066-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1309870965-27066-1-git-send-email-mdroth@linux.vnet.ibm.com> X-Provags-ID: V02:K0:ijC+hTk7lzeka1zBXE6pAjMJAXa7xVK5vB4o4ErKwQ8 Nq409NMjHIdOzq8ogZoScwHMGewRtnbVGyPIGG3/IiI7UKKWXG JneqnMevpG6cdswp60NsdVxVTL8VqCbOF6TXtk3mL5ND4wFDqs 8Ig9DCezQ9g0UyQoOJmPJzPxsdu2H5fYNF4YygN3+AGIIJLHvY lfXKIu4ooraB2UMe10+1YhALnt671vPhTQmNaVc2Ec= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.195 Cc: aliguori@linux.vnet.ibm.com, Jes.Sorensen@redhat.com, agl@linux.vnet.ibm.com, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH v5 03/18] qapi: add module init types for qapi 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 Signed-off-by: Michael Roth --- module.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/module.h b/module.h index 9263f1c..ef66730 100644 --- a/module.h +++ b/module.h @@ -24,12 +24,14 @@ typedef enum { MODULE_INIT_BLOCK, MODULE_INIT_DEVICE, MODULE_INIT_MACHINE, + MODULE_INIT_QAPI, MODULE_INIT_MAX } module_init_type; #define block_init(function) module_init(function, MODULE_INIT_BLOCK) #define device_init(function) module_init(function, MODULE_INIT_DEVICE) #define machine_init(function) module_init(function, MODULE_INIT_MACHINE) +#define qapi_init(function) module_init(function, MODULE_INIT_QAPI) void register_module_init(void (*fn)(void), module_init_type type);