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:
Jiri Denemark 2009-12-18 14:59:39 +01:00 committed by Daniel Veillard
parent a44dc266d9
commit 16e4084a10
12 changed files with 17 additions and 0 deletions

View File

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

View File

@ -3428,6 +3428,7 @@ static virDriver esxDriver = {
esxIsSecure, /* isSecure */
esxDomainIsActive, /* domainIsActive */
esxDomainIsPersistent, /* domainIsPersistent */
NULL, /* cpuCompare */
};

View File

@ -2454,6 +2454,7 @@ static virDriver lxcDriver = {
lxcIsSecure,
lxcDomainIsActive,
lxcDomainIsPersistent,
NULL, /* cpuCompare */
};
static virStateDriver lxcStateDriver = {

View File

@ -781,6 +781,7 @@ static virDriver oneDriver = {
oneIsSecure,
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
NULL, /* cpuCompare */
};
static virStateDriver oneStateDriver = {

View File

@ -1533,6 +1533,7 @@ static virDriver openvzDriver = {
openvzIsSecure,
openvzDomainIsActive,
openvzDomainIsPersistent,
NULL, /* cpuCompare */
};
int openvzRegister(void) {

View File

@ -1649,6 +1649,7 @@ virDriver phypDriver = {
phypIsSecure,
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
NULL, /* cpuCompare */
};
int

View File

@ -7923,6 +7923,7 @@ static virDriver qemuDriver = {
qemuIsSecure,
qemuDomainIsActive,
qemuDomainIsPersistent,
NULL, /* cpuCompare */
};

View File

@ -8830,6 +8830,7 @@ static virDriver remote_driver = {
remoteIsSecure, /* isSecure */
remoteDomainIsActive, /* domainIsActive */
remoteDomainIsPersistent, /* domainIsPersistent */
NULL, /* cpuCompare */
};
static virNetworkDriver network_driver = {

View File

@ -5236,6 +5236,7 @@ static virDriver testDriver = {
testIsSecure, /* isEncrypted */
testDomainIsActive, /* domainIsActive */
testDomainIsPersistent, /* domainIsPersistent */
NULL, /* cpuCompare */
};
static virNetworkDriver testNetworkDriver = {

View File

@ -1922,6 +1922,7 @@ static virDriver umlDriver = {
umlIsSecure,
umlDomainIsActive,
umlDomainIsPersistent,
NULL, /* cpuCompare */
};

View File

@ -7049,6 +7049,7 @@ virDriver NAME(Driver) = {
vboxIsSecure,
vboxDomainIsActive,
vboxDomainIsPersistent,
NULL, /* cpuCompare */
};
virNetworkDriver NAME(NetworkDriver) = {

View File

@ -1860,6 +1860,7 @@ static virDriver xenUnifiedDriver = {
xenUnifiedIsSecure,
xenUnifiedDomainIsActive,
xenUnifiedDomainisPersistent,
NULL, /* cpuCompare */
};
/**