]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hyperv: Make it obvious that hypervInvokeMethod() consumes an argument
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 15 Oct 2020 13:53:27 +0000 (15:53 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Oct 2020 09:13:10 +0000 (11:13 +0200)
commitf978e2e6effcc124396e259938cb84fa66acf586
tree10674c5fd3e9e7d75e1ad3833cf36d55870091e0
parent2508d10f67ce8874500deee1592e00430dbdca63
hyperv: Make it obvious that hypervInvokeMethod() consumes an argument

Upon invocation, hypervInvokeMethod() consumes passed @params
(the second argument) regardless whether success or failure is
released. However, it takes only simple pointer (which hides this
ownership transfer) and because of that it doesn't clear it.

Switch to double pointer and tweak the documentation.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Matt Coleman <matt@datto.com>
src/hyperv/hyperv_driver.c
src/hyperv/hyperv_wmi.c
src/hyperv/hyperv_wmi.h