Re: [libvirt] [PATCH 1/4] snapshot: new query APIs

2012-06-11 Thread Eric Blake
On 06/11/2012 12:48 AM, Osier Yang wrote: > On 2012年05月25日 11:33, Eric Blake wrote: >> Right now, starting from just a virDomainSnapshotPtr, and wanting to >> know if it is the current snapshot for its respective domain, you have >> to use virDomainSnapshotGetDomain(), then virDomainSnapshotCurrent

Re: [libvirt] [PATCH 1/4] snapshot: new query APIs

2012-06-10 Thread Osier Yang
On 2012年05月25日 11:33, Eric Blake wrote: Right now, starting from just a virDomainSnapshotPtr, and wanting to know if it is the current snapshot for its respective domain, you have to use virDomainSnapshotGetDomain(), then virDomainSnapshotCurrent(), then compare the two names returned by virDomai

[libvirt] [PATCH 1/4] snapshot: new query APIs

2012-05-24 Thread Eric Blake
Right now, starting from just a virDomainSnapshotPtr, and wanting to know if it is the current snapshot for its respective domain, you have to use virDomainSnapshotGetDomain(), then virDomainSnapshotCurrent(), then compare the two names returned by virDomainSnapshotGetName(). It is a bit easier if