]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: fix mapping of libvirt and libxl lifecycle actions
authorJim Fehlig <jfehlig@suse.com>
Wed, 3 Sep 2014 20:14:50 +0000 (14:14 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 11 Sep 2014 21:40:56 +0000 (15:40 -0600)
commit817206cdc85442a090d01f2d3011847ee02d8565
treed18addf0a67722362d7009887ccbd7228e1785bb
parent47ffd5e8fde035a8b63177960a8faf10ce8e0c21
libxl: fix mapping of libvirt and libxl lifecycle actions

The libxl driver was blindly assigning libvirt's
virDomainLifecycleAction to libxl's libxl_action_on_shutdown, when
in fact the various actions take on different values in these enums.

Introduce helpers to properly map the enum values.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_conf.c