libvirt/include/libvirt
ramyelkest 50e96bb2a1 util: virerror: Introduce virGetLastError{Code,Domain} public APIs
Many places in the code call virGetLastError() just to check the
raised error code, or domain. However virGetLastError() can return
NULL, so the code has to check for that first. This patch therefore
introduces virGetLasError{Code,Domain} functions which always return a
valid error code or domain respectively, thus dropping the need to
perform any checks on the error object.

Signed-off-by: Ramy Elkest <ramyelkest@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2018-06-05 18:44:05 +02:00
..
libvirt-admin.h admin: Introduce virAdmConnectSetLoggingFilters 2016-12-15 10:36:23 +01:00
libvirt-common.h.in Add missing 'extern' for VIR_EXPORT_VAR macro 2016-09-20 12:55:28 +01:00
libvirt-domain-snapshot.h
libvirt-domain.h Introduce virDomainDetachDeviceAlias API 2018-05-28 13:08:38 +02:00
libvirt-event.h Move virEvent related APIs out of libvirt.h.in 2014-10-24 17:23:17 +01:00
libvirt-host.h Introduce virConnectBaselineHypervisorCPU public API 2018-05-28 15:58:05 +02:00
libvirt-interface.h Move virInterface related APIs out of libvirt.h.in 2014-10-24 17:21:15 +01:00
libvirt-lxc.h libvirt-lxc: add virDomainLxcEnterCGroup API 2016-06-10 11:02:53 +01:00
libvirt-network.h Move virNetwork related APIs out of libvirt.h.in 2014-10-24 17:20:52 +01:00
libvirt-nodedev.h include: nodedev: Fix a misleading comment about the used callback 2017-07-20 13:21:54 +02:00
libvirt-nwfilter.h Move virNWFilter related APIs out of libvirt.h.in 2014-10-24 17:21:34 +01:00
libvirt-qemu.h qemu: lifecycle: make agent-mode shutdown and reboot timeout 2015-04-02 11:08:48 +02:00
libvirt-secret.h secret: add support for value change events 2017-01-09 16:42:04 +00:00
libvirt-storage.h storage: export virStoragePoolLookupByTargetPath as a public API 2018-02-09 11:05:10 +00:00
libvirt-stream.h virStream*All: Report error if a callback fails 2017-07-11 09:33:12 +02:00
libvirt.h libvirt: introduce libvirt/libvirt-common.h.in 2015-11-30 09:36:19 +01:00
Makefile.am admin: enable both admin API functionality and tarball distribution 2016-06-26 00:21:06 +02:00
virterror.h util: virerror: Introduce virGetLastError{Code,Domain} public APIs 2018-06-05 18:44:05 +02:00