Received: from eggs.gnu.org ([2001:4830:134:3::10]:60996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUw72-0001Ow-RD for qemu-devel@nongnu.org; Thu, 06 Dec 2018 11:02:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUw6x-0002sv-Ab for qemu-devel@nongnu.org; Thu, 06 Dec 2018 11:02:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43378) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUw6x-0002qi-4n for qemu-devel@nongnu.org; Thu, 06 Dec 2018 11:02:47 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6F924C02834D for ; Thu, 6 Dec 2018 16:02:44 +0000 (UTC) From: Markus Armbruster References: <20180706105753.26700-1-marcandre.lureau@redhat.com> <20180706105753.26700-15-marcandre.lureau@redhat.com> <87pnufomh1.fsf@dusky.pond.sub.org> Date: Thu, 06 Dec 2018 17:02:40 +0100 In-Reply-To: <87pnufomh1.fsf@dusky.pond.sub.org> (Markus Armbruster's message of "Wed, 05 Dec 2018 19:30:18 +0100") Message-ID: <87y392bq3j.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v6 14/27] qapi-event: add 'if' condition to implicit event enum List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: qemu-devel@nongnu.org One more thing... Markus Armbruster writes: > Marc-Andr=C3=A9 Lureau writes: > >> Add condition to QAPIEvent enum members based on the event 'if'. >> >> Generated code is not changed by this patch, but with "qapi: add #if >> conditions to generated code" patch. My suggestion on PATCH 13's commit message applies. >> There is no coverage of this change in qapi-schema-test.out since the >> event_names enum is an implicit type created by qapi-event.py. >> >> Signed-off-by: Marc-Andr=C3=A9 Lureau >> --- >> scripts/qapi/events.py | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/scripts/qapi/events.py b/scripts/qapi/events.py >> index ea4dac6a05..c9beef8b4b 100644 >> --- a/scripts/qapi/events.py >> +++ b/scripts/qapi/events.py >> @@ -189,7 +189,7 @@ class QAPISchemaGenEventVisitor(QAPISchemaModularCVi= sitor): >> self._genh.add(gen_event_send_decl(name, arg_type, boxed)) >> self._genc.add(gen_event_send(name, arg_type, boxed, >> self._enum_name)) >> - self._event_names.append(QAPISchemaMember(name)) >> + self._event_names.append(QAPISchemaMember(name, ifcond)) >>=20=20 >>=20=20 >> def gen_events(schema, output_dir, prefix): > > Reviewed-by: Markus Armbruster