From patchwork Fri Sep 25 14:03:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 522820 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DFA32140775 for ; Sat, 26 Sep 2015 00:10:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=B0wNwTLc; dkim-atps=neutral Received: from localhost ([::1]:42001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfThW-0008T8-P0 for incoming@patchwork.ozlabs.org; Fri, 25 Sep 2015 10:10:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTbz-0006lX-Sb for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfTbv-0003X5-Sp for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:31 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:37774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTbv-0003WE-NH for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:27 -0400 Received: by wicfx3 with SMTP id fx3so21026310wic.0 for ; Fri, 25 Sep 2015 07:04:27 -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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=y5MHgJMM3IFtDBYzUFUUnwBcbmGLRGQz8F7zRsziGDg=; b=B0wNwTLcQnqszi7cuQ5EvOP44V6lt2jUM89tXQx9sDZTJQWqu/Ilg9WH5XixY9O7hc 3+71q4/Qd9EJiFPV/HD5Nwm2JK34R27d96ohCFPx3Mgo8zNZERYzRNnuVprJpfW/qGV3 eUTiVKlbxe2sY/bQAZmw/axgR9WrlTo8w8DduGsXSOGw4OcbB0gPKD+P1wzL6xSWp+qc L3jfKt7hEusXZQSzXM7cttrHbKZD2cd8Y+KSEWLzqmISvq4RIAEFkYhG6F8iJUwFc6hw 9oNPx5eZBvNLbs0opAV0iJnHp5opm3r5i4P/mxelcnkJ0kAUn0euNrYPyRmjE7mf9u7P HywQ== X-Received: by 10.194.91.193 with SMTP id cg1mr7650205wjb.88.1443189867173; Fri, 25 Sep 2015 07:04:27 -0700 (PDT) Received: from localhost ([149.6.167.210]) by smtp.gmail.com with ESMTPSA id h7sm3551941wjz.7.2015.09.25.07.04.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2015 07:04:26 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Fri, 25 Sep 2015 16:03:43 +0200 Message-Id: <1443189844-20341-16-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1443189844-20341-1-git-send-email-marcandre.lureau@redhat.com> References: <1443189844-20341-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , armbru@redhat.com, mdroth@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH 15/36] monitor: register gen:false commands manually 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 From: Marc-André Lureau Since some commands are using 'gen': false, they are not registered automatically by the generator. Register manually instead. Signed-off-by: Marc-André Lureau --- monitor.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/monitor.c b/monitor.c index 410c3a5..a979924 100644 --- a/monitor.c +++ b/monitor.c @@ -945,6 +945,16 @@ static void qmp_query_qmp_schema(QDict *qdict, QObject **ret_data, *ret_data = qobject_from_json(qmp_schema_json); } +static void qmp_init_marshal(void) +{ + qmp_register_command("query-qmp-schema", qmp_query_qmp_schema, + QCO_NO_OPTIONS); + qmp_register_command("device_add", qmp_device_add, + QCO_NO_OPTIONS); +} + +qapi_init(qmp_init_marshal); + /* set the current CPU defined by the user */ int monitor_set_cpu(int cpu_index) {