[libvirt] [PATCH 1/5] list: Define new API virConnectListAllNWFilters

Eric Blake eblake at redhat.com
Thu Sep 6 20:59:52 UTC 2012


On 09/05/2012 12:02 AM, Osier Yang wrote:
> This is to list the network fitler objects. No flags are supported

s/fitler/filter/


>  
> +/**
> + * virConnectListAllNWFilters:
> + * @conn: Pointer to the hypervisor connection.
> + * @filters: Pointer to a variable to store the array containing the network
> + *           filter objects or NULL if the list is not required (just returns
> + *           number of network filters).
> + * @flags: extra flags; not used yet, so callers should always pass 0
> + *
> + * Collect the list of network filters, and allocate an array to store those
> + * objects.

Maybe it's worth filtering on whether a filter is just references to
other filters, contains rules, or contains both.  But for that to be
useful, it would also be nice to have an API where, given an individual
virNWFilterPtr, we can then return a list of all other virNWFilterPtr
that were pulled in by reference (that is, similar to snapshots, have an
API sufficiently powerful to reconstruct the tree of filter references).
 So I'm okay with this version going in with no flag support for now.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120906/1e1f7f8f/attachment-0001.sig>


More information about the libvir-list mailing list