From nobody Mon Feb 9 23:01:08 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 1529377444544821.4321443951816; Mon, 18 Jun 2018 20:04:04 -0700 (PDT) Received: from localhost ([::1]:38878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV6w7-0004fY-R0 for importer@patchew.org; Mon, 18 Jun 2018 23:04:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV5jd-00036P-6B for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV5jc-0000rb-GE for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:47:05 -0400 Received: from mail-ot0-x22c.google.com ([2607:f8b0:4003:c0f::22c]:41131) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV5jc-0000rX-Az; Mon, 18 Jun 2018 21:47:04 -0400 Received: by mail-ot0-x22c.google.com with SMTP id d19-v6so20759839oti.8; Mon, 18 Jun 2018 18:47:04 -0700 (PDT) Received: from localhost ([2600:1700:70:e488:b0ee:9bda:ee6f:91be]) by smtp.gmail.com with ESMTPSA id q205-v6sm7239068oia.7.2018.06.18.18.47.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 18:47:02 -0700 (PDT) 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=MR4LCV4oBeZSOvrc3wM8hhBpZl2AkGFbmJW36StvYe4=; b=nItPz0elJWgETLQnwGXSyo0zIs/yTJvg2ej6UzLMWjqZHGrV4cMvzwLhGL8YoS7tvS SYbKkRw8y7m8gYDeoAk8+2cOs4Vfv2l2vOTg9C+riiSAJjnxiAZAvY8NLG6rI8U5+ijC be8SGE/QIh/qS4M9JmYcoU3b7sluPh3+HltvRirdlwSyLZuin98843NF5BgE48CaVkC6 cQEnjlc3RE3c4lf94aIeySyib3bLaCz5fOy/tczEnlejUGjNMFGTqMJ9wTbhO/7jFevY eYNpkok4Kw4noDY055CazzMSqZJjg++jCC/JR5s0bATLFTx5nz8eam9MJLld2HQo1yYi cE8w== 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=MR4LCV4oBeZSOvrc3wM8hhBpZl2AkGFbmJW36StvYe4=; b=HmCkHXLXheLpOfD3sDkck6iJ0dgIj4fP+BILt8WXOEUw6wYkpnY2aYNLBbLEDwbP6a u/HvjP4+idkQRcNBTezN/8gCFVBIvUgWjgcBrifQ1hNFw8fMdzyIalT8nMXeGYpsh3xC EY9sGnqUU5qSbrksnlijcsciiHji7Fd65ESMIFsvWFxiXE0fSuXwF19fxmMSL33dv7qS ydXxgEN+5aiSSEK0B8OD9Fkxxkx9HPghx3NIU4auQsJVsVE9oEMEpMAMXnDY4WDyEVzq F6hQiz34sisOqJ7LHxuPpmAp7HmSm3lRnnSrxlvaDVtA9is3mLGkKF7vHOLqj0v0p3Gd 8qsQ== X-Gm-Message-State: APt69E2Mb8OPj6xO779OElQAkRWjnVUNVlTmwWZQgH9pnGUQvaLQQJc7 aLZ4JoJD6XhL7dmc6MD6X3rPumYOPdk= X-Google-Smtp-Source: ADUXVKLbmCQjsJyRxfhLDDaNhIuDIqLl47uyGCvqOfoVF73yufuEB8xumKmvh7w/9jhwp/heMIMj6A== X-Received: by 2002:a9d:61ce:: with SMTP id h14-v6mr8816476otk.225.1529372823216; Mon, 18 Jun 2018 18:47:03 -0700 (PDT) From: Michael Roth To: qemu-devel@nongnu.org Date: Mon, 18 Jun 2018 20:42:45 -0500 Message-Id: <20180619014319.28272-80-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> References: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> 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:4003:c0f::22c Subject: [Qemu-devel] [PATCH 079/113] 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: Paolo Bonzini , qemu-stable@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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 From: Philippe Mathieu-Daud=C3=A9 following the DeviceRealize and DeviceUnrealize typedefs, this unify a bit the new QOM API. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20180114020412.26160-2-f4bug@amsat.org> Reviewed-by: Laurent Vivier Signed-off-by: Paolo Bonzini (cherry picked from commit b850f664a1dbbc1ea27bef12cd251ee5da0bfe05) *prereq for 0c53057adb Signed-off-by: Michael Roth --- 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 0a71bf83f0..83db53b3f5 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -32,9 +32,9 @@ typedef enum DeviceCategory { =20 typedef int (*qdev_initfn)(DeviceState *dev); typedef int (*qdev_event)(DeviceState *dev); -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 @@ -117,7 +117,7 @@ typedef struct DeviceClass { bool hotpluggable; =20 /* callbacks */ - void (*reset)(DeviceState *dev); + DeviceReset reset; DeviceRealize realize; DeviceUnrealize unrealize; =20 --=20 2.11.0