[et-mgmt-tools] Re: RFC: libosinfo: Library for virt OS/distro metadata 3

John Levon levon at movementarian.org
Mon Jun 15 16:01:04 UTC 2009


On Mon, Jun 15, 2009 at 05:00:00PM +0100, Daniel P. Berrange wrote:

> > I don't really like the idea of filtering. Instead it should just be a
> > callback API full stop. It's up to the client if they want to filter, or
> > find a specific entry, or whatever.
> 
> So you mean that it can just be a list iterator pattern 
> 
>    typedef int (*osdistro_iter)(osdistro_t *distro, void *opaque);
>    int os_distro_iterate(osinfo_t, osdistro_iter iter, void *opaque);

Yep.

regards
john




More information about the et-mgmt-tools mailing list