From nobody Mon Feb 9 05:40:38 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1572960555; cv=none; d=zoho.com; s=zohoarc; b=LAsJsCztq0wxDV9ONH6xs6K3XYYP3j+oUbOu/aGIyDmATmw8BY9QzDfoZ6NTPwNTJa4mt2iPMAki/klXVP84uaJ+mRCLC7xGS259JFrkaJjIVnl5wFBVbNPIYUHieZ/VDVkkrWWfdsVRvM/My+2fldj8O9x6lNmJtZFrfR1vtw0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1572960555; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TRMmnb1XXfPw2SgcPCMzVwlC0PuFJ4UsipdgtX3Nong=; b=iaBiZk8RKBNHOve4YqKxM6Je69OfKiobmjC8+GggtUWBtermGtcYwuiM6bPEip4gxAle39pxbCRVmKsFtfQbm5b4JyuvKokRBCJl9HB24lkxI0+elfrWgv9uiivvOlp50QuCRBZDmKevR9meP2XfUr5N08mZyNSF+aAYx28nXG4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1572960555649403.23888563824187; Tue, 5 Nov 2019 05:29:15 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-21-qUwmHZ-NP-25OSnptagpAg-1; Tue, 05 Nov 2019 08:29:11 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AE786DB30; Tue, 5 Nov 2019 13:29:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 816A85C557; Tue, 5 Nov 2019 13:29:06 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4426B1802121; Tue, 5 Nov 2019 13:29:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xA5DS2vg004067 for ; Tue, 5 Nov 2019 08:28:02 -0500 Received: by smtp.corp.redhat.com (Postfix) id 16B281001B32; Tue, 5 Nov 2019 13:28:02 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.43.2.188]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E09561001B11 for ; Tue, 5 Nov 2019 13:28:01 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id 2E18D105D81; Tue, 5 Nov 2019 14:27:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572960554; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TRMmnb1XXfPw2SgcPCMzVwlC0PuFJ4UsipdgtX3Nong=; b=ZaV1r8uhdz3FRE3l2sV3dRe2vlVfW70u+xw2NE2C1E+PfCeX5FWjJNj0iONLjJmB8keaNd vOXKWfqJrgCR0xIRsBtkT5SQulpOcwitIE73zQO+DXJ613XWbs43zeAkg7pCgolgP7ttu3 dB2ej5ROoO0yA7pPOwjkd3dOmr1rxyA= From: Jiri Denemark To: libvir-list@redhat.com Date: Tue, 5 Nov 2019 14:27:37 +0100 Message-Id: <188a1909e726b7d45fc989cb4110cb8a41b2e608.1572958254.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v3 39/52] qemu: Use typedef for virQEMUCapsMachineType X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: qUwmHZ-NP-25OSnptagpAg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark Reviewed-by: J=C3=A1n Tomko --- Notes: Version 3: - new patch src/qemu/qemu_capabilities.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index b21aadf864..0a00f2c361 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -550,7 +550,9 @@ VIR_ENUM_IMPL(virQEMUCaps, ); =20 =20 -struct virQEMUCapsMachineType { +typedef struct _virQEMUCapsMachineType virQEMUCapsMachineType; +typedef virQEMUCapsMachineType *virQEMUCapsMachineTypePtr; +struct _virQEMUCapsMachineType { char *name; char *alias; unsigned int maxCpus; @@ -616,7 +618,7 @@ struct _virQEMUCaps { virHashTablePtr domCapsCache; =20 size_t nmachineTypes; - struct virQEMUCapsMachineType *machineTypes; + virQEMUCapsMachineTypePtr machineTypes; =20 size_t ngicCapabilities; virGICCapability *gicCapabilities; @@ -734,7 +736,7 @@ static void virQEMUCapsSetDefaultMachine(virQEMUCapsPtr qemuCaps, size_t defIdx) { - struct virQEMUCapsMachineType tmp =3D qemuCaps->machineTypes[defIdx]; + virQEMUCapsMachineType tmp =3D qemuCaps->machineTypes[defIdx]; =20 memmove(qemuCaps->machineTypes + 1, qemuCaps->machineTypes, @@ -2387,7 +2389,7 @@ virQEMUCapsProbeQMPMachineTypes(virQEMUCapsPtr qemuCa= ps, goto cleanup; =20 for (i =3D 0; i < nmachines; i++) { - struct virQEMUCapsMachineType *mach; + virQEMUCapsMachineTypePtr mach; if (STREQ(machines[i]->name, "none")) continue; =20 --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list