On Wed, Nov 04, 2015 at 01:56:40PM +0100, Erik Skultety wrote:
+int
+virAdmConnectIsAlive(virAdmConnectPtr conn)
+{
+bool ret;
+remoteAdminPrivPtr priv = conn->privateData;
+
+VIR_DEBUG("conn=%p", conn);
+
+virResetLastError();
+
+virObjectLock(priv);
+ret = virNetClientIs
>> +int
>> +virAdmConnectIsAlive(virAdmConnectPtr conn)
>> +{
>> +bool ret;
>> +remoteAdminPrivPtr priv = conn->privateData;
>> +
>> +VIR_DEBUG("conn=%p", conn);
>> +
>> +virResetLastError();
>> +
>> +virObjectLock(priv);
>> +ret = virNetClientIsOpen(priv->client);
>> +v
On Fri, Oct 16, 2015 at 08:12:20PM +0200, Erik Skultety wrote:
Since most of our APIs rely on an acive functional connection to a daemon and
we have such a mechanism in libvirt already, there's need to have such a way in
libvirt-admin as well. By introducing a new public API, this patch provides
Since most of our APIs rely on an acive functional connection to a daemon and
we have such a mechanism in libvirt already, there's need to have such a way in
libvirt-admin as well. By introducing a new public API, this patch provides
support to check for an active connection.
---
include/libvirt/l