]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hyperv: recognize array property as distinct type.
authorDawid Zamirski <dzamirski@datto.com>
Tue, 18 Apr 2017 14:56:20 +0000 (10:56 -0400)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 18 Apr 2017 21:19:38 +0000 (23:19 +0200)
commitbb9fca7bed5bbc06f1b40d73aa8a72673430b3c2
tree5965acafd36ac69f29b328e5f43591af97ad037b
parentb2c12f5765d4d2a430fc5d252674ef39ba9d75f3
hyperv: recognize array property as distinct type.

When hyperv code generator for WMI classes identifies common
properties, it needs to take into account array type as a distinct
type, i.e string != string[]. This is the case where v1 of the
Msvm_VirtualSystemSettingData has Notes property as string whereas v2
uses Notes[], therefore they have to be treated as different fields and
cannot be placed in the "common" struct.
src/hyperv/hyperv_driver.c
src/hyperv/hyperv_wmi_generator.py