[libvirt] [PATCHv2 2/7] interface: define internal driver API for network config transactions

Daniel Veillard veillard at redhat.com
Tue May 24 06:01:53 UTC 2011


On Thu, May 19, 2011 at 04:51:24PM -0400, Laine Stump wrote:
> From: Michal Privoznik <mprivozn at redhat.com>
> 
> ---
>  src/driver.h |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/src/driver.h b/src/driver.h
> index 450dd53..c9747aa 100644
> --- a/src/driver.h
> +++ b/src/driver.h
> @@ -865,6 +865,15 @@ typedef int
>  typedef int
>          (*virDrvInterfaceIsActive)(virInterfacePtr iface);
>  
> +typedef int
> +        (*virDrvInterfaceChangeBegin)   (virConnectPtr conn,
> +                                         unsigned int flags);
> +typedef int
> +        (*virDrvInterfaceChangeCommit)  (virConnectPtr conn,
> +                                         unsigned int flags);
> +typedef int
> +        (*virDrvInterfaceChangeRollback)(virConnectPtr conn,
> +                                         unsigned int flags);
>  
>  typedef struct _virInterfaceDriver virInterfaceDriver;
>  typedef virInterfaceDriver *virInterfaceDriverPtr;
> @@ -895,6 +904,9 @@ struct _virInterfaceDriver {
>      virDrvInterfaceCreate            interfaceCreate;
>      virDrvInterfaceDestroy           interfaceDestroy;
>      virDrvInterfaceIsActive          interfaceIsActive;
> +    virDrvInterfaceChangeBegin       interfaceChangeBegin;
> +    virDrvInterfaceChangeCommit      interfaceChangeCommit;
> +    virDrvInterfaceChangeRollback    interfaceChangeRollback;
>  };

  derives from 1/7 trivially, ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list