diff options
author | Eric Blake <eblake@redhat.com> | 2012-06-08 10:28:55 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-06-08 10:32:36 -0600 |
commit | 9d08debe887db96a444afae890967cf02f4237ee (patch) | |
tree | 37f8bba7785cb0e025f61c50f7b46999668065d6 /include | |
parent | util: Fix deadlock in virLogReset (diff) | |
download | libvirt-9d08debe887db96a444afae890967cf02f4237ee.tar.gz libvirt-9d08debe887db96a444afae890967cf02f4237ee.tar.bz2 libvirt-9d08debe887db96a444afae890967cf02f4237ee.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/libvirt/libvirt.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index da3ce29fd..fcb66955d 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -3424,6 +3424,7 @@ typedef enum { int virDomainSnapshotDelete(virDomainSnapshotPtr snapshot, unsigned int flags); +int virDomainSnapshotRef(virDomainSnapshotPtr snapshot); int virDomainSnapshotFree(virDomainSnapshotPtr snapshot); /* |