]> xenbits.xensource.com Git - libvirt.git/commit
qemuMonitorJSONSetMigrationParams: Refactor command construction and cleanup
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Mar 2020 09:10:56 +0000 (10:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2020 10:31:38 +0000 (11:31 +0100)
commitb5d8d4b0253fd0e9232ffafc869af2f93b4163e5
treeea18a740b502748ca10fdb6296721224ba56e3af
parente9153cc604bfed6c64e2c73507cae40564527d36
qemuMonitorJSONSetMigrationParams: Refactor command construction and cleanup

qemuMonitorJSONMakeCommandInternal does the full command construction if
you pass in what would become the value of the 'arguments' key. Refactor
the open-coded implementation to use the helper and use modern cleanup
helpers at the same time.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_monitor_json.c