提交 7e0d11be 编写于 作者: J Ján Tomko

virsh: include virutil.h where used

Include virutil.h in all files that use it,
instead of relying on it being pulled in somehow.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
上级 abd68b2b
......@@ -27,6 +27,7 @@
#include "bhyve_capabilities.h"
#include "viralloc.h"
#include "virlog.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_BHYVE
......
......@@ -53,6 +53,7 @@
#include "virhostmem.h"
#include "virportallocator.h"
#include "conf/domain_capabilities.h"
#include "virutil.h"
#include "bhyve_conf.h"
#include "bhyve_device.h"
......
......@@ -40,6 +40,7 @@
#include "virtypedparam.h"
#include "viruuid.h"
#include "virenum.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_CAPABILITIES
......
......@@ -61,6 +61,7 @@
#include "virmdev.h"
#include "virdomainsnapshotobjlist.h"
#include "virdomaincheckpointobjlist.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_DOMAIN
......
......@@ -26,6 +26,7 @@
#include "virstring.h"
#include "virvhba.h"
#include "viralloc.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NODEDEV
......
......@@ -42,6 +42,7 @@
#include "virstring.h"
#include "virlog.h"
#include "virvhba.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
......
......@@ -19,6 +19,7 @@
*/
#include <config.h>
#include <unistd.h>
#include "viralloc.h"
#include "virerror.h"
......
......@@ -19,6 +19,7 @@
*/
#include <config.h>
#include <unistd.h>
#include "viralloc.h"
#include "virerror.h"
......
......@@ -35,6 +35,7 @@
#include "esx_vi_methods.h"
#include "esx_util.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_ESX
......
......@@ -23,6 +23,8 @@
#include "domain_cgroup.h"
#include "domain_driver.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_DOMAIN
......
......@@ -34,6 +34,7 @@
#include "virstring.h"
#include "viraccessapicheck.h"
#include "virinterfaceobj.h"
#include "virutil.h"
#include "configmake.h"
......
......@@ -35,6 +35,7 @@
#include "viraccessapicheck.h"
#include "virinterfaceobj.h"
#include "virnetdev.h"
#include "virutil.h"
#include "configmake.h"
......
......@@ -26,6 +26,7 @@
#include "virfile.h"
#include "virlog.h"
#include "virtypedparam.h"
#include "virutil.h"
VIR_LOG_INIT("libvirt.domain");
......
......@@ -55,6 +55,7 @@
#include "locking/domain_lock.h"
#include "virnetdevtap.h"
#include "cpu/cpu.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LIBXL
......
......@@ -41,6 +41,7 @@
#include "locking/domain_lock.h"
#include "virtypedparam.h"
#include "virfdstream.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LIBXL
......
......@@ -33,6 +33,7 @@
#include "lock_protocol.h"
#include "configmake.h"
#include "virstring.h"
#include "virutil.h"
#include "lock_driver_lockd.h"
......
......@@ -39,6 +39,7 @@
#include "virfile.h"
#include "virconf.h"
#include "virstring.h"
#include "virutil.h"
#include "configmake.h"
......
......@@ -29,6 +29,7 @@
#include "virlog.h"
#include "virrotatingfile.h"
#include "viruuid.h"
#include "virutil.h"
#include <unistd.h>
#include <fcntl.h>
......
......@@ -30,6 +30,7 @@
#include "viralloc.h"
#include "virstring.h"
#include "virsystemd.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC
......
......@@ -60,6 +60,7 @@
#include "virnetdevip.h"
#include "virprocess.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC
......
......@@ -65,6 +65,7 @@
#include "virstring.h"
#include "virgettext.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC
......
......@@ -73,6 +73,7 @@
#include "virhostdev.h"
#include "netdev_bandwidth_conf.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC
......
......@@ -32,6 +32,7 @@
#include "virbuffer.h"
#include "virstring.h"
#include "viralloc.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC
......
......@@ -30,6 +30,7 @@
#include "util/virstring.h"
#include "util/virconf.h"
#include "conf/domain_conf.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC
......
......@@ -51,6 +51,7 @@
#include "virprocess.h"
#include "virsystemd.h"
#include "netdev_bandwidth_conf.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC
......
......@@ -67,6 +67,7 @@
#include "virhook.h"
#include "virjson.h"
#include "virnetworkportdef.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NETWORK
#define MAX_BRIDGE_ID 256
......
......@@ -35,6 +35,7 @@
#include "virenum.h"
#include "configmake.h"
#include "virgettext.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NETWORK
......
......@@ -39,6 +39,7 @@
#include "virvhba.h"
#include "viraccessapicheck.h"
#include "virnetdev.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NODEDEV
......
......@@ -40,6 +40,7 @@
#include "virstring.h"
#include "virnetdev.h"
#include "virmdev.h"
#include "virutil.h"
#include "configmake.h"
......
......@@ -42,6 +42,7 @@
#include "configmake.h"
#include "virstring.h"
#include "virfirewall.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NWFILTER
......
......@@ -40,6 +40,7 @@
#include "vircommand.h"
#include "virstring.h"
#include "virhostcpu.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ
......
......@@ -47,6 +47,7 @@
#include "viruri.h"
#include "virnetdevtap.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ
......
......@@ -34,6 +34,8 @@
#include "openvz_conf.h"
#include "openvz_util.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ
long
......
......@@ -39,6 +39,7 @@
#include "virstring.h"
#include "virenum.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -25,6 +25,7 @@
#include "viralloc.h"
#include "virlog.h"
#include "virstring.h"
#include "virutil.h"
#define QEMU_DRIVE_HOST_PREFIX "drive-"
......
......@@ -47,6 +47,7 @@
#include "qemu_qapi.h"
#include "qemu_process.h"
#include "qemu_firmware.h"
#include "virutil.h"
#include <fcntl.h>
#include <sys/stat.h>
......
......@@ -38,6 +38,7 @@
#include "virnuma.h"
#include "virsystemd.h"
#include "virdevmapper.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -64,6 +64,7 @@
# include <linux/capability.h>
#endif
#include "logging/log_manager.h"
#include "virutil.h"
#include <sys/stat.h>
#include <fcntl.h>
......
......@@ -45,6 +45,7 @@
#include "virsocket.h"
#include "virstring.h"
#include "storage_conf.h"
#include "virutil.h"
#include "configmake.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -61,6 +61,7 @@
#include "virdomainsnapshotobjlist.h"
#include "virdomaincheckpointobjlist.h"
#include "backup_conf.h"
#include "virutil.h"
#ifdef __linux__
# include <sys/sysmacros.h>
......
......@@ -104,6 +104,7 @@
#include "virenum.h"
#include "virdomaincheckpointobjlist.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -35,6 +35,7 @@
#include "virnetdev.h"
#include "virfile.h"
#include "virhostdev.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -28,6 +28,7 @@
#include "virhash.h"
#include "virlog.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -61,6 +61,7 @@
#include "nwfilter_conf.h"
#include "virdomainsnapshotobjlist.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -40,6 +40,7 @@
#include "virstring.h"
#include "virtime.h"
#include "virsocket.h"
#include "virutil.h"
#ifdef WITH_DTRACE_PROBES
# include "libvirt_qemu_probes.h"
......
......@@ -90,6 +90,7 @@
#include "virvsock.h"
#include "viridentity.h"
#include "virthreadjob.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
#include "virfile.h"
#include "virstring.h"
......
......@@ -27,6 +27,7 @@
#include "virstring.h"
#include "viralloc.h"
#include "virenum.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -48,6 +48,7 @@
#include "virauth.h"
#include "virauthconfig.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_REMOTE
......
......@@ -41,6 +41,7 @@
#include "virstring.h"
#include "viraccessapicheck.h"
#include "secret_event.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_SECRET
......
......@@ -29,6 +29,7 @@
#include "viralloc.h"
#include "vircommand.h"
#include "virfile.h"
#include "virutil.h"
#include "configmake.h"
#include "virstring.h"
......
......@@ -40,6 +40,7 @@
#include "viruuid.h"
#include "virsecret.h"
#include "storage_util.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
......
......@@ -33,6 +33,7 @@
#include "virlog.h"
#include "virfile.h"
#include "virstring.h"
#include "virutil.h"
#include "storage_util.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
......
......@@ -34,6 +34,7 @@
#include "virlog.h"
#include "virfile.h"
#include "virstring.h"
#include "virutil.h"
#include "storage_util.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
......
......@@ -49,6 +49,7 @@
#include "virstring.h"
#include "viraccessapicheck.h"
#include "storage_util.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
......
......@@ -33,6 +33,7 @@
#include "virfile.h"
#include "virlog.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
......
......@@ -73,6 +73,7 @@
#include "virstring.h"
#include "virxml.h"
#include "virfdstream.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE
......
......@@ -65,6 +65,7 @@
#include "virdomaincheckpointobjlist.h"
#include "virdomainsnapshotobjlist.h"
#include "virkeycode.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_TEST
......
......@@ -26,6 +26,7 @@
#include "virerror.h"
#include "virfile.h"
#include "virlog.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NONE
......
......@@ -46,6 +46,7 @@
#include "virstring.h"
#include "virfile.h"
#include "virhostmem.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NONE
......
......@@ -30,6 +30,7 @@
#include "viralloc.h"
#include "virdbus.h"
#include "virfile.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_POLKIT
......
......@@ -37,6 +37,7 @@
#include "snapshot_conf.h"
#include "vbox_snapshot_conf.h"
#include "virfdstream.h"
#include "virutil.h"
#include "configmake.h"
#include "vbox_common.h"
......
......@@ -27,6 +27,7 @@
#include "virlog.h"
#include "virstring.h"
#include "storage_conf.h"
#include "virutil.h"
#include "vbox_common.h"
#include "vbox_uniformed_api.h"
......
......@@ -32,6 +32,7 @@
#include "vmware_conf.h"
#include "virstring.h"
#include "virlog.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_VMWARE
......
......@@ -31,6 +31,7 @@
#include "vmx.h"
#include "viruri.h"
#include "virstring.h"
#include "virutil.h"
VIR_LOG_INIT("vmx.vmx");
......
......@@ -48,6 +48,7 @@
#include "virhostmem.h"
#include "virhostcpu.h"
#include "viraccessapicheck.h"
#include "virutil.h"
#include "vz_driver.h"
#include "vz_utils.h"
......
......@@ -33,6 +33,7 @@
#include "virtime.h"
#include "virhostcpu.h"
#include "virsocketaddr.h"
#include "virutil.h"
#include "vz_sdk.h"
......
......@@ -34,6 +34,7 @@
#include "datatypes.h"
#include "virlog.h"
#include "virtime.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_PARALLELS
#define PRLSRVCTL "prlsrvctl"
......
......@@ -38,6 +38,7 @@
#include "virthread.h"
#include "virstring.h"
#include "virprocess.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NONE
......
......@@ -12,6 +12,7 @@
# include "qemu/qemu_capspriv.h"
# include "virstring.h"
# include "virfilecache.h"
# include "virutil.h"
# define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -25,6 +25,7 @@
#include "virlog.h"
#include "virfile.h"
#include "virsocketaddr.h"
#include "virutil.h"
#if !defined WIN32 && HAVE_LIBTASN1_H && LIBGNUTLS_VERSION_NUMBER >= 0x020600
......
......@@ -54,6 +54,7 @@
#include "viruri.h"
#include "vsh-table.h"
#include "virenum.h"
#include "virutil.h"
#define VIRSH_COMMON_OPT_DOMAIN_PERSISTENT \
{.name = "persistent", \
......
......@@ -29,6 +29,7 @@
#include "virtime.h"
#include "conf/node_device_conf.h"
#include "virenum.h"
#include "virutil.h"
/*
* "nodedev-create" command
......
......@@ -45,6 +45,7 @@
#include "vircommand.h"
#include "virtypedparam.h"
#include "virstring.h"
#include "virutil.h"
#ifdef WITH_READLINE
/* For autocompletion */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册