summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2010-11-15 11:23:33 +0800
committerEric Blake <eblake@redhat.com>2010-11-23 15:04:41 -0700
commit37a02efd714e07c1bf1798c5feade3a112c4da4e (patch)
treedfd96c4f1f0e65a7970422fa13415c89ee36c3db
parentvirDomainIsUpdated: define the new public API (diff)
downloadlibvirt-37a02efd714e07c1bf1798c5feade3a112c4da4e.tar.gz
libvirt-37a02efd714e07c1bf1798c5feade3a112c4da4e.tar.bz2
libvirt-37a02efd714e07c1bf1798c5feade3a112c4da4e.zip
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
-rw-r--r--src/driver.h3
-rw-r--r--src/esx/esx_driver.c1
-rw-r--r--src/lxc/lxc_driver.c1
-rw-r--r--src/opennebula/one_driver.c1
-rw-r--r--src/openvz/openvz_driver.c1
-rw-r--r--src/phyp/phyp_driver.c1
-rw-r--r--src/qemu/qemu_driver.c1
-rw-r--r--src/remote/remote_driver.c1
-rw-r--r--src/test/test_driver.c1
-rw-r--r--src/uml/uml_driver.c1
-rw-r--r--src/vbox/vbox_tmpl.c1
-rw-r--r--src/xen/xen_driver.c1
-rw-r--r--src/xenapi/xenapi_driver.c1
13 files changed, 15 insertions, 0 deletions
diff --git a/src/driver.h b/src/driver.h
index 6417ee98f..b770e5e56 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -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;
diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c
index 0ace38e2c..5c04596db 100644
--- a/src/esx/esx_driver.c
+++ b/src/esx/esx_driver.c
@@ -4360,6 +4360,7 @@ static virDriver esxDriver = {
esxIsSecure, /* isSecure */
esxDomainIsActive, /* domainIsActive */
esxDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index f6ba13727..886286b52 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -2882,6 +2882,7 @@ static virDriver lxcDriver = {
lxcIsSecure, /* isSecure */
lxcDomainIsActive, /* domainIsActive */
lxcDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/opennebula/one_driver.c b/src/opennebula/one_driver.c
index 43a2847f3..4fe7f9bf8 100644
--- a/src/opennebula/one_driver.c
+++ b/src/opennebula/one_driver.c
@@ -800,6 +800,7 @@ static virDriver oneDriver = {
oneIsSecure, /* isSecure */
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 796369534..5089e37f3 100644
--- a/src/openvz/openvz_driver.c
+++ b/src/openvz/openvz_driver.c
@@ -1670,6 +1670,7 @@ static virDriver openvzDriver = {
openvzIsSecure,
openvzDomainIsActive,
openvzDomainIsPersistent,
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index 4c723a26b..24b426e92 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -4021,6 +4021,7 @@ static virDriver phypDriver = {
phypIsSecure, /* isSecure */
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 0dac75e53..a69dd4506 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -13249,6 +13249,7 @@ static virDriver qemuDriver = {
qemuIsSecure, /* isSecure */
qemuDomainIsActive, /* domainIsActive */
qemuDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
qemuCPUCompare, /* cpuCompare */
qemuCPUBaseline, /* cpuBaseline */
qemuDomainGetJobInfo, /* domainGetJobInfo */
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 47a66dc3d..73a0132cd 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -10734,6 +10734,7 @@ static virDriver remote_driver = {
remoteIsSecure, /* isSecure */
remoteDomainIsActive, /* domainIsActive */
remoteDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
remoteCPUCompare, /* cpuCompare */
remoteCPUBaseline, /* cpuBaseline */
remoteDomainGetJobInfo, /* domainGetJobInfo */
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 4f1460649..b6838c287 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -5413,6 +5413,7 @@ static virDriver testDriver = {
testIsSecure, /* isEncrypted */
testDomainIsActive, /* domainIsActive */
testDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c
index eaa3509b5..6c28c7660 100644
--- a/src/uml/uml_driver.c
+++ b/src/uml/uml_driver.c
@@ -2248,6 +2248,7 @@ static virDriver umlDriver = {
umlIsSecure, /* isSecure */
umlDomainIsActive, /* domainIsActive */
umlDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c
index a210696a6..0a7a247c1 100644
--- a/src/vbox/vbox_tmpl.c
+++ b/src/vbox/vbox_tmpl.c
@@ -8451,6 +8451,7 @@ virDriver NAME(Driver) = {
vboxIsSecure, /* isSecure */
vboxDomainIsActive, /* domainIsActive */
vboxDomainIsPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c
index e25a11b1a..959cc7d81 100644
--- a/src/xen/xen_driver.c
+++ b/src/xen/xen_driver.c
@@ -2070,6 +2070,7 @@ static virDriver xenUnifiedDriver = {
xenUnifiedIsSecure, /* isSecure */
xenUnifiedDomainIsActive, /* domainIsActive */
xenUnifiedDomainisPersistent, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c
index 03b0a6aa3..dec2d25d1 100644
--- a/src/xenapi/xenapi_driver.c
+++ b/src/xenapi/xenapi_driver.c
@@ -1847,6 +1847,7 @@ static virDriver xenapiDriver = {
NULL, /* isSecure */
NULL, /* domainIsActive */
NULL, /* domainIsPersistent */
+ NULL, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */