提交 26d6bbf3 编写于 作者: M Mark McLoughlin

Mon Jan 22 16:17:25 IST 2007 Mark McLoughlin <markmc@redhat.com>

	* src/driver.h: remove Free(), GetName(), GetID() and
	GetUUID() driver methods.

	* src/proxy_internal.c,	src/test.c, src/xen_internal.c,
	src/xend_internal.c, src/xm_internal.c,	src/xs_internal.c:
	Update driver vtables.
上级 8f8397df
Mon Jan 22 16:17:25 IST 2007 Mark McLoughlin <markmc@redhat.com>
* src/driver.h: remove Free(), GetName(), GetID() and
GetUUID() driver methods.
* src/proxy_internal.c, src/test.c, src/xen_internal.c,
src/xend_internal.c, src/xm_internal.c, src/xs_internal.c:
Update driver vtables.
Mon Jan 22 16:24:54 CET 2007 Daniel Veillard <veillard@redhat.com> Mon Jan 22 16:24:54 CET 2007 Daniel Veillard <veillard@redhat.com>
* configure.in libvirt.spec.in docs/*.html include/libvirt/libvirt.h: * configure.in libvirt.spec.in docs/*.html include/libvirt/libvirt.h:
......
...@@ -77,15 +77,6 @@ typedef int ...@@ -77,15 +77,6 @@ typedef int
unsigned int flags); unsigned int flags);
typedef int typedef int
(*virDrvDomainDestroy) (virDomainPtr domain); (*virDrvDomainDestroy) (virDomainPtr domain);
typedef int
(*virDrvDomainFree) (virDomainPtr domain);
typedef const char *
(*virDrvDomainGetName) (virDomainPtr domain);
typedef int
(*virDrvDomainGetID) (virDomainPtr domain);
typedef int
(*virDrvDomainGetUUID) (virDomainPtr domain,
unsigned char *uuid);
typedef char * typedef char *
(*virDrvDomainGetOSType) (virDomainPtr domain); (*virDrvDomainGetOSType) (virDomainPtr domain);
typedef unsigned long typedef unsigned long
...@@ -175,10 +166,6 @@ struct _virDriver { ...@@ -175,10 +166,6 @@ struct _virDriver {
virDrvDomainShutdown domainShutdown; virDrvDomainShutdown domainShutdown;
virDrvDomainReboot domainReboot; virDrvDomainReboot domainReboot;
virDrvDomainDestroy domainDestroy; virDrvDomainDestroy domainDestroy;
virDrvDomainFree domainFree;
virDrvDomainGetName domainGetName;
virDrvDomainGetID domainGetID;
virDrvDomainGetUUID domainGetUUID;
virDrvDomainGetOSType domainGetOSType; virDrvDomainGetOSType domainGetOSType;
virDrvDomainGetMaxMemory domainGetMaxMemory; virDrvDomainGetMaxMemory domainGetMaxMemory;
virDrvDomainSetMaxMemory domainSetMaxMemory; virDrvDomainSetMaxMemory domainSetMaxMemory;
......
...@@ -63,10 +63,6 @@ static virDriver xenProxyDriver = { ...@@ -63,10 +63,6 @@ static virDriver xenProxyDriver = {
NULL, /* domainShutdown */ NULL, /* domainShutdown */
NULL, /* domainReboot */ NULL, /* domainReboot */
NULL, /* domainDestroy */ NULL, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
xenProxyDomainGetOSType, /* domainGetOSType */ xenProxyDomainGetOSType, /* domainGetOSType */
xenProxyDomainGetMaxMemory, /* domainGetMaxMemory */ xenProxyDomainGetMaxMemory, /* domainGetMaxMemory */
NULL, /* domainSetMaxMemory */ NULL, /* domainSetMaxMemory */
......
...@@ -107,10 +107,6 @@ static virDriver testDriver = { ...@@ -107,10 +107,6 @@ static virDriver testDriver = {
testShutdownDomain, /* domainShutdown */ testShutdownDomain, /* domainShutdown */
testRebootDomain, /* domainReboot */ testRebootDomain, /* domainReboot */
testDestroyDomain, /* domainDestroy */ testDestroyDomain, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
testGetOSType, /* domainGetOSType */ testGetOSType, /* domainGetOSType */
testGetMaxMemory, /* domainGetMaxMemory */ testGetMaxMemory, /* domainGetMaxMemory */
testSetMaxMemory, /* domainSetMaxMemory */ testSetMaxMemory, /* domainSetMaxMemory */
......
...@@ -437,10 +437,6 @@ static virDriver xenHypervisorDriver = { ...@@ -437,10 +437,6 @@ static virDriver xenHypervisorDriver = {
NULL, /* domainShutdown */ NULL, /* domainShutdown */
NULL, /* domainReboot */ NULL, /* domainReboot */
xenHypervisorDestroyDomain, /* domainDestroy */ xenHypervisorDestroyDomain, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
NULL, /* domainGetOSType */ NULL, /* domainGetOSType */
xenHypervisorGetMaxMemory, /* domainGetMaxMemory */ xenHypervisorGetMaxMemory, /* domainGetMaxMemory */
xenHypervisorSetMaxMemory, /* domainSetMaxMemory */ xenHypervisorSetMaxMemory, /* domainSetMaxMemory */
......
...@@ -79,10 +79,6 @@ static virDriver xenDaemonDriver = { ...@@ -79,10 +79,6 @@ static virDriver xenDaemonDriver = {
xenDaemonDomainShutdown, /* domainShutdown */ xenDaemonDomainShutdown, /* domainShutdown */
xenDaemonDomainReboot, /* domainReboot */ xenDaemonDomainReboot, /* domainReboot */
xenDaemonDomainDestroy, /* domainDestroy */ xenDaemonDomainDestroy, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
NULL, /* domainGetOSType */ NULL, /* domainGetOSType */
xenDaemonDomainGetMaxMemory, /* domainGetMaxMemory */ xenDaemonDomainGetMaxMemory, /* domainGetMaxMemory */
xenDaemonDomainSetMaxMemory, /* domainSetMaxMemory */ xenDaemonDomainSetMaxMemory, /* domainSetMaxMemory */
......
...@@ -86,10 +86,6 @@ static virDriver xenXMDriver = { ...@@ -86,10 +86,6 @@ static virDriver xenXMDriver = {
NULL, /* domainShutdown */ NULL, /* domainShutdown */
NULL, /* domainReboot */ NULL, /* domainReboot */
NULL, /* domainDestroy */ NULL, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
NULL, /* domainGetOSType */ NULL, /* domainGetOSType */
xenXMDomainGetMaxMemory, /* domainGetMaxMemory */ xenXMDomainGetMaxMemory, /* domainGetMaxMemory */
xenXMDomainSetMaxMemory, /* domainSetMaxMemory */ xenXMDomainSetMaxMemory, /* domainSetMaxMemory */
......
...@@ -57,10 +57,6 @@ static virDriver xenStoreDriver = { ...@@ -57,10 +57,6 @@ static virDriver xenStoreDriver = {
xenStoreDomainShutdown, /* domainShutdown */ xenStoreDomainShutdown, /* domainShutdown */
xenStoreDomainReboot, /* domainReboot */ xenStoreDomainReboot, /* domainReboot */
NULL, /* domainDestroy */ NULL, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
xenStoreDomainGetOSType, /* domainGetOSType */ xenStoreDomainGetOSType, /* domainGetOSType */
xenStoreDomainGetMaxMemory, /* domainGetMaxMemory */ xenStoreDomainGetMaxMemory, /* domainGetMaxMemory */
NULL, /* domainSetMaxMemory */ NULL, /* domainSetMaxMemory */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册