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 lib: Format PCI address differently 2019-08-05 19:42:15 +02:00
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 conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
domain_audit.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
domain_audit.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
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 conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
domain_nwfilter.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
domain_nwfilter.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
interface_conf.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
interface_conf.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
Makefile.inc.am backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
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 conf: allow bandwidth parsing / formatting to include class ID 2019-06-17 15:19:54 +01:00
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 Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
netdev_vlan_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
netdev_vport_profile_conf.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
netdev_vport_profile_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
network_conf.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
network_conf.h conf: network: use generic XML namespace types 2019-08-21 10:29:20 +02:00
network_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
network_event.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
networkcommon_conf.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
networkcommon_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
node_device_event.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_util.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
node_device_util.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
numa_conf.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
numa_conf.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_conf.c Use g_autoptr instead of VIR_AUTOPTR 2019-10-16 12:06:43 +02:00
nwfilter_conf.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_ipaddrmap.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
nwfilter_ipaddrmap.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_params.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
nwfilter_params.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event_private.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
object_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
secret_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
snapshot_conf_priv.h conf: snapshot: Provide a function to free virDomainSnapshotDiskDefPtr 2019-07-18 17:59:34 +02:00
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 conf: make virPCIDeviceAddressFormat void 2019-02-19 15:59:38 +00:00
storage_adapter_conf.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
storage_capabilities.c conf: Add storage pool capability formatting 2019-03-06 11:12:48 -05:00
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 Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
storage_event.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virchrdev.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virchrdev.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
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 snapshot: Don't leak moment obj list metaroot to callers 2019-07-24 17:03:34 -05:00
virinterfaceobj.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virinterfaceobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 nodedev: acquire a pidfile in the driver root directory 2019-07-11 12:46:20 +01:00
virnwfilterbindingdef.c util: xml: Add wrapper for xmlXPathNewContext 2019-09-19 14:31:15 +02:00
virnwfilterbindingdef.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterbindingobj.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
virnwfilterbindingobj.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 util: Rename virFileStripSuffix() to virStringStripSuffix() 2019-03-07 10:10:43 +01:00
virnwfilterobj.h nwfilter: acquire a pidfile in the driver root directory 2019-07-11 12:46:20 +01:00
virsavecookie.c use virXMLNodeNameEqual instead of xmlStrEqual 2017-08-14 14:31:52 +02:00
virsavecookie.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virsecretobj.c conf: use g_steal_pointer instead of VIR_STEAL_PTR 2019-10-16 15:59:42 +02:00
virsecretobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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