[libvirt] [PATCHv2 05/13] snapshot: merge count and name collectoin

Peter Krempa pkrempa at redhat.com
Mon Jun 18 11:29:53 UTC 2012


On 06/15/12 06:18, Eric Blake wrote:
> Another case where we can do the same amount of work with fewer
> lines of redundant code, which will make adding new filters easier.
>
> * src/conf/domain_conf.c (virDomainSnapshotNameData): Adjust
> struct.
> (virDomainSnapshotObjListCount): Delete, now taken care of...
> (virDomainSnapshotObjListCopyNames): ...here.
> (virDomainSnapshotObjListGetNames): Adjust caller to handle
> counting.
> (virDomainSnapshotObjListNum): Simplify.
> ---

ACK.

Peter




More information about the libvir-list mailing list