From patchwork Wed Oct 31 22:36:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 196045 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EA0392C0131 for ; Thu, 1 Nov 2012 10:15:39 +1100 (EST) Received: from localhost ([::1]:51813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTgvt-0004FZ-Mz for incoming@patchwork.ozlabs.org; Wed, 31 Oct 2012 18:38:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTguF-0001dh-HU for qemu-devel@nongnu.org; Wed, 31 Oct 2012 18:37:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTguD-0005sb-99 for qemu-devel@nongnu.org; Wed, 31 Oct 2012 18:37:03 -0400 Received: from mail-ia0-f173.google.com ([209.85.210.173]:37027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTguD-0005ku-5N for qemu-devel@nongnu.org; Wed, 31 Oct 2012 18:37:01 -0400 Received: by mail-ia0-f173.google.com with SMTP id m10so1511545iam.4 for ; Wed, 31 Oct 2012 15:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=WHC0ypVt8Dllga6X9HAbfPNg+vdlKZk3GTMGXTMLqEY=; b=dPLhXUFf4ZpFnrO45J0twheq8021gpLT6+U8tAERIx/e3qmqJTabx1RMlJYcNcfp6m o0vhkcqw0YklDQBe1+I66bTyA25Bc53xpLmSOybwCpMnywjKMQ4HskJsCvoPhDjOjebq pOjOLLr25H6zwD4Rxdcxe9c0qWHcTVbt6FyJAaXxXVgN9oSjpJxgEt8y3IhtmfzValur EQKd9CvuUFxirNMtMSkHIR6bSwIyVuNmQ5txoiYd0O3Z1ISi2MAgD/3ALL1dv3dElJFt D+EFLPcv45BjRZWZqKMi2D8YO9OmXYIHooq6fjY5zNg917udIpe9sGCQcPcET6teUkEf sySw== Received: by 10.50.237.70 with SMTP id va6mr3096436igc.8.1351723020618; Wed, 31 Oct 2012 15:37:00 -0700 (PDT) Received: from loki.morrigu.org (cpe-72-179-62-111.austin.res.rr.com. [72.179.62.111]) by mx.google.com with ESMTPS id hg2sm11556858igc.3.2012.10.31.15.36.59 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Oct 2012 15:37:00 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Date: Wed, 31 Oct 2012 17:36:05 -0500 Message-Id: <1351722972-17801-22-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351722972-17801-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1351722972-17801-1-git-send-email-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.173 Cc: kwolf@redhat.com, peter.maydell@linaro.org, aliguori@us.ibm.com, blauwirbel@gmail.com, pbonzini@redhat.com Subject: [Qemu-devel] [PATCH 21/28] module additions for schema registration 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 Reviewed-by: Anthony Liguori Reviewed-by: Paolo Bonzini Signed-off-by: Michael Roth --- module.h | 2 ++ vl.c | 1 + 2 files changed, 3 insertions(+) diff --git a/module.h b/module.h index c4ccd57..cb81aa2 100644 --- a/module.h +++ b/module.h @@ -25,6 +25,7 @@ typedef enum { MODULE_INIT_MACHINE, MODULE_INIT_QAPI, MODULE_INIT_QOM, + MODULE_INIT_QIDL, MODULE_INIT_MAX } module_init_type; @@ -32,6 +33,7 @@ typedef enum { #define machine_init(function) module_init(function, MODULE_INIT_MACHINE) #define qapi_init(function) module_init(function, MODULE_INIT_QAPI) #define type_init(function) module_init(function, MODULE_INIT_QOM) +#define qidl_init(function) module_init(function, MODULE_INIT_QIDL) void register_module_init(void (*fn)(void), module_init_type type); diff --git a/vl.c b/vl.c index 5a3d316..ddd4351 100644 --- a/vl.c +++ b/vl.c @@ -2496,6 +2496,7 @@ int main(int argc, char **argv, char **envp) } module_call_init(MODULE_INIT_QOM); + module_call_init(MODULE_INIT_QIDL); runstate_init();