From patchwork Fri Sep 25 14:03:56 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: 522844 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 C87B914099F for ; Sat, 26 Sep 2015 00:25:00 +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=g3Iqodwb; dkim-atps=neutral Received: from localhost ([::1]:42187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTvm-0006km-R8 for incoming@patchwork.ozlabs.org; Fri, 25 Sep 2015 10:24:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTcK-0007Rc-3X for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfTcE-0003lU-Bs for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:52 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:33530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfTcE-0003lC-6F for qemu-devel@nongnu.org; Fri, 25 Sep 2015 10:04:46 -0400 Received: by wiclk2 with SMTP id lk2so23501808wic.0 for ; Fri, 25 Sep 2015 07:04:45 -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=nWUg8BxRrRAeABMSvtiDh6CCBMb0wOdNeSxiswgckaA=; b=g3IqodwboQfXHCNPsg2epSuwE9aTZslWQeD7SWMM/MBvOa5gNrFSLe73AApWyfB2J6 w+IQmMwN+XRCwu3HA2oHJYLB8MBzPo5+IMz+b3nk/hNWPADueuC5C5OcO8t+HzBUhBb4 GiBzweIk6YCEqZAjuAzQo/URnaU9EdhSSQ22woyRg9pE53a/hTZRNHOxjKw7zH9Ue8xJ tlMXHu4KQFOFn4kuHU5KcCUQQ9F6keeNYLEchUKNHmowLtyqyHjG2kWugZpvRWCjDmJJ L+pw4gm/nRE2LxTywcryW5IcEaASODGGAQ28A0u3b8Re1TtcD2zoKw+2zYAV1Tksk9SY F70A== X-Received: by 10.180.19.41 with SMTP id b9mr3579446wie.71.1443189885296; Fri, 25 Sep 2015 07:04:45 -0700 (PDT) Received: from localhost ([149.6.167.210]) by smtp.gmail.com with ESMTPSA id p4sm3417937wia.15.2015.09.25.07.04.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2015 07:04:44 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Fri, 25 Sep 2015 16:03:56 +0200 Message-Id: <1443189844-20341-29-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 28/36] scripts: ensure -async commands are declared async 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 We could have arbitrary async command name, but it make sense to use a specific name to avoid confusion. Signed-off-by: Marc-André Lureau --- scripts/qapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/qapi.py b/scripts/qapi.py index 96901ab..d614673 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -1209,6 +1209,7 @@ class QAPISchemaCommand(QAPISchemaEntity): self.async = async def check(self, schema): + assert self.name.endswith("-async") == self.async if self._arg_type_name: self.arg_type = schema.lookup_type(self._arg_type_name) assert isinstance(self.arg_type, QAPISchemaObjectType)