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

Reply via email to