Re: [libvirt] [RFC]: Snapshot API v3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



...
> /* Get a handle to the current in-use snapshot for the domain */
> virDomainSnapshotPtr virDomainSnapshotCurrent(virDomainPtr domain,
>                                               unsigned int flags);

This call needs to be changed a bit to allow distinguishing between an error
and a domain with no snapshots (i.e., no current snapshot):

int virDomainSnapshotCurrent(virDomainPtr domain,
                             virDomainSnapshotPtr *snapshot,
                             unsigned int flags);

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]