From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkZZB-0002Nq-Pp for qemu-devel@nongnu.org; Wed, 23 Aug 2017 13:35:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkZZ8-00038G-Cu for qemu-devel@nongnu.org; Wed, 23 Aug 2017 13:35:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60272) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dkZZ8-00035F-5M for qemu-devel@nongnu.org; Wed, 23 Aug 2017 13:35:42 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0896C85363 for ; Wed, 23 Aug 2017 17:35:41 +0000 (UTC) Date: Wed, 23 Aug 2017 14:35:35 -0300 From: Eduardo Habkost Message-ID: <20170823173535.GS19998@localhost.localdomain> References: <20170727154126.11339-1-marcandre.lureau@redhat.com> <20170727154126.11339-17-marcandre.lureau@redhat.com> <87d17ur7y1.fsf@dusky.pond.sub.org> <87mv6yk1x3.fsf@dusky.pond.sub.org> <1503500832.16071.32.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1503500832.16071.32.camel@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 16/26] qapi: add conditions to VNC type/commands/events on the schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Markus Armbruster , qemu-devel@nongnu.org, =?iso-8859-1?Q?Marc-Andr=E9?= Lureau On Wed, Aug 23, 2017 at 05:07:12PM +0200, Gerd Hoffmann wrote: > On Thu, 2017-08-17 at 10:56 +0200, Markus Armbruster wrote: > > Gerd, can we delete the vnc_init_func() stub?=A0=A0Things still compi= le > > for > > me when I do. > >=20 > > diff --git a/include/ui/console.h b/include/ui/console.h > > index 7262bef..2c3b2cd 100644 > > --- a/include/ui/console.h > > +++ b/include/ui/console.h > > @@ -484,11 +484,6 @@ static inline QemuOpts *vnc_parse(const char > > *str, Error **errp) > > =A0=A0=A0=A0=A0error_setg(errp, "VNC support is disabled"); > > =A0=A0=A0=A0=A0return NULL; > > =A0} > > -static inline int vnc_init_func(void *opaque, QemuOpts *opts, Error > > **errp) > > -{ > > -=A0=A0=A0=A0error_setg(errp, "VNC support is disabled"); > > -=A0=A0=A0=A0return -1; > > -} > > =A0#endif >=20 > Looking at a663fbd9e2f65fae81018d81f231ad79510cf9fb. Guess we want fix > qemu_opts_foreach to not barf on NULL, then revert that commit, so > f8c75b2486 (adding Eduardo to Cc) works as intended. I agree with that plan, but I wouldn't mind having the stub removed in the meantime. >=20 > Beside that: The inline for vnc_init_func looks pointless (it's used > via function pointer). Also it can be empty as it will never be > actually called. Which is fine, vnc_parse will throw an error if > someone tries to use vnc with a binary without vnc support. True. --=20 Eduardo