libvirt/src/conf
John Ferlan 4e7b3b1ebd conf: Use consistent error preservation and restoration calls
Provide some consistency over error message variable name and usage
when saving error messages across possible other errors or possibility
of resetting of the last error.

Instead of virSaveLastError paired up with virSetError and virFreeError,
we should use the newer virErrorPreserveLast and virRestoreError.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2019-10-16 15:24:40 -04:00
..
capabilities.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
capabilities.h src: add support for g_autoptr with virObject instances 2019-10-14 10:54:42 +01:00
checkpoint_conf.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
checkpoint_conf.h Define G_DEFINE_AUTOPTR_CLEANUP_FUNC for virDomainCheckpointDef 2019-10-16 12:06:44 +02:00
cpu_conf.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
cpu_conf.h cpu_conf: xml to cpu definition parse helper 2019-10-07 10:10:17 +02:00
device_conf.c
device_conf.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
domain_addr.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
domain_addr.h
domain_audit.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
domain_audit.h
domain_capabilities.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
domain_capabilities.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
domain_conf.c conf: Use consistent error preservation and restoration calls 2019-10-16 15:24:40 -04:00
domain_conf.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
domain_event.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
domain_event.h
domain_nwfilter.c
domain_nwfilter.h
interface_conf.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
interface_conf.h
Makefile.inc.am
moment_conf.c snapshot: Store both config and live XML in the snapshot domain 2019-09-11 13:09:45 +02:00
moment_conf.h snapshot: Store both config and live XML in the snapshot domain 2019-09-11 13:09:45 +02:00
netdev_bandwidth_conf.c
netdev_bandwidth_conf.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
netdev_vlan_conf.c
netdev_vlan_conf.h
netdev_vport_profile_conf.c
netdev_vport_profile_conf.h
network_conf.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
network_conf.h
network_event.c
network_event.h
networkcommon_conf.c
networkcommon_conf.h
node_device_conf.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
node_device_conf.h
node_device_event.c
node_device_event.h
node_device_util.c
node_device_util.h
numa_conf.c
numa_conf.h
nwfilter_conf.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
nwfilter_conf.h
nwfilter_ipaddrmap.c
nwfilter_ipaddrmap.h
nwfilter_params.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
nwfilter_params.h
object_event_private.h
object_event.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
object_event.h
secret_conf.c Remove all usage of VIR_RETURN_PTR 2019-10-16 15:59:41 +02:00
secret_conf.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
secret_event.c
secret_event.h
snapshot_conf_priv.h
snapshot_conf.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
snapshot_conf.h src: add support for g_autoptr with virObject instances 2019-10-14 10:54:42 +01:00
storage_adapter_conf.c
storage_adapter_conf.h
storage_capabilities.c
storage_capabilities.h src: add support for g_autoptr with virObject instances 2019-10-14 10:54:42 +01:00
storage_conf.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
storage_conf.h Remove virautoclean.h 2019-10-16 12:06:44 +02:00
storage_event.c
storage_event.h
virchrdev.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virchrdev.h
virconftypes.h conf: domain: use generic XML namespace types 2019-08-21 10:29:20 +02:00
virdomaincheckpointobjlist.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virdomaincheckpointobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainmomentobjlist.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virdomainmomentobjlist.h
virdomainobjlist.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virdomainobjlist.h lib: Grab write lock when modifying list of domains 2019-09-07 08:22:30 +02:00
virdomainsnapshotobjlist.c Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virdomainsnapshotobjlist.h
virinterfaceobj.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virinterfaceobj.h
virnetworkobj.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
virnetworkobj.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virnetworkportdef.c Remove all usage of VIR_RETURN_PTR 2019-10-16 15:59:41 +02:00
virnetworkportdef.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
virnodedeviceobj.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virnodedeviceobj.h
virnwfilterbindingdef.c util: xml: Add wrapper for xmlXPathNewContext 2019-09-19 14:31:15 +02:00
virnwfilterbindingdef.h
virnwfilterbindingobj.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
virnwfilterbindingobj.h
virnwfilterbindingobjlist.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virnwfilterbindingobjlist.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterobj.c
virnwfilterobj.h
virsavecookie.c
virsavecookie.h
virsecretobj.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
virsecretobj.h
virstorageobj.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
virstorageobj.h storage_driver: Protect pool def during startup and build 2019-08-23 09:32:26 +02:00