diff options
author | 2011-09-23 08:47:59 +0200 | |
---|---|---|
committer | 2011-11-24 12:00:10 +0100 | |
commit | afdf014f4ff16fcf55647cfbbd0d9d74d355ec82 (patch) | |
tree | 3dfbc46a93477058ee1f6b13a002e3b7528860f7 /src/driver.h | |
parent | Implement keepalive protocol in remote driver (diff) | |
download | libvirt-afdf014f4ff16fcf55647cfbbd0d9d74d355ec82.tar.gz libvirt-afdf014f4ff16fcf55647cfbbd0d9d74d355ec82.tar.bz2 libvirt-afdf014f4ff16fcf55647cfbbd0d9d74d355ec82.zip |
Introduce virConnectIsAlive API
This API can be used to check if the socket associated with
virConnectPtr is still open or it was closed (probably because keepalive
protocol timed out). If there the connection is local (i.e., no socket
is associated with the connection, it is trivially always alive.
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/driver.h b/src/driver.h index 479796093..9e78257e3 100644 --- a/src/driver.h +++ b/src/driver.h @@ -509,6 +509,8 @@ typedef int typedef int (*virDrvConnectIsSecure)(virConnectPtr conn); typedef int + (*virDrvConnectIsAlive)(virConnectPtr conn); +typedef int (*virDrvDomainIsActive)(virDomainPtr dom); typedef int (*virDrvDomainIsPersistent)(virDomainPtr dom); @@ -904,6 +906,7 @@ struct _virDriver { virDrvDomainBlockJobSetSpeed domainBlockJobSetSpeed; virDrvDomainBlockPull domainBlockPull; virDrvSetKeepAlive setKeepAlive; + virDrvConnectIsAlive isAlive; }; typedef int |