[libvirt] [PATCH] snapshot: add virDomainSnapshotRef API

Eric Blake eblake at redhat.com
Fri Jun 8 17:25:01 UTC 2012


On 06/08/2012 10:38 AM, Daniel P. Berrange wrote:
> On Fri, Jun 08, 2012 at 10:33:42AM -0600, Eric Blake wrote:
>> 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 |    1 +
>>  src/libvirt.c                |   33 +++++++++++++++++++++++++++++++++
>>  src/libvirt_public.syms      |    5 +++++
>>  3 files changed, 39 insertions(+)
> 
> ACK

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120608/2fbc5199/attachment-0001.sig>


More information about the libvir-list mailing list