]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Add helper function for running the hook script
authorJim Fehlig <jfehlig@suse.com>
Wed, 30 Jun 2021 00:11:29 +0000 (18:11 -0600)
committerJim Fehlig <jfehlig@suse.com>
Mon, 12 Jul 2021 20:02:18 +0000 (14:02 -0600)
commit0d1ccad240eb43d9a1a6927400f58caa280fd1be
tree07b91b02881833d87f30294430ad914e7901e09e
parentfc94e5c1c207308c0a3f4acfb5985d880593fe14
libxl: Add helper function for running the hook script

The same pattern of retrieving the domXML, running the hook script, and
checking for error is used throughout the libxl driver. Remove some
repetitive code by adding a helper function to perform these tasks.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libxl/libxl_domain.c
src/libxl/libxl_domain.h
src/libxl/libxl_driver.c
src/libxl/libxl_migration.c