]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
define internal driver API
authorOsier Yang <jyang@redhat.com>
Mon, 15 Nov 2010 03:23:33 +0000 (11:23 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 23 Nov 2010 22:04:41 +0000 (15:04 -0700)
* 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

13 files changed:
src/driver.h
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

index 6417ee98f3d2432db9e68ebec05d6134c2a6676a..b770e5e569867c81d57ea49bc6d991af0073822e 100644 (file)
@@ -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;
index 0ace38e2c62df24c485f589e742180d0b1dfac62..5c04596db43548db08ecb475642532a62577c92c 100644 (file)
@@ -4360,6 +4360,7 @@ static virDriver esxDriver = {
     esxIsSecure,                     /* isSecure */
     esxDomainIsActive,               /* domainIsActive */
     esxDomainIsPersistent,           /* domainIsPersistent */
+    NULL,                            /* domainIsUpdated */
     NULL,                            /* cpuCompare */
     NULL,                            /* cpuBaseline */
     NULL,                            /* domainGetJobInfo */
index f6ba137277e662861c7ec0b587d2e6437bc82205..886286b526f752d1e6638dad832d2cb287d2edcc 100644 (file)
@@ -2882,6 +2882,7 @@ static virDriver lxcDriver = {
     lxcIsSecure, /* isSecure */
     lxcDomainIsActive, /* domainIsActive */
     lxcDomainIsPersistent, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */
index 43a2847f34a0cd905b6026e45db485a553d1b118..4fe7f9bf8cfac30c6046230ba54366c17e08043a 100644 (file)
@@ -800,6 +800,7 @@ static virDriver oneDriver = {
     oneIsSecure, /* isSecure */
     NULL, /* domainIsActive */
     NULL, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */
index 796369534322b2344cce8e55062af1e67d19dc5e..5089e37f3f3a6701edc2b8d20e46142837093afa 100644 (file)
@@ -1670,6 +1670,7 @@ static virDriver openvzDriver = {
     openvzIsSecure,
     openvzDomainIsActive,
     openvzDomainIsPersistent,
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */
index 4c723a26b0d15763b9d178a7921ddfc6d62975e2..24b426e92379022696245ec020d90a668858c43d 100644 (file)
@@ -4021,6 +4021,7 @@ static virDriver phypDriver = {
     phypIsSecure,               /* isSecure */
     NULL,                       /* domainIsActive */
     NULL,                       /* domainIsPersistent */
+    NULL,                       /* domainIsUpdated */
     NULL,                       /* cpuCompare */
     NULL,                       /* cpuBaseline */
     NULL,                       /* domainGetJobInfo */
index 0dac75e5363b08f1678e01d1d0c6165d60a2a0af..a69dd4506258c44e318a7b17691270299db3c5e8 100644 (file)
@@ -13249,6 +13249,7 @@ static virDriver qemuDriver = {
     qemuIsSecure, /* isSecure */
     qemuDomainIsActive, /* domainIsActive */
     qemuDomainIsPersistent, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     qemuCPUCompare, /* cpuCompare */
     qemuCPUBaseline, /* cpuBaseline */
     qemuDomainGetJobInfo, /* domainGetJobInfo */
index 47a66dc3d6d9393bdf415b33163a2e8349cd655c..73a0132cd4455962033c35a39a1e4dbafd434fa1 100644 (file)
@@ -10734,6 +10734,7 @@ static virDriver remote_driver = {
     remoteIsSecure, /* isSecure */
     remoteDomainIsActive, /* domainIsActive */
     remoteDomainIsPersistent, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     remoteCPUCompare, /* cpuCompare */
     remoteCPUBaseline, /* cpuBaseline */
     remoteDomainGetJobInfo, /* domainGetJobInfo */
index 4f14606491626b87b42e6412e0a60be7695a7566..b6838c287ba01d3579bbe4c924a6f16a1dc5a2de 100644 (file)
@@ -5413,6 +5413,7 @@ static virDriver testDriver = {
     testIsSecure, /* isEncrypted */
     testDomainIsActive, /* domainIsActive */
     testDomainIsPersistent, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */
index eaa3509b5d13c33468a7eb0dda81b6667943d5e9..6c28c7660e3607255f0e2012a8b3aea9f0961322 100644 (file)
@@ -2248,6 +2248,7 @@ static virDriver umlDriver = {
     umlIsSecure, /* isSecure */
     umlDomainIsActive, /* domainIsActive */
     umlDomainIsPersistent, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */
index a210696a63a9139cd4b14a375d264eb3ca61f497..0a7a247c18debf5241b51f99170c56d9339a5ff9 100644 (file)
@@ -8451,6 +8451,7 @@ virDriver NAME(Driver) = {
     vboxIsSecure, /* isSecure */
     vboxDomainIsActive, /* domainIsActive */
     vboxDomainIsPersistent, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */
index e25a11b1a1f263141485ed3b1fc18fd3300a32d7..959cc7d814adba3a9f469b3a6ebd6a94bd9abaf5 100644 (file)
@@ -2070,6 +2070,7 @@ static virDriver xenUnifiedDriver = {
     xenUnifiedIsSecure, /* isSecure */
     xenUnifiedDomainIsActive, /* domainIsActive */
     xenUnifiedDomainisPersistent, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */
index 03b0a6aa3e6ca4e0ee52a760d483f2c9ff109ab2..dec2d25d129258416b704a838f2a9c45344dba0a 100644 (file)
@@ -1847,6 +1847,7 @@ static virDriver xenapiDriver = {
     NULL, /* isSecure */
     NULL, /* domainIsActive */
     NULL, /* domainIsPersistent */
+    NULL, /* domainIsUpdated */
     NULL, /* cpuCompare */
     NULL, /* cpuBaseline */
     NULL, /* domainGetJobInfo */