From nobody Wed Oct 29 06:41:46 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; 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 (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1525071270926958.8694055266647; Sun, 29 Apr 2018 23:54:30 -0700 (PDT) Received: from localhost ([::1]:57988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD2hY-0007xB-En for importer@patchew.org; Mon, 30 Apr 2018 02:54:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD2gd-0007cs-Mr for qemu-devel@nongnu.org; Mon, 30 Apr 2018 02:53:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD2ga-00042P-LM for qemu-devel@nongnu.org; Mon, 30 Apr 2018 02:53:23 -0400 Received: from [107.173.13.209] (port=35792 helo=ozlabs.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD2ga-00042E-ER for qemu-devel@nongnu.org; Mon, 30 Apr 2018 02:53:20 -0400 Received: from vpl1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 29E94AE801DD; Mon, 30 Apr 2018 02:51:51 -0400 (EDT) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Mon, 30 Apr 2018 16:52:35 +1000 Message-Id: <20180430065235.577-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.11.0 In-Reply-To: <87o9inxkd1.fsf@dusky.pond.sub.org> References: <87o9inxkd1.fsf@dusky.pond.sub.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 107.173.13.209 Subject: [Qemu-devel] [PATCH qemu] qom: Document qom/device-list-properties implementation specific 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: Alexey Kardashevskiy , Paolo Bonzini , Markus Armbruster Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Alexey Kardashevskiy --- qapi/misc.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qapi/misc.json b/qapi/misc.json index 5636f4a..399ec74 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -1491,6 +1491,10 @@ # # List properties associated with a device. # +# Note: the handler creates a device object, enumerates properties and des= troys +# the object so it only lists properties defined in DeviceClass::props or +# created by DeviceClass::init()/TypeInfo::instance_init(). +# # @typename: the type name of a device # # Returns: a list of ObjectPropertyInfo describing a devices properties @@ -1506,6 +1510,11 @@ # # List properties associated with a QOM object. # +# Note: the handler creates an object, enumerates properties and destroys +# the object so it only lists properties created in TypeInfo::instance_ini= t(). +# Since the instance_init() callback of the device object adds +# DeviceClass::props as object properties, they will be listed as well. +# # @typename: the type name of an object # # Returns: a list of ObjectPropertyInfo describing object properties --=20 2.11.0