libvirt/src/conf
Clementine Hayat 749282d400 Add function that raises error if domain is not active
Add a function named virDomainObjCheckIsActive in src/conf/domain_conf.c.
It calls virDomainObjIsActive, raises error if necessary and returns.

There is a lot of occurence of this pattern and it will save 3 lines on
each call.

Signed-off-by: Clementine Hayat <clem@lse.epita.fr>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
2018-04-18 10:22:07 +02:00
..
capabilities.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
capabilities.h conf: Use virResctrlInfo in capabilities 2018-01-25 17:16:08 +01:00
cpu_conf.c conf: include x86 microcode version in virsh capabilities 2018-01-04 16:52:03 +01:00
cpu_conf.h conf: include x86 microcode version in virsh capabilities 2018-01-04 16:52:03 +01:00
device_conf.c
device_conf.h conf: Move some virDomainDeviceInfo functions 2017-07-21 17:18:40 +02:00
domain_addr.c conf: Remove dubious code from virDomainPCIAddressSetGrow() 2018-04-09 09:12:21 +02:00
domain_addr.h conf: Add virDomainPCIAddressSet.isPCIeToPCIBridgeSupported 2018-04-06 14:12:19 +02:00
domain_audit.c conf: handle missing switch enum cases 2018-02-21 16:53:51 +00:00
domain_audit.h conf: audit passthrough input devices at domain startup 2017-10-19 14:34:21 +02:00
domain_capabilities.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
domain_capabilities.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
domain_conf.c Add function that raises error if domain is not active 2018-04-18 10:22:07 +02:00
domain_conf.h Add function that raises error if domain is not active 2018-04-18 10:22:07 +02:00
domain_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
domain_event.h
domain_nwfilter.c
domain_nwfilter.h
interface_conf.c
interface_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
Makefile.inc.am make: split XML conf build rules into conf/Makefile.inc.am 2018-03-05 17:12:01 +00:00
netdev_bandwidth_conf.c
netdev_bandwidth_conf.h Revert "virNetDevSupportBandwidth: Enable QoS for vhostuser" 2017-11-13 06:25:16 +01:00
netdev_vlan_conf.c
netdev_vlan_conf.h
netdev_vport_profile_conf.c
netdev_vport_profile_conf.h
network_conf.c
network_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
network_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
network_event.h
networkcommon_conf.c
networkcommon_conf.h
node_device_conf.c build: Fix broken build on FreeBSD and OSX after recent nodedev series 2018-01-29 17:53:13 +01:00
node_device_conf.h conf: Replace usage of virNodeDevCapMdevType with virMediatedDeviceType 2018-01-29 15:34:30 +01:00
node_device_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
node_device_event.h
numa_conf.c conf: Check for NUMA distances in validity check 2018-02-07 13:53:20 +01:00
numa_conf.h numa: Introduce virDomainNumaNodeDistanceIsUsingDefaults 2017-11-23 14:54:31 +01:00
nwfilter_conf.c conf: handle missing switch enum cases 2018-02-21 16:53:51 +00:00
nwfilter_conf.h nwfilter: handle missing switch enum cases 2018-02-21 16:58:25 +00:00
nwfilter_ipaddrmap.c nwfilter: Don't have virNWFilterIPAddrMapAddIPAddr consume input 2017-10-02 06:14:32 -04:00
nwfilter_ipaddrmap.h
nwfilter_params.c
nwfilter_params.h
object_event_private.h
object_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
object_event.h
secret_conf.c util: Move virSecretUsageType to virsecret.h 2017-09-21 15:46:48 -04:00
secret_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
secret_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
secret_event.h
snapshot_conf.c conf: Add infrastructure for disk source private data XML 2017-12-14 10:24:36 +01:00
snapshot_conf.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
storage_adapter_conf.c
storage_adapter_conf.h
storage_conf.c util: storage: Sanitize parsing of disk encryption XMLs 2018-03-08 14:29:50 +01:00
storage_conf.h storage: Privatize virStoragePoolObj and virStorageVolDefList 2017-11-07 14:12:52 -05:00
storage_event.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
storage_event.h
virchrdev.c
virchrdev.h
virdomainobjlist.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virdomainobjlist.h conf: Fix type for @liveStatus in virDomainObjListLoadAllConfigs 2017-11-09 10:37:58 +01:00
virinterfaceobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virinterfaceobj.h interface: Make _virInterfaceObjList virObjectRWLockable 2017-10-19 15:39:44 -04:00
virnetworkobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virnetworkobj.h network: Fix virNetworkObjBridgeInUse return type 2017-08-28 14:02:22 -04:00
virnodedeviceobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virnodedeviceobj.h nodedev: Move privileged flag from udev private data to driver's state 2017-10-19 08:54:52 +02:00
virnwfilterobj.c nwfilter: Remove unnecessary UUID comparison bypass 2018-02-02 15:01:10 -05:00
virnwfilterobj.h
virsavecookie.c
virsavecookie.h
virsecretobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virsecretobj.h
virstorageobj.c virobject: Introduce VIR_CLASS_NEW() macro 2018-04-18 10:04:55 +02:00
virstorageobj.h conf: Use bool for @check_active parameter 2018-01-04 10:54:08 -05:00