From nobody Fri Nov 7 07:41:09 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1546961881852567.1570006912411; Tue, 8 Jan 2019 07:38:01 -0800 (PST) Received: from localhost ([127.0.0.1]:48818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggtS4-0004Xz-PA for importer@patchew.org; Tue, 08 Jan 2019 10:38:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggtQM-0003Ou-Mt for qemu-devel@nongnu.org; Tue, 08 Jan 2019 10:36:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggtQL-0001Ys-SH for qemu-devel@nongnu.org; Tue, 08 Jan 2019 10:36:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45156) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ggtQL-0001TM-M8 for qemu-devel@nongnu.org; Tue, 08 Jan 2019 10:36:13 -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 A2FF2432B2; Tue, 8 Jan 2019 15:26:54 +0000 (UTC) Received: from diego.redhat.com (unknown [10.40.205.146]) by smtp.corp.redhat.com (Postfix) with ESMTP id 27D6E605C9; Tue, 8 Jan 2019 15:26:51 +0000 (UTC) From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= To: spice-devel@lists.freedesktop.org, qemu-devel@nongnu.org Date: Tue, 8 Jan 2019 16:26:47 +0100 Message-Id: <20190108152648.32537-3-lhrazky@redhat.com> In-Reply-To: <20190108152648.32537-1-lhrazky@redhat.com> References: <20190108152648.32537-1-lhrazky@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 08 Jan 2019 15:26:54 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH spice 2/3] QXL interface: deprecate spice_qxl_set_max_monitors X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Replace it by spice_qxl_set_device_info. Note we can't use monitors_count for what's stored in max_monitors, because monitors_count denotes the length of the device_display_ids array, which spice_qxl_set_max_monitors doesn't touch. Signed-off-by: Luk=C3=A1=C5=A1 Hr=C3=A1zk=C3=BD Acked-by: Jonathon Jongsma --- server/red-qxl.c | 1 + server/spice-qxl.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/red-qxl.c b/server/red-qxl.c index 0ea424cd..6ffd8286 100644 --- a/server/red-qxl.c +++ b/server/red-qxl.c @@ -888,6 +888,7 @@ void spice_qxl_set_device_info(QXLInstance *instance, } =20 instance->st->monitors_count =3D device_display_id_count; + instance->st->max_monitors =3D device_display_id_count; } =20 void red_qxl_init(RedsState *reds, QXLInstance *qxl) diff --git a/server/spice-qxl.h b/server/spice-qxl.h index 547d3d93..e7af5e5e 100644 --- a/server/spice-qxl.h +++ b/server/spice-qxl.h @@ -101,9 +101,9 @@ void spice_qxl_monitors_config_async(QXLInstance *insta= nce, QXLPHYSICAL monitors int group_id, uint64_t cookie); /* since spice 0.12.3 */ void spice_qxl_driver_unload(QXLInstance *instance); -/* since spice 0.12.6 */ +/* since spice 0.12.6, deprecated since 0.14.2, spice_qxl_set_device_info = replaces it */ void spice_qxl_set_max_monitors(QXLInstance *instance, - unsigned int max_monitors); + unsigned int max_monitors) SPICE_GNUC_DEPR= ECATED; /* since spice 0.13.1 */ void spice_qxl_gl_scanout(QXLInstance *instance, int fd, --=20 2.20.1