mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
define internal driver API
* src/driver.h (new typedef, new callback member for "_virDriver") * src/esx/esx_driver.c * src/lxc/lxc_driver.c * src/opennebula/one_driver.c * src/openvz/openvz_driver.c * src/phyp/phyp_driver.c * src/qemu/qemu_driver.c * src/remote/remote_driver.c * src/test/test_driver.c * src/uml/uml_driver.c * src/vbox/vbox_tmpl.c * src/xen/xen_driver.c * src/xenapi/xenapi_driver.c
This commit is contained in:
parent
347d73f211
commit
37a02efd71
@ -395,6 +395,8 @@ typedef int
|
||||
(*virDrvDomainIsActive)(virDomainPtr dom);
|
||||
typedef int
|
||||
(*virDrvDomainIsPersistent)(virDomainPtr dom);
|
||||
typedef int
|
||||
(*virDrvDomainIsUpdated)(virDomainPtr dom);
|
||||
|
||||
typedef int
|
||||
(*virDrvCPUCompare)(virConnectPtr conn,
|
||||
@ -581,6 +583,7 @@ struct _virDriver {
|
||||
virDrvConnectIsSecure isSecure;
|
||||
virDrvDomainIsActive domainIsActive;
|
||||
virDrvDomainIsPersistent domainIsPersistent;
|
||||
virDrvDomainIsUpdated domainIsUpdated;
|
||||
virDrvCPUCompare cpuCompare;
|
||||
virDrvCPUBaseline cpuBaseline;
|
||||
virDrvDomainGetJobInfo domainGetJobInfo;
|
||||
|
@ -4360,6 +4360,7 @@ static virDriver esxDriver = {
|
||||
esxIsSecure, /* isSecure */
|
||||
esxDomainIsActive, /* domainIsActive */
|
||||
esxDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -2882,6 +2882,7 @@ static virDriver lxcDriver = {
|
||||
lxcIsSecure, /* isSecure */
|
||||
lxcDomainIsActive, /* domainIsActive */
|
||||
lxcDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -800,6 +800,7 @@ static virDriver oneDriver = {
|
||||
oneIsSecure, /* isSecure */
|
||||
NULL, /* domainIsActive */
|
||||
NULL, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -1670,6 +1670,7 @@ static virDriver openvzDriver = {
|
||||
openvzIsSecure,
|
||||
openvzDomainIsActive,
|
||||
openvzDomainIsPersistent,
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -4021,6 +4021,7 @@ static virDriver phypDriver = {
|
||||
phypIsSecure, /* isSecure */
|
||||
NULL, /* domainIsActive */
|
||||
NULL, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -13249,6 +13249,7 @@ static virDriver qemuDriver = {
|
||||
qemuIsSecure, /* isSecure */
|
||||
qemuDomainIsActive, /* domainIsActive */
|
||||
qemuDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
qemuCPUCompare, /* cpuCompare */
|
||||
qemuCPUBaseline, /* cpuBaseline */
|
||||
qemuDomainGetJobInfo, /* domainGetJobInfo */
|
||||
|
@ -10734,6 +10734,7 @@ static virDriver remote_driver = {
|
||||
remoteIsSecure, /* isSecure */
|
||||
remoteDomainIsActive, /* domainIsActive */
|
||||
remoteDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
remoteCPUCompare, /* cpuCompare */
|
||||
remoteCPUBaseline, /* cpuBaseline */
|
||||
remoteDomainGetJobInfo, /* domainGetJobInfo */
|
||||
|
@ -5413,6 +5413,7 @@ static virDriver testDriver = {
|
||||
testIsSecure, /* isEncrypted */
|
||||
testDomainIsActive, /* domainIsActive */
|
||||
testDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -2248,6 +2248,7 @@ static virDriver umlDriver = {
|
||||
umlIsSecure, /* isSecure */
|
||||
umlDomainIsActive, /* domainIsActive */
|
||||
umlDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -8451,6 +8451,7 @@ virDriver NAME(Driver) = {
|
||||
vboxIsSecure, /* isSecure */
|
||||
vboxDomainIsActive, /* domainIsActive */
|
||||
vboxDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -2070,6 +2070,7 @@ static virDriver xenUnifiedDriver = {
|
||||
xenUnifiedIsSecure, /* isSecure */
|
||||
xenUnifiedDomainIsActive, /* domainIsActive */
|
||||
xenUnifiedDomainisPersistent, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
@ -1847,6 +1847,7 @@ static virDriver xenapiDriver = {
|
||||
NULL, /* isSecure */
|
||||
NULL, /* domainIsActive */
|
||||
NULL, /* domainIsPersistent */
|
||||
NULL, /* domainIsUpdated */
|
||||
NULL, /* cpuCompare */
|
||||
NULL, /* cpuBaseline */
|
||||
NULL, /* domainGetJobInfo */
|
||||
|
Loading…
x
Reference in New Issue
Block a user