1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

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: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
Ján Tomko 2020-02-16 22:59:28 +01:00
parent abd68b2bdb
commit 7e0d11be5b
74 changed files with 76 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "bhyve_capabilities.h"
#include "viralloc.h"
#include "virlog.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_BHYVE

View File

@ -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"

View File

@ -40,6 +40,7 @@
#include "virtypedparam.h"
#include "viruuid.h"
#include "virenum.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_CAPABILITIES

View File

@ -61,6 +61,7 @@
#include "virmdev.h"
#include "virdomainsnapshotobjlist.h"
#include "virdomaincheckpointobjlist.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_DOMAIN

View File

@ -26,6 +26,7 @@
#include "virstring.h"
#include "virvhba.h"
#include "viralloc.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NODEDEV

View File

@ -42,6 +42,7 @@
#include "virstring.h"
#include "virlog.h"
#include "virvhba.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE

View File

@ -19,6 +19,7 @@
*/
#include <config.h>
#include <unistd.h>
#include "viralloc.h"
#include "virerror.h"

View File

@ -19,6 +19,7 @@
*/
#include <config.h>
#include <unistd.h>
#include "viralloc.h"
#include "virerror.h"

View File

@ -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

View File

@ -23,6 +23,8 @@
#include "domain_cgroup.h"
#include "domain_driver.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_DOMAIN

View File

@ -34,6 +34,7 @@
#include "virstring.h"
#include "viraccessapicheck.h"
#include "virinterfaceobj.h"
#include "virutil.h"
#include "configmake.h"

View File

@ -35,6 +35,7 @@
#include "viraccessapicheck.h"
#include "virinterfaceobj.h"
#include "virnetdev.h"
#include "virutil.h"
#include "configmake.h"

View File

@ -26,6 +26,7 @@
#include "virfile.h"
#include "virlog.h"
#include "virtypedparam.h"
#include "virutil.h"
VIR_LOG_INIT("libvirt.domain");

View File

@ -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

View File

@ -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

View File

@ -33,6 +33,7 @@
#include "lock_protocol.h"
#include "configmake.h"
#include "virstring.h"
#include "virutil.h"
#include "lock_driver_lockd.h"

View File

@ -39,6 +39,7 @@
#include "virfile.h"
#include "virconf.h"
#include "virstring.h"
#include "virutil.h"
#include "configmake.h"

View File

@ -29,6 +29,7 @@
#include "virlog.h"
#include "virrotatingfile.h"
#include "viruuid.h"
#include "virutil.h"
#include <unistd.h>
#include <fcntl.h>

View File

@ -30,6 +30,7 @@
#include "viralloc.h"
#include "virstring.h"
#include "virsystemd.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC

View File

@ -60,6 +60,7 @@
#include "virnetdevip.h"
#include "virprocess.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC

View File

@ -65,6 +65,7 @@
#include "virstring.h"
#include "virgettext.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC

View File

@ -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

View File

@ -32,6 +32,7 @@
#include "virbuffer.h"
#include "virstring.h"
#include "viralloc.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_LXC

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -35,6 +35,7 @@
#include "virenum.h"
#include "configmake.h"
#include "virgettext.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NETWORK

View File

@ -39,6 +39,7 @@
#include "virvhba.h"
#include "viraccessapicheck.h"
#include "virnetdev.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NODEDEV

View File

@ -40,6 +40,7 @@
#include "virstring.h"
#include "virnetdev.h"
#include "virmdev.h"
#include "virutil.h"
#include "configmake.h"

View File

@ -42,6 +42,7 @@
#include "configmake.h"
#include "virstring.h"
#include "virfirewall.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NWFILTER

View File

@ -40,6 +40,7 @@
#include "vircommand.h"
#include "virstring.h"
#include "virhostcpu.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ

View File

@ -47,6 +47,7 @@
#include "viruri.h"
#include "virnetdevtap.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ

View File

@ -34,6 +34,8 @@
#include "openvz_conf.h"
#include "openvz_util.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_OPENVZ
long

View File

@ -39,6 +39,7 @@
#include "virstring.h"
#include "virenum.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -25,6 +25,7 @@
#include "viralloc.h"
#include "virlog.h"
#include "virstring.h"
#include "virutil.h"
#define QEMU_DRIVE_HOST_PREFIX "drive-"

View File

@ -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>

View File

@ -38,6 +38,7 @@
#include "virnuma.h"
#include "virsystemd.h"
#include "virdevmapper.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -64,6 +64,7 @@
# include <linux/capability.h>
#endif
#include "logging/log_manager.h"
#include "virutil.h"
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -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

View File

@ -61,6 +61,7 @@
#include "virdomainsnapshotobjlist.h"
#include "virdomaincheckpointobjlist.h"
#include "backup_conf.h"
#include "virutil.h"
#ifdef __linux__
# include <sys/sysmacros.h>

View File

@ -104,6 +104,7 @@
#include "virenum.h"
#include "virdomaincheckpointobjlist.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -35,6 +35,7 @@
#include "virnetdev.h"
#include "virfile.h"
#include "virhostdev.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -28,6 +28,7 @@
#include "virhash.h"
#include "virlog.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -61,6 +61,7 @@
#include "nwfilter_conf.h"
#include "virdomainsnapshotobjlist.h"
#include "virsocket.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -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"

View File

@ -90,6 +90,7 @@
#include "virvsock.h"
#include "viridentity.h"
#include "virthreadjob.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
#include "virfile.h"
#include "virstring.h"

View File

@ -27,6 +27,7 @@
#include "virstring.h"
#include "viralloc.h"
#include "virenum.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_QEMU

View File

@ -48,6 +48,7 @@
#include "virauth.h"
#include "virauthconfig.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_REMOTE

View File

@ -41,6 +41,7 @@
#include "virstring.h"
#include "viraccessapicheck.h"
#include "secret_event.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_SECRET

View File

@ -29,6 +29,7 @@
#include "viralloc.h"
#include "vircommand.h"
#include "virfile.h"
#include "virutil.h"
#include "configmake.h"
#include "virstring.h"

View File

@ -40,6 +40,7 @@
#include "viruuid.h"
#include "virsecret.h"
#include "storage_util.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE

View File

@ -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

View File

@ -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

View File

@ -49,6 +49,7 @@
#include "virstring.h"
#include "viraccessapicheck.h"
#include "storage_util.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE

View File

@ -33,6 +33,7 @@
#include "virfile.h"
#include "virlog.h"
#include "virstring.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE

View File

@ -73,6 +73,7 @@
#include "virstring.h"
#include "virxml.h"
#include "virfdstream.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_STORAGE

View File

@ -65,6 +65,7 @@
#include "virdomaincheckpointobjlist.h"
#include "virdomainsnapshotobjlist.h"
#include "virkeycode.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_TEST

View File

@ -26,6 +26,7 @@
#include "virerror.h"
#include "virfile.h"
#include "virlog.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NONE

View File

@ -46,6 +46,7 @@
#include "virstring.h"
#include "virfile.h"
#include "virhostmem.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NONE

View File

@ -30,6 +30,7 @@
#include "viralloc.h"
#include "virdbus.h"
#include "virfile.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_POLKIT

View File

@ -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"

View File

@ -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"

View File

@ -32,6 +32,7 @@
#include "vmware_conf.h"
#include "virstring.h"
#include "virlog.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_VMWARE

View File

@ -31,6 +31,7 @@
#include "vmx.h"
#include "viruri.h"
#include "virstring.h"
#include "virutil.h"
VIR_LOG_INIT("vmx.vmx");

View File

@ -48,6 +48,7 @@
#include "virhostmem.h"
#include "virhostcpu.h"
#include "viraccessapicheck.h"
#include "virutil.h"
#include "vz_driver.h"
#include "vz_utils.h"

View File

@ -33,6 +33,7 @@
#include "virtime.h"
#include "virhostcpu.h"
#include "virsocketaddr.h"
#include "virutil.h"
#include "vz_sdk.h"

View File

@ -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"

View File

@ -38,6 +38,7 @@
#include "virthread.h"
#include "virstring.h"
#include "virprocess.h"
#include "virutil.h"
#define VIR_FROM_THIS VIR_FROM_NONE

View File

@ -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

View File

@ -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

View File

@ -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", \

View File

@ -29,6 +29,7 @@
#include "virtime.h"
#include "conf/node_device_conf.h"
#include "virenum.h"
#include "virutil.h"
/*
* "nodedev-create" command

View File

@ -45,6 +45,7 @@
#include "vircommand.h"
#include "virtypedparam.h"
#include "virstring.h"
#include "virutil.h"
#ifdef WITH_READLINE
/* For autocompletion */