]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: add virDomainSnapshotRef API
authorEric Blake <eblake@redhat.com>
Fri, 8 Jun 2012 16:28:55 +0000 (10:28 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 8 Jun 2012 16:32:36 +0000 (10:32 -0600)
commit9d08debe887db96a444afae890967cf02f4237ee
tree37f8bba7785cb0e025f61c50f7b46999668065d6
parentd581313acf863b5f8c39ee9940ada83d680570b2
snapshot: add virDomainSnapshotRef API

virDomainSnapshotPtr has a refcount member, but no one was able
to use it.  Furthermore, all of our other vir*Ptr objects have
a *Ref method to match their *Free method.  Thankfully, this is
client-side only, so we can use this new function regardless of
how old the server side is!  (I have future patches to virsh
that want to use it.)

* include/libvirt/libvirt.h.in (virDomainSnapshotRef): Declare.
* src/libvirt.c (virDomainSnapshotRef): Implement it.
* src/libvirt_public.syms (LIBVIRT_0.9.13): Export it.
include/libvirt/libvirt.h.in
src/libvirt.c
src/libvirt_public.syms