mirror of https://gitee.com/openkylin/libvirt.git
Adds the internal driver API
* src/driver.h: add an extra entry point in the structure * 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: add NULL entry points for all drivers
This commit is contained in:
parent
a44dc266d9
commit
16e4084a10
|
@ -349,6 +349,11 @@ typedef int
|
|||
typedef int
|
||||
(*virDrvDomainIsPersistent)(virDomainPtr dom);
|
||||
|
||||
typedef int
|
||||
(*virDrvCPUCompare)(virConnectPtr conn,
|
||||
const char *cpu,
|
||||
unsigned int flags);
|
||||
|
||||
/**
|
||||
* _virDriver:
|
||||
*
|
||||
|
@ -435,6 +440,7 @@ struct _virDriver {
|
|||
virDrvConnectIsSecure isSecure;
|
||||
virDrvDomainIsActive domainIsActive;
|
||||
virDrvDomainIsPersistent domainIsPersistent;
|
||||
virDrvCPUCompare cpuCompare;
|
||||
};
|
||||
|
||||
typedef int
|
||||
|
|
|
@ -3428,6 +3428,7 @@ static virDriver esxDriver = {
|
|||
esxIsSecure, /* isSecure */
|
||||
esxDomainIsActive, /* domainIsActive */
|
||||
esxDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -2454,6 +2454,7 @@ static virDriver lxcDriver = {
|
|||
lxcIsSecure,
|
||||
lxcDomainIsActive,
|
||||
lxcDomainIsPersistent,
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
static virStateDriver lxcStateDriver = {
|
||||
|
|
|
@ -781,6 +781,7 @@ static virDriver oneDriver = {
|
|||
oneIsSecure,
|
||||
NULL, /* domainIsActive */
|
||||
NULL, /* domainIsPersistent */
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
static virStateDriver oneStateDriver = {
|
||||
|
|
|
@ -1533,6 +1533,7 @@ static virDriver openvzDriver = {
|
|||
openvzIsSecure,
|
||||
openvzDomainIsActive,
|
||||
openvzDomainIsPersistent,
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
int openvzRegister(void) {
|
||||
|
|
|
@ -1649,6 +1649,7 @@ virDriver phypDriver = {
|
|||
phypIsSecure,
|
||||
NULL, /* domainIsActive */
|
||||
NULL, /* domainIsPersistent */
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
int
|
||||
|
|
|
@ -7923,6 +7923,7 @@ static virDriver qemuDriver = {
|
|||
qemuIsSecure,
|
||||
qemuDomainIsActive,
|
||||
qemuDomainIsPersistent,
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -8830,6 +8830,7 @@ static virDriver remote_driver = {
|
|||
remoteIsSecure, /* isSecure */
|
||||
remoteDomainIsActive, /* domainIsActive */
|
||||
remoteDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
static virNetworkDriver network_driver = {
|
||||
|
|
|
@ -5236,6 +5236,7 @@ static virDriver testDriver = {
|
|||
testIsSecure, /* isEncrypted */
|
||||
testDomainIsActive, /* domainIsActive */
|
||||
testDomainIsPersistent, /* domainIsPersistent */
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
static virNetworkDriver testNetworkDriver = {
|
||||
|
|
|
@ -1922,6 +1922,7 @@ static virDriver umlDriver = {
|
|||
umlIsSecure,
|
||||
umlDomainIsActive,
|
||||
umlDomainIsPersistent,
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -7049,6 +7049,7 @@ virDriver NAME(Driver) = {
|
|||
vboxIsSecure,
|
||||
vboxDomainIsActive,
|
||||
vboxDomainIsPersistent,
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
virNetworkDriver NAME(NetworkDriver) = {
|
||||
|
|
|
@ -1860,6 +1860,7 @@ static virDriver xenUnifiedDriver = {
|
|||
xenUnifiedIsSecure,
|
||||
xenUnifiedDomainIsActive,
|
||||
xenUnifiedDomainisPersistent,
|
||||
NULL, /* cpuCompare */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue