From: Timm Bäder <mail(a)baedert.org>
The following 4 patches add some more snapshot API to libvirt-glib.
I wasn't sure where to put _revert_to really, the libvirt API sounds
like it belongs into GVirDomain (i.e. gvir_domain_revert_to_snapshot),
but virDomainRevertToSnapshot only takes a pointer to the snapshot.
The implementation of gvir_domain_snapshot_set_config does not allow
renaming of the snapshot as that will just create a new snapshot in
any case (should that by documented?). But it looks like the same
is true for gvir_domain_set_config?
Timm Bäder (4):
GVirDomainSnapshot: Add _is_current
GVirDomainSnapshot: Add _revert_to
GVirDomainSnapshot: Add _set_config
GVirDomain: Add _has_current_snapshot
libvirt-gobject/libvirt-gobject-domain-snapshot.c | 120 ++++++++++++++++++++++
libvirt-gobject/libvirt-gobject-domain-snapshot.h | 26 +++++
libvirt-gobject/libvirt-gobject-domain.c | 30 ++++++
libvirt-gobject/libvirt-gobject-domain.h | 3 +
libvirt-gobject/libvirt-gobject.sym | 4 +
5 files changed, 183 insertions(+)
--
2.0.3