summaryrefslogtreecommitdiff
path: root/scripts/hyperv_wmi_generator.py
Commit message (Collapse)AuthorAgeFilesLines
* lib: Drop internal virXXXPtr typedefsMichal Privoznik2021-04-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | Historically, we declared pointer type to our types: typedef struct _virXXX virXXX; typedef virXXX *virXXXPtr; But usefulness of such declaration is questionable, at best. Unfortunately, we can't drop every such declaration - we have to carry some over, because they are part of public API (e.g. virDomainPtr). But for internal types - we can do drop them and use what every other C project uses 'virXXX *'. This change was generated by a very ugly shell script that generated sed script which was then called over each file in the repository. For the shell script refer to the cover letter: https://listman.redhat.com/archives/libvir-list/2021-March/msg00537.html Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
* hyperv: enable use of g_autoptr for the rest of the CIM/WMI classesMatt Coleman2021-01-221-0/+4
| | | | | Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Laine Stump <laine@redhat.com>
* hyperv: add inheritance to the WMI generatorMatt Coleman2021-01-221-3/+9
| | | | | | | This enables casting subtypes to their parent. Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Laine Stump <laine@redhat.com>
* hyperv: do not generate *_CLASSNAME constantsMatt Coleman2020-11-091-4/+1
| | | | | Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Matt Coleman <matt@datto.com>
* hyperv: remove hypervWmiClassInfoList, hypervWmiClassInfoListPtr, and ↵Matt Coleman2020-11-091-14/+7
| | | | | | | _hypervWmiClassInfoList Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Matt Coleman <matt@datto.com>
* hyperv: remove support for multiple API versions from the WMI generatorMatt Coleman2020-11-091-215/+52
| | | | | | | All Msvm_* classes are assumed to be V2, now. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Matt Coleman <matt@datto.com>
* meson: src: build libvirt_driver_hyperv.a static libraryPavel Hrdina2020-08-031-9/+4
| | | | | | | | Drop automake like print from scripts/hyperv_wmi_generator.py as well. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
* build: only support python3 binaryDaniel P. Berrangé2019-12-041-3/+1
| | | | | | | | python2 will be end of life by the time of the next libvirt release. All our supported build targets, including CentOS7, have a python3 build available. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* docs: move hyperv_wmi_generator.py to the scripts/ directoryDaniel P. Berrangé2019-12-041-0/+496
Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>