Re: [libvirt] [PATCH v3 02/14] Add public API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 23, 2010 at 10:54:08AM -0400, stefanb@xxxxxxxxxx wrote:
> This patch adds extensions to libvirt's public API necessary for
> controlling the new functionality from remote for example.
> 
> Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
> 
> ---
>  include/libvirt/libvirt.h.in |   63 +++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 63 insertions(+)
> 
> Index: libvirt-acl/include/libvirt/libvirt.h.in
> ===================================================================
> --- libvirt-acl.orig/include/libvirt/libvirt.h.in
> +++ libvirt-acl/include/libvirt/libvirt.h.in
> @@ -1861,4 +1861,67 @@ int virDomainAbortJob(virDomainPtr dom);
>  }
>  #endif
>  
> +
> +/**
> + * virNWFilter:
> + *
> + * a virNWFilter is a private structure representing a network filter
> + */
> +typedef struct _virNWFilter virNWFilter;
> +
> +/**
> + * virNWFilterPtr:
> + *
> + * a virNWFilterPtr is pointer to a virNWFilter private structure,
> + * this is the type used to reference a network filter in the API.
> + */
> +typedef virNWFilter *virNWFilterPtr;
> +
> +
> +/*
> + * List NWFilters
> + */
> +int                     virConnectNumOfNWFilters (virConnectPtr conn);
> +int                     virConnectListNWFilters  (virConnectPtr conn,
> +                                                  char **const names,
> +                                                  int maxnames);
> +
> +/*
> + * Lookup nwfilter by name or uuid
> + */
> +virNWFilterPtr          virNWFilterLookupByName       (virConnectPtr conn,
> +                                                       const char *name);
> +virNWFilterPtr          virNWFilterLookupByUUID       (virConnectPtr conn,
> +                                                       const unsigned char *uuid);
> +virNWFilterPtr          virNWFilterLookupByUUIDString (virConnectPtr conn,
> +                                                       const char *uuid);
> +
> +/*
> + * Define persistent nwfilter
> + */
> +virNWFilterPtr          virNWFilterDefineXML    (virConnectPtr conn,
> +                                                 const char *xmlDesc);
> +
> +/*
> + * Delete persistent nwfilter
> + */
> +int                     virNWFilterUndefine     (virNWFilterPtr nwfilter);
> +
> +/*
> + * NWFilter destroy/free
> + */
> +int                     virNWFilterRef          (virNWFilterPtr nwfilter);
> +int                     virNWFilterFree         (virNWFilterPtr nwfilter);
> +
> +/*
> + * NWFilter information
> + */
> +const char*             virNWFilterGetName       (virNWFilterPtr nwfilter);
> +int                     virNWFilterGetUUID       (virNWFilterPtr nwfilter,
> +                                                  unsigned char *uuid);
> +int                     virNWFilterGetUUIDString (virNWFilterPtr nwfilter,
> +                                                  char *buf);
> +char *                  virNWFilterGetXMLDesc    (virNWFilterPtr nwfilter,
> +                                                  int flags);
> +

ACK


Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]