]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
vbox: Rewrite vboxDomainSnapshotCreateXML
authorTaowei <uaedante@gmail.com>
Mon, 11 Aug 2014 10:06:53 +0000 (18:06 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 15 Aug 2014 07:25:12 +0000 (09:25 +0200)
commit677ecdc070185bc5895c50303d4c1a115447ff4c
treed9253ad092eb5cf2ce8a8ee49c30e57095413d75
parent51d1a29dd85044356f7ffebf0bd73b1514bb3705
vbox: Rewrite vboxDomainSnapshotCreateXML

The vboxDomainSnapshotCreateXML integrated the snapshot redefine
with this patch:
http://www.redhat.com/archives/libvir-list/2014-May/msg00589.html
This patch introduced vboxSnapshotRedefine in vboxUniformedAPI to
enable the features.

This patch replace all version specified APIs to the uniformed api,
then, moving the whole implementation to vbox_common.c. As there
is only API level changes, the behavior of the function doesn't
change.

Some old version's defects has brought to the new one. The already
known things are:
    *goto cleanup in a loop without releasing the pointers in the
    loop.
    *When function failed after machine unregister, no roll back
    to recovery it and the virtual machine would disappear.
src/vbox/vbox_common.c
src/vbox/vbox_common.h
src/vbox/vbox_tmpl.c
src/vbox/vbox_uniformed_api.h