]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Use virTypedParamList in the bulk stats gathering functions
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Sep 2019 08:36:28 +0000 (10:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Sep 2019 11:02:48 +0000 (13:02 +0200)
commit2ccb5335dc41fc0dfedb2ed0ec387decb7fb5299
tree2fd3a55d9442e1c635546d5015e6edefc37e9481
parentfc183b64d31bba4e779e673226f7391c1c489ea2
qemu: Use virTypedParamList in the bulk stats gathering functions

The bulk stats functions are specific as they pass around the list into
many sub-functions and also a substantial amount of the entries uses
formatted names for indexing purposes. This makes them ideal to be
converted to the new virTypedParamList helpers.

Unfortunately given how the functions are used this requires a big-bang
rewrite of all of the calls to add entries to the parameter list.

Given that a substantial simplification is achieved as well as a pretty
significant change to the original code is required some macros which
were used only sporadically were replaced by inline calls rather than
tweaking the macros first and deleting them later.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c