]> xenbits.xensource.com Git - libvirt.git/commit
maint: improve error condition style in public API
authorEric Blake <eblake@redhat.com>
Fri, 27 Dec 2013 21:26:07 +0000 (14:26 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 3 Jan 2014 14:15:23 +0000 (07:15 -0700)
commitca0ea2a9815605090e740ed8629148920aa2a29e
treeaf183be4a21f83c1341ac25308c653fb1552f05d
parent5e3e211dd5a1f7b14196a5b8f2aa08fdb7e5ea1f
maint: improve error condition style in public API

While auditing error messages in libvirt.c, I found a couple
instances that had not been converted to modern error styles,
and a few places that failed to dispatch the error through
the known-good connection.

* src/libvirt.c (virDomainPinEmulator, virDomainGetDiskErrors)
(virDomainSendKey, virDomainGetSecurityLabelList)
(virDomainGetEmulatorPinInfo): Use typical error reporting.
(virConnectGetCPUModelNames, virConnectRegisterCloseCallback)
(virConnectUnregisterCloseCallback, virDomainGetUUID): Report
error through connection.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/libvirt.c