From nobody Wed Feb 11 02:54:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516623372410153.298501553837; Mon, 22 Jan 2018 04:16:12 -0800 (PST) Received: from localhost ([::1]:38287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edb1H-0005R0-C1 for importer@patchew.org; Mon, 22 Jan 2018 07:16:11 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edapq-0004AZ-7G for qemu-devel@nongnu.org; Mon, 22 Jan 2018 07:04:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edapp-0000Ml-Dw for qemu-devel@nongnu.org; Mon, 22 Jan 2018 07:04:22 -0500 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:42921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edapp-0000Me-Ac for qemu-devel@nongnu.org; Mon, 22 Jan 2018 07:04:21 -0500 Received: by mail-qt0-x243.google.com with SMTP id c2so20029069qtn.9 for ; Mon, 22 Jan 2018 04:04:21 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id 92sm11295356qky.72.2018.01.22.04.04.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jan 2018 04:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ozmps/O4WVQDYNDd5sO5z1LnUPOppPOtMx2ZPuH3LmY=; b=mmrnW2fKMyudQ+0Ds0BHZ0BEkvVQLizr4fUYFLOqHW87e1rBMv1uPEmvgQOl+inivO X2vEO/j5sOq4NVmW6YBlfMQIW3MccgGH2FJ1l0M3He2LqO1thT39Fm/Hkg1O602m+vxu Fq6Y+GBx9v8oSnottjMCtk1gXpzITbZW9kj3ehGGJXQLo7Mze8JEfrNWXgfv7CR1qs79 qwLfZUOKOG5s4LLOdcQx264z/dfixNQzOBXLbvZUDgTobF5zUyBPtD9kBtJ26drf5u0P 3vEy+VxrKeAaMiaHe+61ot3CUc+ja1q30l6y05PyJmb36rtNiIhQMj/2sLKgW19nCCaL 4hFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Ozmps/O4WVQDYNDd5sO5z1LnUPOppPOtMx2ZPuH3LmY=; b=l7LA7EvabTien5Xh7BPGTc9KOku/iK6Itle8TNpOTzrZask5q1nVkyau9MVV2SIHSM VxjqhDv5B36SfWIjLsz/m9Vet/2gxXyLbgBRGv4mxI5zIKZBYcRtDTTrcgE6zd3qj6Iu fCjzq/SAy6BhKwpcyNkG+P39yYL46mxb/HBarQVRuC/KviRMnoA80TZR+VKWvavD2QRO BRfs1KQBFOpz0n66j78rJuumWhNAlqKRfnFs2cN6FmD6MqCW1j5IJ24gK5xy+oANy3Rb XT+DzvyFPOnjnIOMWsBtNrWuQoJEPMukdHLfm4bwPC1IPSTYx1AuVpIIpXb03QpMMO4X WWaw== X-Gm-Message-State: AKwxytdSbJxKm2PU+NRZB7QGnjMiQ4z06T1G1fKXU+nbydbUB8zDFJGl 4uAnCEVK/Uu5tBaAFn44ASY= X-Google-Smtp-Source: AH8x224UhYkzALRV/X+8oS6got7vbLE3WYxWbf9paXZEkHfaQymR/CF17lrMo+N0j9LY1s5HIhDfcQ== X-Received: by 10.55.161.193 with SMTP id k184mr9603530qke.116.1516622660891; Mon, 22 Jan 2018 04:04:20 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Eduardo Habkost , Paolo Bonzini Date: Mon, 22 Jan 2018 09:03:51 -0300 Message-Id: <20180122120351.22369-8-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180122120351.22369-1-f4bug@amsat.org> References: <20180122120351.22369-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [PATCH v2 7/7] qdev: rename typedef qdev_resetfn() -> DeviceReset() 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: , Cc: Peter Maydell , Markus Armbruster , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 following the DeviceRealize and DeviceUnrealize typedefs, this unify a bit the QOM API. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/qdev-core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index 0bcba3b785..ae86cdd9ed 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -30,9 +30,9 @@ typedef enum DeviceCategory { DEVICE_CATEGORY_MAX } DeviceCategory; =20 -typedef void (*qdev_resetfn)(DeviceState *dev); typedef void (*DeviceRealize)(DeviceState *dev, Error **errp); typedef void (*DeviceUnrealize)(DeviceState *dev, Error **errp); +typedef void (*DeviceReset)(DeviceState *dev); typedef void (*BusRealize)(BusState *bus, Error **errp); typedef void (*BusUnrealize)(BusState *bus, Error **errp); =20 @@ -115,7 +115,7 @@ typedef struct DeviceClass { bool hotpluggable; =20 /* callbacks */ - void (*reset)(DeviceState *dev); + DeviceReset reset; DeviceRealize realize; DeviceUnrealize unrealize; =20 --=20 2.15.1