From b1f102edada423c19f472cf53cf46fedd55edd70 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 5 May 2011 12:06:53 +0200 Subject: [PATCH] interface: define internal driver API for network config transactions --- src/driver.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/driver.h b/src/driver.h index dcd4894d82..59442b3da0 100644 --- a/src/driver.h +++ b/src/driver.h @@ -868,6 +868,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; @@ -898,6 +907,9 @@ struct _virInterfaceDriver { virDrvInterfaceCreate interfaceCreate; virDrvInterfaceDestroy interfaceDestroy; virDrvInterfaceIsActive interfaceIsActive; + virDrvInterfaceChangeBegin interfaceChangeBegin; + virDrvInterfaceChangeCommit interfaceChangeCommit; + virDrvInterfaceChangeRollback interfaceChangeRollback; };