[libvirt] [PATCH] New APIs for checking some object properties

2009-10-21 Thread Daniel P. Berrange
Introduce a number of new APIs to expose some boolean properties of objects, which cannot otherwise reliably determined, nor are aspects of the XML configuration. * virDomainIsActive: Checking virDomainGetID is not reliable since it is not possible to distinguish between error condition

Re: [libvirt] [PATCH] New APIs for checking some object properties

2009-10-21 Thread Daniel Veillard
On Wed, Oct 21, 2009 at 11:54:14AM +0100, Daniel P. Berrange wrote: Introduce a number of new APIs to expose some boolean properties of objects, which cannot otherwise reliably determined, nor are aspects of the XML configuration. * virDomainIsActive: Checking virDomainGetID is not

Re: [libvirt] [PATCH] New APIs for checking some object properties

2009-10-21 Thread Daniel P. Berrange
On Wed, Oct 21, 2009 at 01:54:00PM +0200, Daniel Veillard wrote: +int virInterfaceIsActive(virInterfacePtr iface); + +int virConnectIsEncrypted(virConnectPtr conn); +int virConnectIsSecure(virConnectPtr conn); The only small remark I would have is that it's not consistent with int