]> xenbits.xensource.com Git - libvirt.git/commit
undefine: Define the new API
authorOsier Yang <jyang@redhat.com>
Wed, 20 Jul 2011 02:59:54 +0000 (10:59 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 20 Jul 2011 02:59:54 +0000 (10:59 +0800)
commitb26a9fa9c226447e5f1153fb59eea4b92b848178
tree86d6274489edefe43b7e9719792e067f09752ffa
parentf81f63cd047c21a3b954ff900b03780d0ef02887
undefine: Define the new API

This introduces a new API virDomainUndefineFlags to control the
domain undefine process, as the existing API virDomainUndefine
doesn't support flags.

Currently only flag VIR_DOMAIN_UNDEFINE_MANAGED_SAVE is supported.
If the domain has a managed save image, including
VIR_DOMAIN_UNDEFINE_MANAGED_SAVE in @flags will also remove that
file, and omitting the flag will cause undefine process to fail.

This patch also changes the behavior of virDomainUndefine, if the
domain has a managed save image, the undefine will be refused.
include/libvirt/libvirt.h.in
src/driver.h
src/libvirt.c
src/libvirt_public.syms