|
From: | Eric Blake |
Subject: | Re: [Qemu-devel] [PATCH qemu v2] qmp: Add qom-list-properties to list QOM object properties |
Date: | Thu, 1 Mar 2018 14:18:53 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 03/01/2018 05:47 AM, Alexey Kardashevskiy wrote:
+## +{ 'struct': 'QOMPropertyInfo', + 'data': { 'name': 'str', 'type': 'str', '*description': 'str' } }So, this has identical contents to DevicePropertyInfo, and is very similar to ObjectPropertyInfo. Is there any way we could consolidate those types?Sure, I can get rid of DevicePropertyInfo in favour of QOMPropertyInfo, I am just not sure if this typename is visible anywhere in the QMP protocol.
Introspection doesn't expose type names; you are free to change those at will (clients like libvirt that parse introspection merely get a list of members and types, regardless of what typename those members belonged to).
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |