mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
move files: hypervisor/domain_job -> conf/virdomainjob
The following patches move job object as a member into the domain object. Because of this, domain_conf (where the domain object is defined) needs to import the file with the job object. It makes sense to move jobs to the same level as the domain_conf: into src/conf/ Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
15e9c5ae2f
commit
2378f9d86e
@ -53,6 +53,7 @@ src/conf/storage_conf.c
|
||||
src/conf/storage_encryption_conf.c
|
||||
src/conf/storage_source_conf.c
|
||||
src/conf/virchrdev.c
|
||||
src/conf/virdomainjob.c
|
||||
src/conf/virdomainmomentobjlist.c
|
||||
src/conf/virdomainobjlist.c
|
||||
src/conf/virnetworkobj.c
|
||||
@ -90,7 +91,6 @@ src/hyperv/hyperv_util.c
|
||||
src/hyperv/hyperv_wmi.c
|
||||
src/hypervisor/domain_cgroup.c
|
||||
src/hypervisor/domain_driver.c
|
||||
src/hypervisor/domain_job.c
|
||||
src/hypervisor/virclosecallbacks.c
|
||||
src/hypervisor/virhostdev.c
|
||||
src/interface/interface_backend_netcf.c
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "ch_monitor.h"
|
||||
#include "virchrdev.h"
|
||||
#include "vircgroup.h"
|
||||
#include "domain_job.h"
|
||||
#include "virdomainjob.h"
|
||||
|
||||
/* Give up waiting for mutex after 30 seconds */
|
||||
#define CH_JOB_WAIT_TIME (1000ull * 30)
|
||||
|
@ -20,6 +20,7 @@ domain_conf_sources = [
|
||||
'numa_conf.c',
|
||||
'snapshot_conf.c',
|
||||
'virdomaincheckpointobjlist.c',
|
||||
'virdomainjob.c',
|
||||
'virdomainmomentobjlist.c',
|
||||
'virdomainobjlist.c',
|
||||
'virdomainsnapshotobjlist.c',
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* domain_job.c: job functions shared between hypervisor drivers
|
||||
* virdomainjob.c: job functions shared between hypervisor drivers
|
||||
*
|
||||
* Copyright (C) 2022 Red Hat, Inc.
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
@ -8,7 +8,7 @@
|
||||
#include <config.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "domain_job.h"
|
||||
#include "virdomainjob.h"
|
||||
#include "viralloc.h"
|
||||
#include "virthreadjob.h"
|
||||
#include "virlog.h"
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
VIR_LOG_INIT("hypervisor.domain_job");
|
||||
VIR_LOG_INIT("conf.virdomainjob");
|
||||
|
||||
|
||||
VIR_ENUM_IMPL(virDomainJob,
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* domain_job.h: job functions shared between hypervisor drivers
|
||||
* virdomainjob.h: job functions shared between hypervisor drivers
|
||||
*
|
||||
* Copyright (C) 2022 Red Hat, Inc.
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
@ -3,7 +3,6 @@ hypervisor_sources = [
|
||||
'domain_driver.c',
|
||||
'virclosecallbacks.c',
|
||||
'virhostdev.c',
|
||||
'domain_job.c',
|
||||
]
|
||||
|
||||
stateful_driver_source_files += files(hypervisor_sources)
|
||||
|
@ -1175,6 +1175,28 @@ virDomainCheckpointUpdateRelations;
|
||||
virDomainListCheckpoints;
|
||||
|
||||
|
||||
#conf/virdomainjob.h
|
||||
virDomainAgentJobTypeToString;
|
||||
virDomainAsyncJobTypeFromString;
|
||||
virDomainAsyncJobTypeToString;
|
||||
virDomainJobDataCopy;
|
||||
virDomainJobDataFree;
|
||||
virDomainJobDataInit;
|
||||
virDomainJobStatusToType;
|
||||
virDomainJobTypeFromString;
|
||||
virDomainJobTypeToString;
|
||||
virDomainNestedJobAllowed;
|
||||
virDomainObjBeginJobInternal;
|
||||
virDomainObjCanSetJob;
|
||||
virDomainObjClearJob;
|
||||
virDomainObjInitJob;
|
||||
virDomainObjPreserveJob;
|
||||
virDomainObjResetAgentJob;
|
||||
virDomainObjResetAsyncJob;
|
||||
virDomainObjResetJob;
|
||||
virDomainTrackJob;
|
||||
|
||||
|
||||
# conf/virdomainmomentobjlist.h
|
||||
virDomainMomentDropChildren;
|
||||
virDomainMomentDropParent;
|
||||
@ -1585,28 +1607,6 @@ virDomainDriverParseBlkioDeviceStr;
|
||||
virDomainDriverSetupPersistentDefBlkioParams;
|
||||
|
||||
|
||||
# hypervisor/domain_job.h
|
||||
virDomainAgentJobTypeToString;
|
||||
virDomainAsyncJobTypeFromString;
|
||||
virDomainAsyncJobTypeToString;
|
||||
virDomainJobDataCopy;
|
||||
virDomainJobDataFree;
|
||||
virDomainJobDataInit;
|
||||
virDomainJobStatusToType;
|
||||
virDomainJobTypeFromString;
|
||||
virDomainJobTypeToString;
|
||||
virDomainNestedJobAllowed;
|
||||
virDomainObjBeginJobInternal;
|
||||
virDomainObjCanSetJob;
|
||||
virDomainObjClearJob;
|
||||
virDomainObjInitJob;
|
||||
virDomainObjPreserveJob;
|
||||
virDomainObjResetAgentJob;
|
||||
virDomainObjResetAsyncJob;
|
||||
virDomainObjResetJob;
|
||||
virDomainTrackJob;
|
||||
|
||||
|
||||
# hypervisor/virclosecallbacks.h
|
||||
virCloseCallbacksGet;
|
||||
virCloseCallbacksNew;
|
||||
|
@ -37,7 +37,6 @@
|
||||
#include "xen_common.h"
|
||||
#include "driver.h"
|
||||
#include "domain_validate.h"
|
||||
#include "domain_job.h"
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_LIBXL
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "libxl_conf.h"
|
||||
#include "virchrdev.h"
|
||||
#include "domain_job.h"
|
||||
#include "virdomainjob.h"
|
||||
|
||||
|
||||
typedef struct _libxlDomainObjPrivate libxlDomainObjPrivate;
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include "virsystemd.h"
|
||||
#include "virinitctl.h"
|
||||
#include "domain_driver.h"
|
||||
#include "domain_job.h"
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_LXC
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "lxc_conf.h"
|
||||
#include "lxc_monitor.h"
|
||||
#include "virenum.h"
|
||||
#include "domain_job.h"
|
||||
#include "virdomainjob.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include <glib-object.h>
|
||||
#include "qemu_monitor.h"
|
||||
#include "domain_job.h"
|
||||
#include "virdomainjob.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
|
Loading…
Reference in New Issue
Block a user