[libvirt] [RFC]: Snapshot API v3

Jiri Denemark jdenemar at redhat.com
Wed Mar 31 16:16:12 UTC 2010


...
> /* 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




More information about the libvir-list mailing list