From nobody Tue Oct 28 01:56:32 2025 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 1516108938956592.916773410453; Tue, 16 Jan 2018 05:22:18 -0800 (PST) Received: from localhost ([::1]:35745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebRBy-0007Wd-4J for importer@patchew.org; Tue, 16 Jan 2018 08:22:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebR6j-0003XB-MZ for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:16:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebR6h-0007pS-GI for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:16:53 -0500 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:42530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebR6h-0007pK-Ca for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:16:51 -0500 Received: by mail-qk0-x241.google.com with SMTP id k201so5735177qke.9 for ; Tue, 16 Jan 2018 05:16:51 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id k29sm1436180qtc.87.2018.01.16.05.16.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 05:16:50 -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=FtCYcodPCj2Yf5Hv74WVnRwLf8mr0OpHFVelpM/xxcM=; b=PAqqnrQnRu3UFeFp4Y3lOyaoUyMiXEVf/DY4SoTvXXj7/NWT6mabYxW4C2rWAzV6VN pSb4JmivyvUi7kShgszD0X8zDChusGT1MfzkUE+ez+AD1MUWDg1FU8a10WLERgvusDvA Q0p3ND3ZCykNztNnNLyVbakXyOGKpuRtVu1dPKRJf96ZhHtQS2gqqr0tv6U0sw+qO0VJ 9UhaUIyjpHUnfIMPi2+Kt5leIGiEVcoIPhvdfsCllJLZqWEcVjP2X6VWBeQ76aggRoGf 7JQS/0MghM4tEhY+qL0bFXm5btJQvv4DsuKNddxz29pHpmJPujI3KAY7gqVgJT95wgrl IZOA== 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=FtCYcodPCj2Yf5Hv74WVnRwLf8mr0OpHFVelpM/xxcM=; b=kLtm1/4G/vbTINZy4HYqipHZ+O9JQTcqacDK6NHUsZv/t6QQelN+434icOTkcfPj39 kBRLUjnyM/xizoRE26Fw8uLT6UYDPo8x4ttXQ0Omc6mP2qsgMe9XXxfiHi0R2fzo1ylf s7gGgnHR1hHY70QPdgr1ss23BQhmiIVHb68ncupRauCS2wIcsYBWSQAVYa21KhQ7/YFt yLLIqvIfUDAiMklcLHXPpKfy/HJnSr5e+WjU+fmmWTvgRluF7VEhSPPFdhRngnyMJfr0 e+bKawsti/NiztU6VUzkOhxWxw1LI2C7EmVJabtjNwssQmJp5r+1oV/PvpfQ/F2LrnQp dFNQ== X-Gm-Message-State: AKwxyteNTXEO+aJBvBdn42d9odzA5nWG5x6o3Sws5Ox/wWrbBFKQFqFV C4GobUEuX2CQNJjHOVQU6jcIMnhI X-Google-Smtp-Source: ACJfBouhTo82VPcX7iIfTq5SgBiwq0GXfm+xK13BYnX9Q1tn20BzgL+04Zp5ZBIbGm+TZtLnk4ee0A== X-Received: by 10.55.103.18 with SMTP id b18mr14261119qkc.56.1516108611023; Tue, 16 Jan 2018 05:16:51 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Eduardo Habkost , Markus Armbruster , Peter Maydell , Paolo Bonzini , Eric Blake , Marcel Apfelbaum Date: Tue, 16 Jan 2018 10:15:55 -0300 Message-Id: <20180116131555.14242-12-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180116131555.14242-1-f4bug@amsat.org> References: <20180116131555.14242-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:c09::241 Subject: [Qemu-devel] [PATCH 11/11] 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: =?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 de7fe2e6e0..8d15da1c52 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